gitlab-org--gitlab-foss/app/helpers
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
..
accounts_helper.rb implements reset incoming email token on issues modal and account page, 2016-11-07 15:56:18 +00:00
appearances_helper.rb Enable CacheMarkdownField for the remaining models 2016-10-07 02:54:26 +01:00
application_helper.rb Replace jQuery.timeago with timeago.js 2016-11-07 14:49:00 -06:00
application_settings_helper.rb Allow the Sidekiq queues to throttle and the factor by which to throttle them to be configurable 2016-11-10 11:38:11 -06:00
auth_helper.rb Centralize LDAP config/filter logic 2016-11-11 15:58:33 -06:00
avatars_helper.rb Removes 'hidden-xs' class from user_avatar helper in order for it to be visible in environments list. 2016-10-06 11:32:58 +01:00
award_emoji_helper.rb Simpler arguments passed to named_route on toggle_award_url helper method 2016-10-19 21:58:12 +02:00
blob_helper.rb Refactor template selector in issuable form 2016-11-04 16:59:45 +01:00
boards_helper.rb Stop unauthized users dragging on issue boards 2016-10-25 12:57:56 +01:00
branches_helper.rb implements the basic filter functionality 2016-07-19 19:30:10 +01:00
broadcast_messages_helper.rb Enable CacheMarkdownField for the remaining models 2016-10-07 02:54:26 +01:00
builds_helper.rb Removed inline JS and added new affix declaration 2016-11-04 15:07:51 +00:00
button_helper.rb Updated positioning of copy file path button in diffs 2016-10-31 16:52:30 +00:00
ci_status_helper.rb Merge remote-tracking branch 'upstream/master' into show-status-from-branch 2016-11-04 22:37:44 +08:00
commits_helper.rb Pass `@ref` along so we know which pipeline to show 2016-10-24 22:26:06 +08:00
compare_helper.rb Project tools visibility level 2016-09-01 11:47:59 -03:00
components_helper.rb Use the Gitlab Workhorse HTTP header in the admin dashboard 2016-11-07 16:15:43 +01:00
dashboard_helper.rb
diff_helper.rb Remove an extra leading space from diff content 2016-11-04 14:05:49 +09:00
dropdowns_helper.rb Unify dropdown button styles 2016-11-03 12:27:06 -05:00
emails_helper.rb Enable Style/EmptyLines cop, remove redundant ones 2016-07-01 21:56:17 +02:00
events_helper.rb Correctly passes feature key into feature_available method 2016-11-01 08:45:46 +00:00
explore_helper.rb Enable Style/SpaceAroundEqualsInParameterDefault cop 2016-08-06 04:03:01 +02:00
external_wiki_helper.rb speed up ExternalWikiService#get_project_wiki_path 2016-07-19 09:06:58 -04:00
form_helper.rb
git_helper.rb Improve merge request version feature 2016-09-07 10:24:48 +03:00
gitlab_markdown_helper.rb Enable CacheMarkdownField for the remaining models 2016-10-07 02:54:26 +01:00
gitlab_routing_helper.rb add link to build's pipeline within build page header 2016-11-10 16:38:00 -06:00
graph_helper.rb
groups_helper.rb Syntax fixes and better tests for helper methods. Updated docs. 2016-09-15 14:10:49 -05:00
icons_helper.rb
import_helper.rb Don't create groups for unallowed users when importing projects 2016-08-31 12:55:45 -03:00
issuables_helper.rb Refactor template selector in issuable form 2016-11-04 16:59:45 +01:00
issues_helper.rb Optimize the `award_user_list` helper spec 2016-10-07 16:34:58 +02:00
javascript_helper.rb Revert Subresource Integrity pending a fix for Firefox's incorrect hashing implementation. 2016-06-27 07:47:33 -06:00
kerberos_spnego_helper.rb Groundwork for Kerberos SPNEGO (EE feature) 2016-07-01 11:46:56 +02:00
labels_helper.rb Disable subscribing to group-level labels 2016-10-19 14:58:28 -02:00
lfs_helper.rb Move the `objects` method to `LfsHelper` so that it is also available to `LfsStorageController` 2016-11-10 20:04:00 -06:00
members_helper.rb Show member roles to all users on members page 2016-08-11 11:08:07 -05:00
merge_requests_helper.rb Fix the merge request view when source projects or branches are removed 2016-10-20 12:24:27 +01:00
milestones_helper.rb Merge branch 'master' into revert-c676283b 2016-10-03 09:10:20 +01:00
namespaces_helper.rb few fixes based on MR feedback 2016-09-20 10:15:20 +02:00
nav_helper.rb remove dead code - 'collapsed_nav' cookie no longer used since a1fbdbb6 (see MR !4579) 2016-09-07 14:02:21 -05:00
notes_helper.rb Fix note form hint showing slash commands supported for commits 2016-09-20 13:58:14 +02:00
notifications_helper.rb Show it as successful pipeline, rather than success pipeline 2016-10-17 07:25:21 +00:00
page_layout_helper.rb ensure the 'fixed layout' preference is honored whenever possible 2016-09-20 00:51:00 -05:00
preferences_helper.rb Add visibility level to project repository 2016-10-17 18:12:18 -02:00
projects_helper.rb Removed soon-to-be un-needed project title additions from builds and environments 2016-11-09 12:23:21 +00:00
runners_helper.rb
search_helper.rb Make search results use the markdown cache columns, treating them consistently 2016-10-07 02:54:26 +01:00
selects_helper.rb fix group links 404 2016-10-05 09:57:54 +01:00
sentry_helper.rb Fix Sentry not reporting right program for Sidekiq workers 2016-08-25 19:42:52 -07:00
services_helper.rb Add option to confidential issues events to trigger services 2016-08-31 18:34:45 -03:00
sidekiq_helper.rb Fix sidekiq stats in admin area 2016-10-26 18:53:59 +11:00
snippets_helper.rb Reordered dropdown options 2016-09-07 15:12:03 +01:00
sorting_helper.rb Restore `Largest repository` sort option on admin projects page 2016-08-15 16:01:23 -05:00
submodule_helper.rb
tab_helper.rb Use start_with? instead of regex 2016-05-24 00:23:23 +02:00
tags_helper.rb filters tags by name 2016-08-31 11:42:33 +01:00
time_helper.rb Cleanup the use of duration and optimize some queries 2016-08-10 23:12:02 +08:00
todos_helper.rb Changed helper method to check for none on params 2016-11-08 09:31:08 +00:00
tree_helper.rb Update tree view to sort folders with submodules 2016-08-09 14:08:47 +01:00
triggers_helper.rb Add ref parameter for triggerring builds with gitlab webhook from other project. 2016-11-15 17:19:33 +03:00
u2f_helper.rb Load Javascript U2F library selectively. 2016-07-14 08:19:09 +05:30
version_check_helper.rb
visibility_level_helper.rb
workhorse_helper.rb Verify JWT messages from gitlab-workhorse 2016-09-05 15:05:31 +02:00