Method: GitLab::Issue#update
- Defined in:
- lib/GitLab/issue.rb
#update ⇒ Object
57 58 59 60 61 62 63 64 65 66 67 68 69 70 |
# File 'lib/GitLab/issue.rb', line 57 def update params = {} params.merge!(title: @title) params.merge!(description: @description.to_s) params.merge!(labels: @labels.join(',')) params.merge!(assignee_id: @assignee_id) # label = params.fetch(:label) || '' # assignee_id = params.fetch(:assignee_id) || '' print "\nUpdate GitLab issue\n\n".yellow url = "projects/#{$GITLAB_PROJECT_ID}/issues/#{@iid}" GitLab.request_put(url, params) print "Issue updated with success!\n".green end |