Method: GitLab::Issue#set_data
- Defined in:
- lib/GitLab/issue.rb
#set_data(obj) ⇒ Object
138 139 140 141 142 143 144 145 146 147 |
# File 'lib/GitLab/issue.rb', line 138 def set_data obj @iid = obj["iid"] @title = obj["title"] @labels = obj["labels"] @description = obj["description"] @assignee_id = obj["assignees"][0]["id"] @branch = obj["description"].match(/\* \~default_branch .*\n?/).to_s.gsub('* ~default_branch ', '').chomp.strip rescue nil @obj_gitlab = obj self end |