Skip to content

Commit aa59aa9

Browse files
authored
Merge pull request #27 from lugi0/feature/auto-approve-lgtm
add required arg to dismiss
2 parents af08c3a + 47a4d90 commit aa59aa9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/scripts/pr_workflow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ def dismiss_pr_approval(self) -> None:
316316
for review in all_reviews.reversed:
317317
if review.user.login == current_user and review.state == "APPROVED":
318318
LOGGER.info(f"found review by user {current_user} with id {review.id}")
319-
review.dismiss()
319+
review.dismiss(message="Dismissing review due to '/lgtm cancel' comment")
320320

321321

322322
def main() -> None:

0 commit comments

Comments
 (0)