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
41 42 43 |
# File 'lib/gitlab/client/boards.rb', line 41 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
28 29 30 |
# File 'lib/gitlab/client/boards.rb', line 28 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.
16 17 18 |
# File 'lib/gitlab/client/boards.rb', line 16 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
55 56 57 |
# File 'lib/gitlab/client/boards.rb', line 55 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
83 84 85 |
# File 'lib/gitlab/client/boards.rb', line 83 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
69 70 71 |
# File 'lib/gitlab/client/boards.rb', line 69 def edit_board_list(project, board_id, id, position) put("/projects/#{url_encode project}/boards/#{board_id}/lists/#{id}", body: {position: position}) end |