Skip to content

Commit 99575f4

Browse files
committed
Fix missing param
1 parent e3ff5d9 commit 99575f4

3 files changed

Lines changed: 75 additions & 3 deletions

File tree

app/github.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
def has_signature(comment: dict, slug: str) -> bool:
1313
return (
1414
comment["user"]["login"] in ["github-actions[bot]", "botberry"]
15-
and SIGNATURE_TEMPLATE.format(slug) in comment["body"]
15+
and SIGNATURE_TEMPLATE.format(slug=slug) in comment["body"]
1616
)
1717

1818

@@ -58,7 +58,7 @@ def add_or_edit_comment(pr_number: int, comment: str, slug: str):
5858
response = method(
5959
url,
6060
headers={"Authorization": f"token {GITHUB_TOKEN}"},
61-
json={"body": comment + SIGNATURE_TEMPLATE.format(slug)},
61+
json={"body": comment + SIGNATURE_TEMPLATE.format(slug=slug)},
6262
)
6363

6464
response.raise_for_status()

poetry.lock

Lines changed: 72 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ flake8 = "^3.8.4"
1717
black = {version = "^20.8b1", allow-prereleases = true}
1818
isort = "^5.7.0"
1919
taskipy = "^1.6.0"
20+
pdbpp = "^0.10.2"
2021

2122
[build-system]
2223
requires = ["poetry-core>=1.0.0"]

0 commit comments

Comments
 (0)