Merge branch 'ofw-dev' into xfw-dev

This commit is contained in:
Willy-JL
2023-04-09 19:07:21 +01:00
23 changed files with 66 additions and 60 deletions

View File

@@ -32,7 +32,7 @@ def parse_args():
def get_commit_json(event):
context = ssl._create_unverified_context()
commit_url = event["pull_request"]["base"]["repo"]["commits_url"].replace(
"{/sha}", f"/{event['after']}"
"{/sha}", f"/{event['pull_request']['head']['sha']}"
)
with urllib.request.urlopen(commit_url, context=context) as commit_file:
commit_json = json.loads(commit_file.read().decode("utf-8"))