Introduce a debug print statement to log the payload before creating an issue in the `chores.py` script. This aids in tracing outgoing data and facilitates easier troubleshooting of the issue creation process.
This commit is contained in:
parent
1df648ca81
commit
d5fe6d18a4
1 changed files with 2 additions and 0 deletions
|
@ -43,6 +43,8 @@ headers = {
|
|||
"Authorization": "token " + TOKEN,
|
||||
}
|
||||
|
||||
print(f"Creating issue with payload:\n{payload}")
|
||||
|
||||
request = urllib.request.Request(
|
||||
f"{FORGEJO_URL}/api/v1/repos/{REPO_OWNER}/{REPO_NAME}/issues",
|
||||
data=json.dumps(payload).encode("utf-8"),
|
||||
|
|
Loading…
Reference in a new issue