We recently updated our repository to use the latest version of the Netlify app for GitHub, so that we could get preview deploy checks reported on our PRs.
The preview builds are deploying fine, but the checks do not report “successful” on the PR on GitHub - they only report as “completed”.
I have set up the deploy notifications to add rich commit info on both success as well as failure. Any idea how to get GitHub to recognize when a preview deployment has succeeded?
@Dennis do you have any ideas why a completely fresh Netlify site using the default configuration would still not be reporting successful commit statuses?
For anyone else stuck with this: currently we’re using a workaround on the GitHub side: only requiring the netlify/ph-preview/deploy checks on our branch protection rules, and not the misbehaving netlify/deploy checks:
Hi, @mdlincoln, and thank you for your patience with this.
When I checked this site, I don’t see a notification for “deploy succeeded” as being one of the notifications configured.
I know you have a workaround in place now but if you are willing to test adding the success notification would you please let us know if it works? Here is a screenshot of the notification missing:
If this doesn’t resolve the issue when tested, please let us know and we’ll keep troubleshooting.
Sorry to hijack this thread. It seems Netlify is not using the Github Deployments API correctly.
I run https://checklyhq.com and we trigger specific actions based on Github Deployment hooks.
This works perfectly for deployments done by companies like Zeit and Heroku. However, Netlify seems to not trigger the correct deployment status updates as per the Github API, https://developer.github.com/v3/repos/deployments/
I would love for our customers to use Checkly on their Netlify deployments, but there is no way for us now to find out when a deployment is finished.
We don’t use the github deployments API at all, Tim. That’s not a bug, it’s how we intend to roll
I have added your voice to the feature requests that we DO use that API, but there is no work planned to do so.
To others who may run into this issue: this could be due to account-level commit status notifications, which you can find here (swap out YOUR-TEAM with your team name ): https://app.netlify.com/teams/YOUR-TEAM/settings/sites#notifications
If you run into this hanging “deploy/netlify” status, try changing the setting there to “One notification per repo”
Hi @jen
sorry to bump this old post but I’ve searched in the forum, and this seems to be the thread which relates to my problem now
If the problem is account-level, how come sites under the same account and team behave differently?
deploy/netlify status works fine for axway-open-docs.netlify.app and streams-open-docs.netlify.app, but not for open-docs-microsite-template.netlify.app/
Update - I’ve discovered that this specific notification in this site was stuck because you must enable ‘Add Deploy Preview notifications to commits when Deploy Preview succeeds’ notification in https://app.netlify.com/sites/<your-site>/settings/deploys#deploy-notifications. Once I did this, the item has passed on the list.
I’m having the same problem, does this solution happen to work on a mono repo? What happens if there are concurrent builds, would this solution only send one notification?