gitlab-org--gitlab-foss/app/views/projects
Rémy Coutable 46eb0ebfd2 Merge branch '23584-triggering-builds-from-webhooks' into 'master'
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
2016-11-15 20:37:04 +00:00
..
artifacts Removed soon-to-be un-needed project title additions from builds and environments 2016-11-09 12:23:21 +00:00
badges
blame Replace jQuery.timeago with timeago.js 2016-11-07 14:49:00 -06:00
blob Merge remote-tracking branch 'upstream/master' into show-status-from-branch 2016-11-04 22:37:44 +08:00
boards Fixed issue boards when not logged in 2016-11-14 12:12:01 +00:00
branches Add button to delete all merged branches 2016-11-09 21:04:03 +01:00
builds Merge branch '22307-pipeline-link-in-builds-view' into 'master' 2016-11-13 17:28:38 +00:00
buttons Merge branch 'always-show-download-button' into 'master' 2016-11-14 15:06:34 +00:00
ci remove unused class name 2016-11-10 16:48:55 -06:00
commit only display link to pipeline in generic build index, not on pipeline show 2016-11-10 16:38:00 -06:00
commits Fix cache for commit status in commits list to respect branches 2016-11-10 19:45:26 +08:00
compare
container_registry
cycle_analytics
deploy_keys
deployments
diffs Fix Error 500 when creating a merge request that contains an image that was deleted and added 2016-11-14 15:57:01 +01:00
environments Removed soon-to-be un-needed project title additions from builds and environments 2016-11-09 12:23:21 +00:00
find_file
forks
generic_commit_statuses remove unused class name 2016-11-10 16:48:55 -06:00
graphs
group_links
hooks
imports Use 'Forking in progress' title when appropriate 2016-11-09 23:58:25 -05:00
issues implements reset incoming email token on issues modal and account page, 2016-11-07 15:56:18 +00:00
labels
merge_requests Fix Merge Conflicts app to make it work with Vue 2 2016-11-10 17:53:34 +03:00
milestones
network Fix bug of json request url 2016-11-07 20:44:15 +09:00
notes Fixed up resolve discussions 2016-11-10 17:53:34 +03:00
pipelines
pipelines_settings
project_members
protected_branches
refs Replace jQuery.timeago with timeago.js 2016-11-07 14:49:00 -06:00
releases
repositories
runners
services Allow to test JIRA service when project does not have repository 2016-11-04 12:24:17 -02:00
snippets
tags
tree
triggers Add ref parameter for triggerring builds with gitlab webhook from other project. 2016-11-15 17:19:33 +03:00
variables
wikis
_activity.html.haml
_bitbucket_import_modal.html.haml
_commit_button.html.haml
_customize_workflow.html.haml
_errors.html.haml
_files.html.haml
_find_file_link.html.haml
_gitlab_import_modal.html.haml
_home_panel.html.haml
_last_commit.html.haml Replace jQuery.timeago with timeago.js 2016-11-07 14:49:00 -06:00
_last_push.html.haml
_md_preview.html.haml
_merge_request_settings.html.haml
_readme.html.haml
_wiki.html.haml
_zen.html.haml
activity.html.haml
edit.html.haml Merge branch 'remove-wiki-image-border-radius' into 'master' 2016-11-04 21:27:43 +00:00
empty.html.haml
new.html.haml Fix project Visibility level selector not using default values 2016-11-10 14:41:03 -02:00
no_repo.html.haml
remove_fork.js.haml
show.atom.builder
show.html.haml 19205 Redesign group page header to match new navigation 2016-11-09 17:24:17 -08:00
transfer.js.haml
update.js.haml