damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit b72cdc2a2ca8512bf094a94ac045e8aeb42e7f4a
parent 61f5d1009e0f8671c72000f5952a3eb38215605a
Author: William Casarin <jb55@jb55.com>
Date:   Sun,  7 Aug 2022 07:09:36 -0700

devtools: remove pullreq logic from changelog script

seems super slow and buggy

Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Mdevtools/changelog.py | 13+++++++------
1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/devtools/changelog.py b/devtools/changelog.py @@ -65,12 +65,13 @@ def get_log_entries(commitrange): if os.environ.get('GH_TOKEN'): headers['Authorization'] = 'token ' + os.environ.get('GH_TOKEN') - url = 'https://api.github.com/repos/{repo}/commits/{commit}/pulls'.format(repo=repo, commit=commit) - content = requests.get(url, headers=headers).json() - if content and content.get(0) is not None: - pullreq = content[0]['number'] - else: - pullreq = None + #url = 'https://api.github.com/repos/{repo}/commits/{commit}/pulls'.format(repo=repo, commit=commit) + #content = requests.get(url, headers=headers).json() + #if content and content.get(0) is not None: + # pullreq = content[0]['number'] + #else: + # pullreq = None + pullreq = None e = Entry(commit, pullreq, m.group(2), m.group(1).lower()) entries.append(e)