Skip to content

Commit 2cc6610

Browse files
authored
Merge pull request #13677 from ethereum/welcome-external-contributors
Properly distinguish team members and external contributors
2 parents 88b5ed1 + c0c1ab7 commit 2cc6610

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

.github/workflows/welcome-external-pr.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,23 +23,21 @@ jobs:
2323
gh api graphql \
2424
--raw-field organization="$ORGANIZATION" \
2525
--raw-field query='
26-
query($organization: String!, $cursor: String) {
26+
query($organization: String!) {
2727
organization(login: $organization) {
28-
membersWithRole(first: 100, after: $cursor) {
29-
pageInfo {
30-
hasNextPage,
31-
endCursor
32-
}
33-
nodes {
34-
login
28+
team(slug: "Solidity") {
29+
members(first: 100) {
30+
nodes {
31+
login
32+
}
3533
}
3634
}
3735
}
3836
}' > org_members.json
3937
echo "CONTRIBUTOR_IS_ORG_MEMBER=$(
4038
jq \
4139
--arg contributor $CONTRIBUTOR \
42-
'.data.organization.membersWithRole | any(.nodes[].login; . == $contributor)' \
40+
'.data.organization.team.members | any(.nodes[].login; . == $contributor)' \
4341
org_members.json
4442
)" >> $GITHUB_OUTPUT
4543

0 commit comments

Comments
 (0)