reposync/pr_sync/update_gitlink_pr.py

14 lines
386 B
Python

import requests
url = "https://gitlink.org.cn/api/xumingyang21/reposyncer2/pulls/7633/refuse_merge.json"
payload={}
access_token = 'I9uyRzjEIObdgsD8fegdQoN2d3p3cU_7_uaNGV03S_Q'
headers = {
'Authorization': f'Bearer {access_token}',
'User-Agent': 'Apifox/1.0.0 (https://apifox.com)'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)