Module: Gitlab::Client::Boards
- Included in:
- Gitlab::Client
- Defined in:
- lib/gitlab/client/boards.rb
Overview
Defines methods related to issue boards.
Instance Method Summary collapse
-
#board_list(project, board_id, id) ⇒ Gitlab::ObjectifiedHash
Gets a single board list.
-
#board_lists(project, id) ⇒ Gitlab::ObjectifiedHash
Gets a board lists.
-
#boards(project, options = {}) ⇒ Array<Gitlab::ObjectifiedHash>
Gets a list of project’s boards.
-
#create_board_list(project, board_id, label_id) ⇒ Gitlab::ObjectifiedHash
Creates a new board list.
-
#delete_board_list(project, board_id, id) ⇒ Gitlab::ObjectifiedHash
Deletes a board list.
-
#edit_board_list(project, board_id, id, position) ⇒ Gitlab::ObjectifiedHash
Updates a board list.
Instance Method Details
#board_list(project, board_id, id) ⇒ Gitlab::ObjectifiedHash
Gets a single board list
44 45 46 |
# File 'lib/gitlab/client/boards.rb', line 44 def board_list(project, board_id, id) get("/projects/#{url_encode project}/boards/#{board_id}/lists/#{id}") end |
#board_lists(project, id) ⇒ Gitlab::ObjectifiedHash
Gets a board lists
30 31 32 |
# File 'lib/gitlab/client/boards.rb', line 30 def board_lists(project, id) get("/projects/#{url_encode project}/boards/#{id}/lists") end |
#boards(project, options = {}) ⇒ Array<Gitlab::ObjectifiedHash>
Gets a list of project’s boards.
18 19 20 |
# File 'lib/gitlab/client/boards.rb', line 18 def boards(project, = {}) get("/projects/#{url_encode project}/boards", query: ) end |
#create_board_list(project, board_id, label_id) ⇒ Gitlab::ObjectifiedHash
Creates a new board list. Only for admins and project owners
58 59 60 |
# File 'lib/gitlab/client/boards.rb', line 58 def create_board_list(project, board_id, label_id) post("/projects/#{url_encode project}/boards/#{board_id}/lists", body: { label_id: label_id }) end |
#delete_board_list(project, board_id, id) ⇒ Gitlab::ObjectifiedHash
Deletes a board list. Only for admins and project owners
86 87 88 |
# File 'lib/gitlab/client/boards.rb', line 86 def delete_board_list(project, board_id, id) delete("/projects/#{url_encode project}/boards/#{board_id}/lists/#{id}") end |
#edit_board_list(project, board_id, id, position) ⇒ Gitlab::ObjectifiedHash
Updates a board list. Only for admins and project owners
72 73 74 |
# File 'lib/gitlab/client/boards.rb', line 72 def edit_board_list(project, board_id, id, position) put("/projects/#{url_encode project}/boards/#{board_id}/lists/#{id}", body: { position: position }) end |