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

Instance Method Details

#epic_label_event(group, epic_id, id) ⇒ Object

Returns a single label event for a specific group epic

Examples:

Gitlab.epic_label_event(5, 42, 1)

Parameters:

  • group (Integer, String)

    The ID or name of a group.

  • epic_id (Integer)

    The ID of an epic.

  • id (Integer)

    The ID of a label event.

Returns:

  • Gitlab::ObjectifiedHash



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.

Examples:

Gitlab.epic_label_events(5, 42)

Parameters:

  • group (Integer, String)

    The ID or name of a group.

  • epic_id (Integer)

    The ID of an epic.

Returns:



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

Examples:

Gitlab.issue_label_event(5, 42, 1)

Parameters:

  • project (Integer, String)

    The ID or name of a project.

  • issue_iid (Integer)

    The IID of an issue.

  • id (Integer)

    The ID of a label event.

Returns:

  • Gitlab::ObjectifiedHash



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.

Examples:

Gitlab.issue_label_events(5, 42)

Parameters:

  • project (Integer, String)

    The ID or name of a project.

  • issue_iid (Integer)

    The IID of an issue.

Returns:



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

Examples:

Gitlab.merge_request_label_event(5, 42, 1)

Parameters:

  • project (Integer, String)

    The ID or name of a project.

  • merge_request_iid (Integer)

    The IID of an merge request.

  • id (Integer)

    The ID of a label event.

Returns:

  • Gitlab::ObjectifiedHash



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.

Examples:

Gitlab.merge_request_label_events(5, 42)

Parameters:

  • project (Integer, String)

    The ID or name of a project.

  • merge_request_iid (Integer)

    The IID of a merge request.

Returns:



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