Commit 7302f9de authored by Sean Arnold's avatar Sean Arnold Committed by Douglas Barbosa Alexandre

WIP Close issue after error resolve

- Extract common test setup into context
- Add specs for update service
- Fix spec by returning issue
parent fe3450ba
......@@ -105,6 +105,12 @@ module SystemNoteService
create_note(NoteSummary.new(issue, project, author, body, action: 'closed'))
end
def close_after_error_tracking_resolve(noteable, project, author)
body = 'automatically closed this as a result of resolving the corresponding Sentry error.'
create_note(NoteSummary.new(noteable, project, author, body, action: 'closed'))
end
def change_status(noteable, project, author, status, source = nil)
::SystemNotes::IssuablesService.new(noteable: noteable, project: project, author: author).change_status(status, source)
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment