Allow git_push_options to be passed to UserRebaseConfirmable RPC
Related issue: gitlab#38141 (closed)
The goal of this MR is to allow the rebase operation from Rails side to send ci.skip push option and for Gitaly to pass it through down to post-receive hook, which in turn is consumed by Rails.
In order to do that I've:
- modified
UserRebaseConfirmableRequest.Headerto accept agit_push_optionsfield (repeatable) - introduced a
PushOptionsclass that would be responsible for handling push options (specifically convertingheader.git_push_optionsflag to push option environment vars) - modified
Gitlab::Git::Hookto take in inputPushOptionsobject and set env variables when running the hook
Edited by GitLab Release Tools Bot