From b72cdc2a2ca8512bf094a94ac045e8aeb42e7f4a Mon Sep 17 00:00:00 2001 From: William Casarin Date: Sun, 7 Aug 2022 07:09:36 -0700 Subject: [PATCH] devtools: remove pullreq logic from changelog script seems super slow and buggy Signed-off-by: William Casarin --- devtools/changelog.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/devtools/changelog.py b/devtools/changelog.py index 0182634..9a055db 100755 --- 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)