Is it possible to trigger a bash script after someone clicks "approve" on a merge request?

Is it possible to trigger a bash script after someone clicks “Approve” on a merge request?

I’ve found a similar question here. But the question was asked in 2021.

Now it’s 2023, I’d like to know if it is possible to run some bash script after someone clicks on “Approve” button without using a server that integrates with gitlab webhook.

I’m using self-managed gitlab with version 15.3.1

Hey,

Have you tried using a job that triggers with a rule when only $CI_MERGE_REQUEST_APPROVED is true? :slight_smile:

Docs:

1 Like