Skip to content
Snippets Groups Projects
Commit bdec902e9e18 authored by Georges Racinet's avatar Georges Racinet
Browse files

PreReceive GitLab hook: pass over HEPTAPOD_ACCEPT_MR_IID

Part of heptapod#368: the Rails app will be able to set
this environment variable and we're now sending it back
as the `accept_mr_iid` key to the listener for the pre-receive
hook, so that the Rails app may apply merge permissions instead
of (direct) push permissions.

Using the (project-local) iid is better than the id, because
the receiving end won't have to check that someone is trying
to cheat with a MR on another project and is anyway fast
compared to the overall amount of process on its side.
parent bbedf868e916
No related branches found
Tags heptapod-0.12.0rc6
Loading
Checking pipeline status
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment