From 6afdce3b8e2c64e633f639d4d7bbb718a5069aeb Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 18 Aug 2024 13:45:09 +0200 Subject: [PATCH] Format Python code with Black (#2531) Co-authored-by: tituspijean <8769166+tituspijean@users.noreply.github.com> --- tools/webhooks/webhook.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/webhooks/webhook.py b/tools/webhooks/webhook.py index 74ddbaa1..440a6eec 100755 --- a/tools/webhooks/webhook.py +++ b/tools/webhooks/webhook.py @@ -255,11 +255,12 @@ def reject_wishlist(request: Request, pr_infos: dict, reason=None) -> HTTPRespon logging.debug(f"Pushing {repository}") repo.remote().push(quiet=False, all=True, force=True) - new_pr_title={"title": f"Add {suggestedapp_name} to rejection list"} + new_pr_title = {"title": f"Add {suggestedapp_name} to rejection list"} with requests.Session() as s: s.headers.update({"Authorization": f"token {github_token()}"}) r = s.post( - f"https://api.github.com/repos/{repository}/pulls/{pr_number}", json=new_pr_title + f"https://api.github.com/repos/{repository}/pulls/{pr_number}", + json=new_pr_title, ) if r.status_code != 200: logging.info(