From ab1b3fee59ee2be8192ce5b43cd30a1006b8862b Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sun, 13 Oct 2019 20:22:05 +0100 Subject: [PATCH] Don't request review for my own PRs --- actioner/scheduler/todoist_repo_prs.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/actioner/scheduler/todoist_repo_prs.py b/actioner/scheduler/todoist_repo_prs.py index 3193d4c..99bcbc4 100644 --- a/actioner/scheduler/todoist_repo_prs.py +++ b/actioner/scheduler/todoist_repo_prs.py @@ -32,6 +32,9 @@ def todoist_repo_prs(): existing_tasks = get_existing_tasks(project_id, todoist) existing_task_id = get_existing_task(existing_tasks, pr) + if pr.user.login == me.login: + continue # I don't need to review my own PRs! + if pr.state == "closed" and existing_task_id: my_review = get_my_review(me, pr) if pr.merged and my_review and my_review.state == "APPROVED":