Netlify-sdk V0.8.1 - Rename disableBuildEventHandlers

This codemod renames disableBuildhook to disableBuildEventHandlers as required in Netlify SDK v0.8.1.

Netlify SDK
jscodeshift
Estimated time saving
~1 minutes/occurrence
Change mode
Autonomous
Applicability criteria

Netlify SDK v0.8.1 or higher.

Made by
Codemod.com
Codemod.com

Usage →

Codemod CLI:

intalling vs code extension tooltip icon
codemod netlify/0.8.1/disableBuildEventHandlers
copy CLI command icon

Codemod VS Code extension:

intalling vs code extension tooltip icon
vs code logo
Run in VS Code

Description

This codemod renames disableBuildhook to disableBuildEventHandlers as required in Netlify SDK v0.8.1.

Before

await client.disableBuildhook(siteId);

After

await client.disableBuildEventHandlers(siteId);