You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Extract Contributor+ membership check into composite action
Adds .github/actions/composite/isContributorPlus so other workflows can
reuse the team-membership lookup. claude-review.yml now calls the
composite action and reads its IS_CPLUS output instead of inlining the
gh api call.
Made-with: Cursor
description: Check whether a GitHub user is a member of the Expensify/contributor-plus team. Sets IS_CPLUS=true when the user is a member, IS_CPLUS=false otherwise.
3
+
4
+
inputs:
5
+
USERNAME:
6
+
description: The GitHub login of the user to check.
7
+
required: true
8
+
OS_BOTIFY_TOKEN:
9
+
description: OSBotify token. Needed to read team memberships (the default GITHUB_TOKEN lacks the read:org scope).
10
+
required: true
11
+
12
+
outputs:
13
+
IS_CPLUS:
14
+
description: "'true' if the user is a member of Expensify/contributor-plus, 'false' otherwise."
15
+
value: ${{ steps.check.outputs.IS_CPLUS }}
16
+
17
+
runs:
18
+
using: composite
19
+
steps:
20
+
- name: Check Contributor+ membership
21
+
id: check
22
+
shell: bash
23
+
env:
24
+
GH_TOKEN: ${{ inputs.OS_BOTIFY_TOKEN }}
25
+
USERNAME: ${{ inputs.USERNAME }}
26
+
run: |
27
+
if gh api "/orgs/Expensify/teams/contributor-plus/memberships/$USERNAME" --silent; then
28
+
echo "::notice::✅ $USERNAME is a Contributor+ member"
29
+
echo "IS_CPLUS=true" >> "$GITHUB_OUTPUT"
30
+
else
31
+
echo "::notice::$USERNAME is not a Contributor+ member"
0 commit comments