Skip to content

Commit 921dc86

Browse files
authored
Tweak review workflow for draft PRs (#997)
1 parent eb2ca5d commit 921dc86

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/assign-reviews.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ jobs:
4141
Find all open PRs where:
4242
1. The PR is waiting for review (there are no open review comments or change requests)
4343
2. The PR is in a "clean" state (CI passing, no merge conflicts)
44-
3. The PR has had no activity (comments, commits, reviews) for more than 3 days.
44+
3. The PR is not marked as draft (draft: false)
45+
4. The PR has had no activity (comments, commits, reviews) for more than 3 days.
4546
4647
In this case, send a message to the reviewers:
4748
[Automatic Post]: This PR seems to be currently waiting for review.
@@ -50,7 +51,7 @@ jobs:
5051
# Need Author Action
5152
5253
Find all open PRs where the most recent change or comment was made on the pull
53-
request more than 5 days ago. Then do the following in order:
54+
request more than 5 days ago (use 14 days if the PR is marked as draft).
5455
5556
And send a message to the author:
5657

examples/03_github_workflows/01_basic_action/assign-reviews.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ jobs:
4141
Find all open PRs where:
4242
1. The PR is waiting for review (there are no open review comments or change requests)
4343
2. The PR is in a "clean" state (CI passing, no merge conflicts)
44-
3. The PR has had no activity (comments, commits, reviews) for more than 3 days.
44+
3. The PR is not marked as draft (draft: false)
45+
4. The PR has had no activity (comments, commits, reviews) for more than 3 days.
4546
4647
In this case, send a message to the reviewers:
4748
[Automatic Post]: This PR seems to be currently waiting for review.
@@ -50,7 +51,7 @@ jobs:
5051
# Need Author Action
5152
5253
Find all open PRs where the most recent change or comment was made on the pull
53-
request more than 5 days ago. Then do the following in order:
54+
request more than 5 days ago (use 14 days if the PR is marked as draft).
5455
5556
And send a message to the author:
5657

0 commit comments

Comments
 (0)