Skip to content

Commit b201304

Browse files
committed
Change this token name to make it more specific to its usage
1 parent bcbb464 commit b201304

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/review-pr.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ on:
5555
type: string
5656
default: "docker"
5757
secrets:
58-
ORG_MEMBERSHIP_TOKEN:
58+
CAGENT_ORG_MEMBERSHIP_TOKEN:
5959
description: "PAT with read:org scope to check org membership for auto-reviews"
6060
required: false
6161
ANTHROPIC_API_KEY:
@@ -116,7 +116,7 @@ jobs:
116116
id: membership
117117
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
118118
with:
119-
github-token: ${{ secrets.ORG_MEMBERSHIP_TOKEN }}
119+
github-token: ${{ secrets.CAGENT_ORG_MEMBERSHIP_TOKEN }}
120120
script: |
121121
const org = '${{ inputs.auto-review-org }}';
122122
const username = context.payload.pull_request.user.login;
@@ -134,11 +134,11 @@ jobs:
134134
console.log(`⏭️ ${username} is not a ${org} org member - skipping auto-review`);
135135
} else if (error.status === 401) {
136136
core.setFailed(
137-
'❌ ORG_MEMBERSHIP_TOKEN secret is missing or invalid.\n\n' +
137+
'❌ CAGENT_ORG_MEMBERSHIP_TOKEN secret is missing or invalid.\n\n' +
138138
`This secret is required to check ${org} org membership for auto-reviews.\n\n` +
139139
'To fix this:\n' +
140140
'1. Create a classic PAT with read:org scope at https://github.com/settings/tokens/new\n' +
141-
'2. Add it as an org secret named ORG_MEMBERSHIP_TOKEN'
141+
'2. Add it as an org secret named CAGENT_ORG_MEMBERSHIP_TOKEN'
142142
);
143143
} else {
144144
core.setFailed(`Failed to check org membership: ${error.message}`);

review-pr/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@ With just an API key, you can use `/review` comments to trigger reviews manually
7171
| Secret | Description | Purpose |
7272
|--------|-------------|---------|
7373
| `ANTHROPIC_API_KEY` | API key for your LLM provider | Required |
74-
| `ORG_MEMBERSHIP_TOKEN` | PAT with `read:org` scope | Auto-review PRs from org members |
74+
| `CAGENT_ORG_MEMBERSHIP_TOKEN` | PAT with `read:org` scope | Auto-review PRs from org members |
7575
| `CAGENT_REVIEWER_APP_ID` | GitHub App ID | Reviews appear as your app (not github-actions[bot]) |
7676
| `CAGENT_REVIEWER_APP_PRIVATE_KEY` | GitHub App private key | Required with App ID |
7777

78-
**Note:** Without `ORG_MEMBERSHIP_TOKEN`, only `/review` comments work (no auto-review on PR open).
78+
**Note:** Without `CAGENT_ORG_MEMBERSHIP_TOKEN`, only `/review` comments work (no auto-review on PR open).
7979
Without GitHub App secrets, reviews appear as "github-actions[bot]" which is fine for most teams.
8080

8181
---

0 commit comments

Comments
 (0)