File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -10,9 +10,9 @@ if [[ "$TEAM_FILE" != *.toml ]]; then
1010 exit 0
1111fi
1212
13- # Check if PR author is in leads list
14- if ! grep -qE " leads \s*=\s*\[" " $TEAM_FILE " || ! grep -qE " (\" $PR_AUTHOR \" |'$PR_AUTHOR ')" " $TEAM_FILE " ; then
15- echo " ::error::Team creator must be listed as a lead in $TEAM_FILE "
13+ # Check if PR author is in maintainers list
14+ if ! grep -qE " maintainers \s*=\s*\[" " $TEAM_FILE " || ! grep -qE " (\" $PR_AUTHOR \" |'$PR_AUTHOR ')" " $TEAM_FILE " ; then
15+ echo " ::error::Team creator must be listed as a maintainer in $TEAM_FILE "
1616 exit 1
1717fi
1818
Original file line number Diff line number Diff line change 3434 fi
3535 done
3636
37- - name : Validate team creator is a lead
37+ - name : Validate team creator is a maintainer
3838 if : contains(steps.changed-files.outputs.added_files, 'teams/')
3939 run : |
4040 PR_AUTHOR="${{ github.event.pull_request.user.login }}"
You can’t perform that action at this time.
0 commit comments