Skip to content
Snippets Groups Projects
Commit 2f6d5f03 authored by Christopher Bohn's avatar Christopher Bohn :thinking:
Browse files

Added capability to close an issue

parent 0ccc98dc
No related branches found
No related tags found
No related merge requests found
......@@ -160,6 +160,10 @@ class GitlabIssue:
"""
return self.git_issue.web_url
def close(self) -> None:
self.git_issue.state_event = 'close'
self.git_issue.save()
def __repr__(self) -> str:
issue_number = self.get_project_issue_id()
title = self.get_title()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment