Duana Saskia
ece6a1ea6e
Filter project hooks by branch
...
Allow specificying a branch filter for a project hook and only trigger
a project hook if either the branch filter is blank or the branch matches.
Only supported for push_events for now.
2018-08-13 13:20:58 +02:00
Lin Jen-Shin
4ee08b77bc
Updates from `rubocop -a`
2018-07-09 21:13:08 +08:00
Douwe Maan
52967b107b
Merge branch 'jej/mattermost-notification-confidentiality-10-6' into 'security-10-6'
...
[10.6] Prevent notes on confidential issues from being sent to chat
See merge request gitlab/gitlabhq!2366
# Conflicts:
# app/helpers/services_helper.rb
2018-04-05 08:41:56 +02:00
Jean-Baptiste Guerraz
20844326f3
align "confidential issues events" implementation with "issues events" one
2018-03-01 10:51:56 +01:00
Robert Schilling
6a2ee0968e
API: Use defined project requirements
2017-08-31 14:57:47 +02:00
Robert Schilling
e80313f9ee
Conditionally destroy a ressource
2017-08-28 16:40:25 +02:00
Robert Schilling
998afa5f74
API: Respect the 'If-Unmodified-Since' for delete endpoints
2017-08-28 16:40:25 +02:00
Dmitriy Zaporozhets
6b8ad689da
Update grape gem
...
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>
2017-07-20 16:33:18 +03:00
Douwe Maan
1fd83f972c
Merge branch 'bvl-rename-build-events-to-job-events' into 'master'
...
Rename `build_events` to `job_events`
Closes #31620
See merge request !11287
2017-05-16 14:12:19 +02:00
Douwe Maan
950fa32a7c
Revert "Merge branch 'bvl-rename-build-events-to-job-events' into 'master'"
...
This reverts merge request !11287
2017-05-15 20:24:19 +00:00
Bob Van Landuyt
cac7e03fa1
Rename `build_events` to `job_events` in code
2017-05-15 14:27:01 +02:00
Z.J. van de Weg
e415ad3952
Fix API not accepting job_events for webhooks
...
When renaming, the argument on the projects hook API was forgotten. Now
one could successfully set it again.
The fix is a little ugly stylewise, but needed as the underlying model
still refers to it as build_events. This commit is to fix it, later we
should migrate the data to a new column. The edit on the spec file makes
sure it passes now, and will fail when we migrate the column.
2017-04-12 10:06:57 +02:00
Rémy Coutable
63360adeae
Add `requirements: { id: %r{[^/]+} }` for all projects and groups namespaced API routes
...
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-03-16 18:00:24 +01:00
Robert Schilling
86c58687b2
Return 204 for delete endpoints
2017-02-28 08:32:38 +01:00
Robert Schilling
01ea65e0e9
Paginate all endpoints that return an array
2017-02-16 15:32:01 +01:00
Robert Schilling
2448fa69d6
Fix project hooks params
2017-01-03 21:07:12 +01:00
Robert Schilling
74c8669b0a
Use the pagination helper in the API
2016-12-04 18:11:19 +01:00
Robert Schilling
76bd09326f
Use declared_params helper in API
2016-11-14 15:22:06 +01:00
Z.J. van de Weg
64f41179cb
Move shared params to a helper
2016-11-04 11:59:40 +01:00
Z.J. van de Weg
7f320142b9
GrapeDSL for project hooks
2016-11-04 11:59:40 +01:00
Gauvain Pocentek
c85c146aa2
Add support for token attr in project hooks API
...
The UI allows to define a token to validate payload on the target URL,
this patch adds the feature to the API.
2016-11-01 10:41:39 +00:00
Ben Boeckel
99c2f3b3c5
api: expose wiki_page_events project hook field in the API
2016-08-24 10:33:51 -04:00
Lin Jen-Shin
020ea32e76
Implement pipeline hooks, extracted from !5525
...
Closes #20115
2016-08-02 18:22:24 +08:00
Grzegorz Bizon
9e211091a8
Enable Style/EmptyLines cop, remove redundant ones
2016-07-01 21:56:17 +02:00
Stan Hu
9413dd80f5
Prevent users from deleting Webhooks via API they do not own
...
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/15576
2016-04-24 23:53:59 -07:00
Kamil Trzcinski
2988e1fbf5
Migrate CI::Services and CI::WebHooks to Services and WebHooks
2015-12-10 16:04:08 +01:00
Ben Boeckel
eb912a534b
api: add enable_ssl_verification to PUT/POST hooks
2015-09-24 12:34:16 -04:00
Stan Hu
deeff56967
Add support for Webhook note events
...
Closes https://github.com/gitlabhq/gitlabhq/issues/6745
2015-05-21 23:48:16 -04:00
Marin Jankovski
7240150c89
Forward the messages in api response.
2014-12-30 15:17:46 +01:00
Kirill Zaitsev
b4963e9dda
Add tag_push_events to project hook api
2014-10-03 10:23:32 +04:00
Dmitriy Zaporozhets
7c60713e82
Move project members api to separate file
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-03-17 13:44:54 +02:00
Dmitriy Zaporozhets
21f4e5d3ac
ProjectHook API supports new event fields
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2013-12-04 13:37:39 +02:00
Dmitriy Zaporozhets
882029d9c6
Expose ProjectHook attributes via API
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2013-12-04 13:37:39 +02:00
Dmitriy Zaporozhets
715eaed6ae
Refactor API: project hooks
2013-09-30 16:49:55 +03:00
Dmitriy Zaporozhets
b05600f28b
Split Project api on several parts: deploy_keys, hooks, snippets etc
2013-06-06 12:37:51 +03:00