From 9bedbd564550eb2fedb3b3373c988e16456cc9b2 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> --- webhooks/webhook.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/webhooks/webhook.py b/webhooks/webhook.py index 74ddbaa..440a6ee 100755 --- a/webhooks/webhook.py +++ b/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(