# Gitlab Commit Status

**URL:** <https://answers.netlify.com/t/gitlab-commit-status/79572>\
**Category:** Support\
**Tags:** git\
**Created:** [November 20, 2022, 5:00pm UTC](https://answers.netlify.com/t/gitlab-commit-status/79572 "2022-11-20T17:00:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hmajid2301](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/hmajid2301/32/10120_2.png) [@hmajid2301](https://answers.netlify.com/u/hmajid2301)\
**Post date:** [November 20, 2022, 5:00pm UTC](https://answers.netlify.com/t/gitlab-commit-status/79572/1 "2022-11-20T17:00:15Z")

</div>

Is there a way to let Gitlab know if a deployment on the main branch failed ? I looked at deploy notifications [Deploy notifications | Netlify Docs](https://docs.netlify.com/site-deploys/notifications/#gitlab-commit-statuses) but these look like they only work in MRs ?

I also saw this post: [Git notifications on non-pull request commits - #3 by futuregerald](https://answers.netlify.com/t/git-notifications-on-non-pull-request-commits/1142/3)  
Wondering if anyone has come up with an alternative approach ?

Thanks

site: `profound-custard-a5fa77`

---

<div class="post-metadata">

**Author:** ![hrishikesh](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/hrishikesh/32/74607_2.png) [@hrishikesh](https://answers.netlify.com/u/hrishikesh)\
**Post date:** [November 20, 2022, 5:05pm UTC](https://answers.netlify.com/t/gitlab-commit-status/79572/2 "2022-11-20T17:05:14Z")

</div>

Hey @hmajid2301,

Till date, there are no checks or notifications for non-PR/MR deploys.

---

<div class="post-metadata">

**Author:** ![hmajid2301](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/hmajid2301/32/10120_2.png) [@hmajid2301](https://answers.netlify.com/u/hmajid2301)\
**Post date:** [December 28, 2022, 6:53pm UTC](https://answers.netlify.com/t/gitlab-commit-status/79572/3 "2022-12-28T18:53:59Z")

</div>

I came up with this simple script [Haseeb Majid / netlify-gitlab-commit-status · GitLab](https://gitlab.com/hmajid2301/netlify-gitlab-commit-status), that can be deployed to say as a Google Cloud Function.

You setup Deployment webhooks from Netlify to this cloud function and then it updates the commit status using the GitLab API.

---

<div class="post-metadata">

**Author:** ![SamO](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/samo/32/41847_2.png) [@SamO](https://answers.netlify.com/u/SamO)\
**Post date:** [December 28, 2022, 7:07pm UTC](https://answers.netlify.com/t/gitlab-commit-status/79572/4 "2022-12-28T19:07:49Z")

</div>

Hi @hmajid2301 👋🏿 , thanks for letting us know! We appreciate it. (:
