mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Properly query team members
This commit is contained in:
parent
88b5ed1894
commit
c0c1ab766f
12
.github/workflows/welcome-external-pr.yml
vendored
12
.github/workflows/welcome-external-pr.yml
vendored
@ -23,23 +23,21 @@ jobs:
|
|||||||
gh api graphql \
|
gh api graphql \
|
||||||
--raw-field organization="$ORGANIZATION" \
|
--raw-field organization="$ORGANIZATION" \
|
||||||
--raw-field query='
|
--raw-field query='
|
||||||
query($organization: String!, $cursor: String) {
|
query($organization: String!) {
|
||||||
organization(login: $organization) {
|
organization(login: $organization) {
|
||||||
membersWithRole(first: 100, after: $cursor) {
|
team(slug: "Solidity") {
|
||||||
pageInfo {
|
members(first: 100) {
|
||||||
hasNextPage,
|
|
||||||
endCursor
|
|
||||||
}
|
|
||||||
nodes {
|
nodes {
|
||||||
login
|
login
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}' > org_members.json
|
}' > org_members.json
|
||||||
echo "CONTRIBUTOR_IS_ORG_MEMBER=$(
|
echo "CONTRIBUTOR_IS_ORG_MEMBER=$(
|
||||||
jq \
|
jq \
|
||||||
--arg contributor $CONTRIBUTOR \
|
--arg contributor $CONTRIBUTOR \
|
||||||
'.data.organization.membersWithRole | any(.nodes[].login; . == $contributor)' \
|
'.data.organization.team.members | any(.nodes[].login; . == $contributor)' \
|
||||||
org_members.json
|
org_members.json
|
||||||
)" >> $GITHUB_OUTPUT
|
)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user