fix to gha req issue

This commit is contained in:
Matthew Gaughan 2023-11-08 13:36:09 -06:00
parent ef138afac9
commit 81020d5062

View File

@ -22,8 +22,12 @@ def get_milestone_information(repo_uri):
print(repo_uri_list)
api_url = "https://api.github.com/repos/" + repo_uri_list[-2] + "/" + repo_uri_list[-1] + "/milestones"
headers = {'content-type': 'application/json', 'Accept-Charset': 'UTF-8', 'Authorization': 'bearer ' + key}
try:
response = requests.get(url = api_url, headers=headers)
response_dict = response.json()
except:
print('error with the gha request')
response_dict = {}
return response_dict
def parse_milestones(milestones, earliest_date):