Skip to content

Commit 08916b6

Browse files
theoephraimclaude
andcommitted
Add branch protection tip to PAT setup instructions
Remind users to enable branch protection on main so the PAT can only be used to push the version branch, not write directly. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 38227b4 commit 08916b6

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

packages/bumpy/src/commands/ci-setup.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ async function setupPat(rootDir: string, repo: string, pm: PackageManager): Prom
7979
...PAT_PERMISSIONS.map((perm) => ` • ${pc.bold(perm)}`),
8080
'',
8181
'7. Click "Generate token" and copy the value',
82+
'',
83+
pc.dim('Tip: enable branch protection rules on your main branch to prevent'),
84+
pc.dim('direct pushes — the PAT will only be used to push the version branch.'),
8285
].join('\n'),
8386
'Create a fine-grained PAT',
8487
);

0 commit comments

Comments
 (0)