1
0
mirror of git://jb55.com/damus synced 2024-09-18 19:23:49 +00:00

devtools: remove pullreq logic from changelog script

seems super slow and buggy

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin 2022-08-07 07:09:36 -07:00
parent 61f5d1009e
commit b72cdc2a2c

View File

@ -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)