reposync/issue_sync/update_gitlink_issue.py

19 lines
495 B
Python

import requests
import json
url = "https://gitlink.org.cn/api/v1/xumingyang21/reposyncer2/issues/14.json"
payload = json.dumps({
"status_id": "5",
# "priority_id": 0,
# "milestone_id": 0,
})
access_token = 'zo07-W-W6vnU1mvQhVhIdfyyVY3K1R1piil_jfvS1bg'
headers = {
'Authorization': f'Bearer {access_token}', # 使用 Bearer 标记
'User-Agent': 'Apifox/1.0.0 (https://apifox.com)'
}
response = requests.request("PATCH", url, headers=headers, data=payload)
print(response.text)