Method: GitLab::Issue#close
- Defined in:
- lib/GitLab/issue.rb
#close ⇒ Object
45 46 47 48 49 50 51 52 53 54 55 |
# File 'lib/GitLab/issue.rb', line 45 def close params = {} params.merge!(title: @title) params.merge!(state_event: 'close') params.merge!(description: @description.to_s) params.merge!(labels: @labels.join(',')) url = "projects/#{$GITLAB_PROJECT_ID}/issues/#{@iid}" GitLab.request_put(url, params) print "Issue '#{@title}' closed with success!\n".green end |