46eb0ebfd2
Add ref parameter for triggering builds with gitlab webhook from other project. Currently GitLab can trigger builds from external tools like curl. But there is no way to trigger builds with webhook from another GitLab project. Executing webhook like `/projects/:id/trigger/builds?token=TOKEN&ref=master` results in such message from server: ``` 400 No builds created ``` Problem is the ref from request body takes precedence of the ref from query string. System tries to trigger build for nonexistent branch instead of `master`. This is the feature of the Grape framework used to build GitLab api. This MR adds optional `ref` parameter into the api url: ``` /projects/:id/ref/:ref/trigger/builds?token=TOKEN ``` This will lead that the ref in the url will have precedence of the ref inside request body. This solution provides compatibility with current API urls. Closes #23584 See merge request !7022 |
||
---|---|---|
.. | ||
abuse_report_mailer | ||
abuse_reports | ||
admin | ||
award_emoji | ||
ci/lints | ||
dashboard | ||
devise | ||
discussions | ||
doorkeeper | ||
email_rejection_mailer | ||
emojis | ||
errors | ||
events | ||
explore | ||
groups | ||
help | ||
import | ||
invites | ||
issues | ||
kaminari/gitlab | ||
koding | ||
layouts | ||
notify | ||
profiles | ||
projects | ||
repository_check_mailer | ||
search | ||
sent_notifications | ||
shared | ||
sherlock | ||
snippets | ||
u2f | ||
users |