Add logging for issue creation payload
Some checks failed
/ chores (push) Failing after 17s

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:
Kumi 2024-02-18 13:25:53 +01:00
parent 1df648ca81
commit d5fe6d18a4
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -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"),