Skip to content

Commit 2cd361d

Browse files
committed
ci: update validate team pr to use maintainer field instead of lead
1 parent a079b37 commit 2cd361d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/scripts/validate-team.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ if [[ "$TEAM_FILE" != *.toml ]]; then
1010
exit 0
1111
fi
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
1717
fi
1818

.github/workflows/validate-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
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 }}"

0 commit comments

Comments
 (0)