summaryrefslogtreecommitdiff
path: root/lib/api/triggers.rb
Commit message (Collapse)AuthorAgeFilesLines
* Enable frozen string in lib/api and lib/backupgfyoung2018-09-291-0/+2
| | | | | | | | | | Partially addresses #47424. Had to make changes to spec files because stubbing methods on frozen objects is a mess in RSpec and leads to failures: https://github.com/rspec/rspec-mocks/issues/1190
* Merge branch 'rubocop-code-reuse' into 'master'Robert Speicher2018-09-131-0/+2
|\ | | | | | | | | Add RuboCop cops to enforce code reusing rules See merge request gitlab-org/gitlab-ce!21391
| * Disable existing offenses for the CodeReuse copsYorick Peterse2018-09-111-0/+2
| | | | | | | | | | This whitelists all existing offenses for the various CodeReuse cops, of which most are triggered by the CodeReuse/ActiveRecord cop.
* | Resolve "500 Internal Server Error: Cherrypick commit with empty branch name"🙈 jacopo beschi 🙉2018-09-111-1/+1
|/
* Resolve "Make a Rubocop that forbids returning from a block"🙈 jacopo beschi 🙉2018-04-181-4/+4
|
* Track and act upon the number of executed queriesquery-countsYorick Peterse2018-02-011-0/+2
| | | | | | | | | | | This ensures that we have more visibility in the number of SQL queries that are executed in web requests. The current threshold is hardcoded to 100 as we will rarely (maybe once or twice) change it. In production and development we use Sentry if enabled, in the test environment we raise an error. This feature is also only enabled in production/staging when running on GitLab.com as it's not very useful to other users.
* API: Use defined project requirementsrs-api-use-project-requirementsRobert Schilling2017-08-311-1/+1
|
* Conditionally destroy a ressourceRobert Schilling2017-08-281-4/+1
|
* API: Respect the 'If-Unmodified-Since' for delete endpointsRobert Schilling2017-08-281-0/+2
|
* initShinya Maeda2017-07-281-13/+10
|
* Merge branch '30634-protected-pipeline' into 'master'Kamil Trzciński2017-07-251-5/+6
|\ | | | | | | | | | | | | Implement "Block pipelines on protected branches" Closes #30634, #34616, and #33130 See merge request !11910
| * Use struct instead of hashLin Jen-Shin2017-07-201-1/+1
| |
| * Use hash to return multiple objectsLin Jen-Shin2017-07-201-2/+2
| |
| * Try to report why it's failing and fix testsLin Jen-Shin2017-06-061-4/+5
| |
* | Update grape gemdz-update-grapeDmitriy Zaporozhets2017-07-201-0/+1
|/ | | | | | | | New version of the gem returns 200 status code on delete with content instead of 204 so we explicitly set status code to keep existing behavior Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Allow dot in branch name in trigger/builds endpoint in APIGeorge Andrinopoulos2017-03-201-1/+1
|
* Add `requirements: { id: %r{[^/]+} }` for all projects and groups namespaced ↵Rémy Coutable2017-03-161-1/+1
| | | | | | API routes Signed-off-by: Rémy Coutable <remy@rymai.me>
* Rename `/take` to `/take_ownership`, expose `owner` in `v3`.Kamil Trzcinski2017-03-061-1/+1
|
* Introduce tests for pipeline triggersKamil Trzcinski2017-03-051-9/+13
|
* Update triggers APIKamil Trzcinski2017-03-051-11/+57
|
* Return 204 for delete endpointsRobert Schilling2017-02-281-2/+0
|
* Simplyfy variables validation in triggers APIapi-simplify-variables-validationRobert Schilling2017-02-241-8/+3
|
* Use the pagination helper in the APIuse-pagination-helperRobert Schilling2016-12-041-0/+5
|
* API: Use `#find_project` in API::Triggers and API::ServicesRémy Coutable2016-11-241-1/+1
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Add ref parameter for triggerring builds with gitlab webhook from other project.Dmitry Poray2016-11-151-1/+1
|
* Grapify token APIRobert Schilling2016-11-101-46/+30
|
* Make the CI permission model simplerKamil Trzcinski2016-02-021-4/+4
| | | | | | | | | | | | | This MR simplifies CI permission model: - read_build: allows to read a list of builds, artifacts and trace - update_build: allows to cancel and retry builds - create_build: allows to create builds from gitlab-ci.yml (not yet implemented) - admin_build: allows to manage triggers, runners and variables - read_commit_status: allows to read a list of commit statuses (including the overall of builds) - create_commit_status: allows to create a new commit status using API Remove all extra methods to manage permission. Made all controllers to use explicitly the new permissions.
* Add some fixes after reviewTomasz Maczukin2016-01-131-6/+5
|
* Change 'trigger_id' to 'token' as resource ID in triggers APITomasz Maczukin2016-01-071-17/+8
|
* Get show details feature to triggers APITomasz Maczukin2016-01-051-0/+26
|
* Add create feature to triggers APITomasz Maczukin2016-01-051-0/+16
|
* Add delete feature to triggers APITomasz Maczukin2016-01-051-0/+19
|
* Add triggers feature to APITomasz Maczukin2016-01-041-0/+18
|
* Fix triggers testsKamil Trzcinski2015-12-111-1/+1
|
* Reimplement Trigger APIKamil Trzcinski2015-12-111-0/+48