diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2022-02-03 12:58:06 +0100 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2022-02-03 12:58:06 +0100 |
commit | f49913549a72edbfc99e1745ac6ac09e9f46c3ed (patch) | |
tree | b7e25a86b6f0a09567bbb88708cff5e8185b0f6f | |
parent | 9281e283cd46598e3ffee853a343f8623c12d5e4 (diff) | |
download | atom_to_gitea-f49913549a72edbfc99e1745ac6ac09e9f46c3ed.tar.gz |
a
-rw-r--r-- | rss_to_gitea/gitea.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/rss_to_gitea/gitea.py b/rss_to_gitea/gitea.py index fdb1203..39ea763 100644 --- a/rss_to_gitea/gitea.py +++ b/rss_to_gitea/gitea.py @@ -33,12 +33,12 @@ class GiteaAPI: return result.json() - def createIssue(self, owner, repo, title, content): + def createIssue(self, _owner, _repo, _title, _content): pass - def searchIssue(self, _owner, _repo, _title, _labels): + def searchIssue(self, _owner, _repo, _title, _labels, _state='open'): data= { - 'state':'open', + 'state':_state, 'labels':_labels, 'created_by':self.username, 'q':_title @@ -49,6 +49,6 @@ class GiteaAPI: for issue in result: print(issue['title']) - def updateIssue(self, owner, repo, issueid): + def updateIssue(self, _owner, _repo, _issueid): pass |