NARKOZ / gitlab

Ruby wrapper and CLI for the GitLab REST API
https://narkoz.github.io/gitlab
BSD 2-Clause "Simplified" License
1.06k stars 394 forks source link

How to create Incident? #691

Open ytiruces opened 2 months ago

ytiruces commented 2 months ago

Hi. How to create Incident? I think something like this: Gitlab.create_issue(5, 'New issue', { description: 'This is a new issue', assignee_id: 42, type: Incedent }) ? I can't find it in docs.

ltickett commented 1 month ago

Hey @ytiruces try:

Gitlab.create_issue(5, 'New issue', { description: 'This is a new issue', assignee_id: 42, issue_type: 'incident' })

See: https://docs.gitlab.com/ee/api/issues.html#new-issue