Skip to content
  • Georges Racinet's avatar
    PreReceive GitLab hook: pass over HEPTAPOD_ACCEPT_MR_IID · bdec902e9e18
    Georges Racinet authored
    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.
    bdec902e9e18