1
0
Fork 0

Format Python code with Black (#2531)

Co-authored-by: tituspijean <8769166+tituspijean@users.noreply.github.com>
This commit is contained in:
github-actions[bot] 2024-08-18 13:45:09 +02:00 committed by GitHub
parent d1fad8abf2
commit 9bedbd5645

View file

@ -255,11 +255,12 @@ def reject_wishlist(request: Request, pr_infos: dict, reason=None) -> HTTPRespon
logging.debug(f"Pushing {repository}") logging.debug(f"Pushing {repository}")
repo.remote().push(quiet=False, all=True, force=True) 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: with requests.Session() as s:
s.headers.update({"Authorization": f"token {github_token()}"}) s.headers.update({"Authorization": f"token {github_token()}"})
r = s.post( 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: if r.status_code != 200:
logging.info( logging.info(