Skip to content

Commit d3b2ab5

Browse files
authored
remove the need for self-assign
1 parent 05567c4 commit d3b2ab5

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

.github/workflows/main-reviewer.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,29 +25,20 @@ jobs:
2525
SANITIZED_REVIEWERS="$SANITIZED_REVIEWERS $(sanitize "$r")"
2626
done
2727
NEW_REVIEWER=$(jq -r '.requested_reviewer.login' < $GITHUB_EVENT_PATH)
28-
ACTOR=$(jq -r '.sender.login' < $GITHUB_EVENT_PATH)
2928
SANITIZED_NEW_REVIEWER=$(sanitize "$NEW_REVIEWER")
30-
SANITIZED_ACTOR=$(sanitize "$ACTOR")
3129
echo "REVIEWERS=$(echo "$SANITIZED_REVIEWERS" | xargs)" >> $GITHUB_ENV
3230
echo "NEW_REVIEWER=$SANITIZED_NEW_REVIEWER" >> $GITHUB_ENV
33-
echo "ACTOR=$SANITIZED_ACTOR" >> $GITHUB_ENV
3431
3532
- name: Determine checklist type
3633
id: checklist_type
3734
run: |
38-
# Only act if the user requested themselves
39-
if [ "$ACTOR" != "$NEW_REVIEWER" ]; then
40-
echo "SKIP=true" >> $GITHUB_ENV
41-
exit 0
42-
fi
4335
COUNT=$(echo "$REVIEWERS" | grep -c .)
4436
if [ "$COUNT" -eq "1" ]; then
4537
echo "TEMPLATE=main_rev_checklist.md" >> $GITHUB_ENV
46-
echo "SKIP=false" >> $GITHUB_ENV
4738
else
4839
echo "TEMPLATE=rev_checklist.md" >> $GITHUB_ENV
49-
echo "SKIP=false" >> $GITHUB_ENV
5040
fi
41+
echo "SKIP=false" >> $GITHUB_ENV
5142
5243
- name: Prepare checklist
5344
if: env.SKIP == 'false'

0 commit comments

Comments
 (0)