fix to gha req issue
This commit is contained in:
parent
ef138afac9
commit
81020d5062
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user