• Jonathon Reinhart's avatar
    Add support for Git push options, specifically ci.skip · ba781484
    Jonathon Reinhart authored
    gitlab-org/gitlab-shell!166 added support for collecting push options
    from the environment, and passing them along to the
    /internal/post_receive API endpoint.
    
    This change handles the new push_options JSON element in the payload,
    and passes them on through to the GitPushService and GitTagPushService
    services.
    
    Futhermore, it adds support for the first push option, ci.skip.  With
    this change, one can use 'git push -o ci.skip' to skip CI pipe
    execution. Note that the pipeline is still created, but in the "skipped"
    state, just like with the 'ci skip' commit message text.
    
    Implements #18667
    ba781484
push.rb 4.65 KB