![]() 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 |
||
---|---|---|
.. | ||
access_requests_spec.rb | ||
api_helpers_spec.rb | ||
award_emoji_spec.rb | ||
boards_spec.rb | ||
branches_spec.rb | ||
broadcast_messages_spec.rb | ||
builds_spec.rb | ||
commit_statuses_spec.rb | ||
commits_spec.rb | ||
deploy_keys_spec.rb | ||
deployments_spec.rb | ||
doorkeeper_access_spec.rb | ||
environments_spec.rb | ||
files_spec.rb | ||
fork_spec.rb | ||
groups_spec.rb | ||
internal_spec.rb | ||
issues_spec.rb | ||
keys_spec.rb | ||
labels_spec.rb | ||
lint_spec.rb | ||
members_spec.rb | ||
merge_request_diffs_spec.rb | ||
merge_requests_spec.rb | ||
milestones_spec.rb | ||
namespaces_spec.rb | ||
notes_spec.rb | ||
notification_settings_spec.rb | ||
oauth_tokens_spec.rb | ||
pipelines_spec.rb | ||
project_hooks_spec.rb | ||
project_snippets_spec.rb | ||
projects_spec.rb | ||
repositories_spec.rb | ||
runners_spec.rb | ||
services_spec.rb | ||
session_spec.rb | ||
settings_spec.rb | ||
sidekiq_metrics_spec.rb | ||
system_hooks_spec.rb | ||
tags_spec.rb | ||
templates_spec.rb | ||
todos_spec.rb | ||
triggers_spec.rb | ||
users_spec.rb | ||
variables_spec.rb | ||
version_spec.rb |