The Netlify module triggers build hook on Netlify for selected content-types when you save a node.
The user get an option to choose the content-type and set the build hook URL on the Netlify settings form.

netlify module form

Project link

https://www.drupal.org/project/netlify

Git instructions

git clone --branch 8.x-1.x https://git.drupal.org/project/netlify.git

PAReview checklist

https://pareview.sh/pareview/https-git.drupal.org-project-netlify.git

Comments

skippednote created an issue. See original summary.

apaderno’s picture

Status: Needs review » Needs work

Thank you for your contribution! The project description given here needs to be expanded.

apaderno’s picture

Status: Needs work » Closed (won't fix)

If you are still working on this application, you should fix all known problems and set the status to Needs review. (See also the project application workflow.)
Please don't change status of this application if you aren't sure you have time to dedicate to this application, or it will be closed again as won't fix.

I am closing this application due to lack of activity.

skippednote’s picture

Issue summary: View changes
Status: Closed (won't fix) » Needs review
apaderno’s picture

Issue summary: View changes
klausi’s picture

Status: Needs review » Fixed
  1. class NetlifyForm: doc block: please don't simply repeat the class name, explain what this class is used for and why.
  2. netlify_entity_presave(): if you are only targeting nodes then you should use hook_node_presave() instead.
  3. "$entity->get('status')->value": use $entity->isPublished() instead.
  4. hook_entity_presave() should not return anything, so you can remove your boolean return statements to avoid any confusion.

Otherwise looks good to me.

Thanks for your contribution, Bassam!

I updated your account so you can opt into security advisory coverage now.

Here are some recommended readings to help with excellent maintainership:

You can find lots more contributors chatting on Slack or IRC in #drupal-contribute. So, come hang out and stay involved!

Thanks, also, for your patience with the review process. Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.

Thanks to the dedicated reviewer(s) as well.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.