mirror of
https://github.com/ditkrg/todo-to-issue-action.git
synced 2026-01-22 22:06:43 +00:00
feat: add ability to print Issue object
Facilitates debug and error handling
This commit is contained in:
parent
e42bca636e
commit
dd15f79ab8
6
Issue.py
6
Issue.py
@ -19,3 +19,9 @@ class Issue(object):
|
||||
self.issue_url = issue_url
|
||||
self.issue_number = issue_number
|
||||
|
||||
def __str__(self):
|
||||
selflist = []
|
||||
for key in [x for x in vars(self).keys() if x not in ("hunk")]:
|
||||
selflist.append(f'"{key}": "{getattr(self, key)}"')
|
||||
selflist.append((f'"hunk": "{self.hunk}"'))
|
||||
return '\n'.join(selflist)
|
||||
Loading…
Reference in New Issue
Block a user