gitlab-org--gitlab-foss/app/views
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
..
abuse_report_mailer
abuse_reports
admin Refactored Sidekiq Throttler and updated documentation 2016-11-11 11:14:58 -06:00
award_emoji Start Frontend work, fix routing problem 2016-09-19 19:50:40 +03:00
ci/lints Merge commit 'dev/security' into 'master' 2016-10-06 08:33:11 +02:00
dashboard Review comments Nov 11th 2016-11-11 22:03:04 +01:00
devise Fix no "Register" tab if ldap auth is enabled (#24038) 2016-11-10 17:24:42 +01:00
discussions Changed to hash rocket and string 'true' 2016-09-27 23:50:09 +01:00
doorkeeper Removes class 'btn-link' of Revoke button 2016-09-26 12:13:45 +01:00
email_rejection_mailer
emojis
errors
events Replace jQuery.timeago with timeago.js 2016-11-07 14:49:00 -06:00
explore Replace bootstrap caret with fontawesome caret 2016-10-05 17:39:52 -05:00
groups Merge branch '19205-group-header-redesign' into 'master' 2016-11-11 14:46:40 +00:00
help Fix typo on /help/ui to Alerts section 2016-10-26 12:41:54 +02:00
import Merge branch 'security-fix-leaking-namespace-name' into 'security' 2016-10-24 15:49:05 +02:00
invites
issues
kaminari/gitlab Makes table pagination responsive 2016-11-01 16:24:54 +00:00
koding Remove documentation rendering from /koding for now 2016-08-22 17:36:04 +03:00
layouts resolves divider issue in group setting dropdown 2016-11-10 15:40:36 +06:00
notify 17492 Update link color for more accessible contrast 2016-11-07 11:06:48 -08:00
profiles implements reset incoming email token on issues modal and account page, 2016-11-07 15:56:18 +00:00
projects Merge branch '23584-triggering-builds-from-webhooks' into 'master' 2016-11-15 20:37:04 +00:00
repository_check_mailer
search Fix broken commits search 2016-11-08 12:03:23 +02:00
sent_notifications Improve the Unsubscribe confirmation page 2016-09-20 12:24:53 +02:00
shared Merge branch '19205-group-header-redesign' into 'master' 2016-11-11 14:46:40 +00:00
sherlock
snippets Added 'Download' button to snippet view 2016-10-11 15:36:59 -04:00
u2f Make UX upgrades to SignIn/Register views. 2016-10-15 08:27:21 +02:00
users Update avatar container name so it doesnt conflict with other image containers 2016-11-03 12:26:09 -05:00