Home
Support Forums

Github commit notifications not working

Hey all,

Github commit notifications → building - deploy preview URLs are not working for me.

I’m expecting a comment on my commit whenever I push a commit and show the status + deploy URL once its done.

I have the following notifications set already. But its not affecting.

Also, Vercel shows a nice yellow & green icon on each build. Is something similar available on Netlify?

Please help.

Here’s the commit page:
image

Any help? Its still not resolved yet.

Hey there, @surjithctly

Thanks for reaching out! Great question. We will need your Netlify site name in order to dig into this further. This will allow us to check the settings and see what could be happening. Thanks in advance :slight_smile:

Its not working for any repos I have, For sample, you can check this one: Netlify App

hi there @surjithctly , we had a chance to look at your project, and from what we can tell, it seems like you are maybe hitting a “Deploy to netlify” button somewhere or deploying in some other way that does not involve the following workflow:

  • doing some local work
  • adding to a repo, committing, pushing to git repo storage (so, GitHub)
  • deploying to Netlify via continous integration

We suggest that you publish a commit to your main branch, and then you should see the commit notifications show up properly.

If this doesn’t work, can you describe your worklfow in more detail, please?

Hey, sorry for the late reply. The issue still exists for all of my projects. I have a new site now, all notifications enabled in the settings.

My workflow is => Create new site from git => Connect a repo => Push changes to my main branch. Then netlify triggers the build, but no notification on gihub as comment or yellow dot indicator.

Can you email me if you need more info?

it does work on pull requests. but not when I commit it to the main branch from my local machine - git push.

Hey @surjithctly , thanks for sharing your workflow!

What you described is expected behavior. When you git push to your repo locally, you’re using Git. When you create a pull request you’re using GitHub. There’s a difference :smiley: . The features you’re looking for like GitHub pull request comments or Netlify deploy previews are only available when making GitHub pull requests. I hope that helps!

1 Like

But when I use git push in vercel they add a yellow dot indicates “building” and turns green when “done”.

Is there any similar indicator / feature in Netlify?

It also adds a commit comment like this. This is what missing in Netlify even its advertised in the notification settings

See below. Netlify notification settings. As you can see it says they are able to

  1. Add a comment on pull request
  2. Add rich details & preview notification.

I don’t get the option 2. How do I get that? What should I do if git push does not work. What triggers that? @audrey

Hi Surjith, thanks for pointing this out! i am going to mention this to the product team and see if they agree that we can improve notifications in this way that you are suggesting!

1 Like

Hi Surjith, you should be able to see comments after creating a pull request in GitHub and after merging PR if you click on ‘Show details’ link (screenshot below)

1 Like

Yes, that works, but not working for new commits ie: git push.

That’s right – pull or merge, rather than a push. Sorry about that! You can see a bit more here.

Hmm… Is this being tracked as a Feature Request internally? or how to submit it?

hi @surjithctly - i already made note of this and sent it over to our product team. If we do any work on this, we’ll definitely let you know!

2 Likes