Module: Gitlab::Client::ResourceLabelEvents
- Included in:
- Gitlab::Client
- Defined in:
- lib/gitlab/client/resource_label_events.rb
Overview
Defines methods related to resource label events.
Instance Method Summary collapse
-
#epic_label_event(group, epic_id, id) ⇒ Object
Returns a single label event for a specific group epic.
-
#epic_label_events(group, epic_id) ⇒ Array<Gitlab::ObjectifiedHash>
Gets a list of all label events for a single epic.
-
#issue_label_event(project, issue_iid, id) ⇒ Object
Returns a single label event for a specific project issue.
-
#issue_label_events(project, issue_iid) ⇒ Array<Gitlab::ObjectifiedHash>
Gets a list of all label events for a single issue.
-
#merge_request_label_event(project, merge_request_iid, id) ⇒ Object
Returns a single label event for a specific project merge request.
-
#merge_request_label_events(project, merge_request_iid) ⇒ Array<Gitlab::ObjectifiedHash>
Gets a list of all label events for a single merge request.
Instance Method Details
#epic_label_event(group, epic_id, id) ⇒ Object
Returns a single label event for a specific group epic
53 54 55 |
# File 'lib/gitlab/client/resource_label_events.rb', line 53 def epic_label_event(group, epic_id, id) get("/groups/#{url_encode group}/epics/#{epic_id}/resource_label_events/#{id}") end |
#epic_label_events(group, epic_id) ⇒ Array<Gitlab::ObjectifiedHash>
Gets a list of all label events for a single epic.
40 41 42 |
# File 'lib/gitlab/client/resource_label_events.rb', line 40 def epic_label_events(group, epic_id) get("/groups/#{url_encode group}/epics/#{epic_id}/resource_label_events") end |
#issue_label_event(project, issue_iid, id) ⇒ Object
Returns a single label event for a specific project issue
28 29 30 |
# File 'lib/gitlab/client/resource_label_events.rb', line 28 def issue_label_event(project, issue_iid, id) get("/projects/#{url_encode project}/issues/#{issue_iid}/resource_label_events/#{id}") end |
#issue_label_events(project, issue_iid) ⇒ Array<Gitlab::ObjectifiedHash>
Gets a list of all label events for a single issue.
15 16 17 |
# File 'lib/gitlab/client/resource_label_events.rb', line 15 def issue_label_events(project, issue_iid) get("/projects/#{url_encode project}/issues/#{issue_iid}/resource_label_events") end |
#merge_request_label_event(project, merge_request_iid, id) ⇒ Object
Returns a single label event for a specific project merge request
78 79 80 |
# File 'lib/gitlab/client/resource_label_events.rb', line 78 def merge_request_label_event(project, merge_request_iid, id) get("/projects/#{url_encode project}/merge_requests/#{merge_request_iid}/resource_label_events/#{id}") end |
#merge_request_label_events(project, merge_request_iid) ⇒ Array<Gitlab::ObjectifiedHash>
Gets a list of all label events for a single merge request.
65 66 67 |
# File 'lib/gitlab/client/resource_label_events.rb', line 65 def merge_request_label_events(project, merge_request_iid) get("/projects/#{url_encode project}/merge_requests/#{merge_request_iid}/resource_label_events") end |