Share link to push options docs after a push without them
Problem to solve
While push options is a very powerful feature, it can be opaque and hard to use even for folks who are relatively versed with GitLab and the command line.
Proposal
Add a response to a push that prints out a "did you know" statement like:
Did you know you can automatically create a GitLab Merge Request with Push Options? See https://docs.gitlab.com/ee/user/project/push_options.html for more details.
or similar.
Implementation plan
- Add
response.add_usage_hints
to PostReceiveService#execute - Add an
add_usage_hints
method to Gitlab::InternalPostReceive::Response](https://gitlab.com/gitlab-org/gitlab/-/blob/0433e99a97dc28f06581c5a6dc7d1a97f6e26608/lib/gitlab/internal_post_receive/response.rb#L30) which adds a basic message about how to use push options
Edited by Brian Williams