Format Python code with Black (#2531)
Co-authored-by: tituspijean <8769166+tituspijean@users.noreply.github.com>
This commit is contained in:
parent
d1fad8abf2
commit
9bedbd5645
1 changed files with 3 additions and 2 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue