Skip to content

Commit 73b80fa

Browse files
committed
Prevent shadowing of variable
1 parent 99575f4 commit 73b80fa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/github.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def get_labels(pr_number) -> typing.List[dict]:
4444
return response.json()
4545

4646

47-
def add_or_edit_comment(pr_number: int, comment: str, slug: str):
47+
def add_or_edit_comment(pr_number: int, comment_template: str, slug: str):
4848
current_comments = get_comments(pr_number)
4949

5050
previous_comment = next(
@@ -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=slug)},
61+
json={"body": comment_template + SIGNATURE_TEMPLATE.format(slug=slug)},
6262
)
6363

6464
response.raise_for_status()

0 commit comments

Comments
 (0)