Skip to content

Commit

Permalink
Changes to check script
Browse files Browse the repository at this point in the history
Signed-off-by: Enrique Belarte Luque <[email protected]>
  • Loading branch information
enriquebelarte committed Jan 29, 2025
1 parent 77d7143 commit 4427efb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/check_changes.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,13 @@ def create_branch_and_pr(driver_version, kernel_version):

# Create the PR
title = "Automatic build for " + branch_name
#headers = {'Accept': "application/vnd.github+json", 'Authorization': "Bearer " + token, 'GitHub-Api-Version': "2022-11-28"}
headers = {'Authorization': f'token {token}', "User-Agent": "auto-build-and-sign", "Accept": "application/vnd.github.v3+json"}
headers = {'Accept': "application/vnd.github+json", 'Authorization': "Bearer " + token, 'GitHub-Api-Version': "2022-11-28"}
#headers = {'Authorization': f'token {token}', "User-Agent": "auto-build-and-sign", "Accept": "application/vnd.github.v3+json"}
body = {'title': token, 'body': "A new automatic build-and-sign run for " + branch_name, 'head': branch_name, 'base': "main"}
url = api +"/repos/rh-ecosystem-edge/build-and-sign"

data = json.dumps(body)
print(f"REQUEST: {title} | Headers: {headers} | Data: {data} | URL: {url}")
pr = requests.post(url, headers=headers, data=data)
print(pr.json)

Expand Down

0 comments on commit 4427efb

Please sign in to comment.