Commit d201e00
ci(combine-prs): support optional PAT to trigger downstream CI (#250)
PRs created by the default `GITHUB_TOKEN` don't fire `pull_request`
events (GitHub anti-recursion), so consolidated PRs sit with no CI until
someone close+reopens them.
This PR wires `combine-prs.yml` to prefer `secrets.COMBINE_PRS_TOKEN`
(fine-grained PAT, scopes: `contents:write` + `pull-requests:write` on
this repo) when present, falling back to `GITHUB_TOKEN`.
## After merge — one-time setup
1. Create a **fine-grained PAT** at
https://github.com/settings/personal-access-tokens/new
- Resource owner: `dorlugasigal`
- Repository access: only `TermBeam`
- Permissions: **Contents: Read and write**, **Pull requests: Read and
write**
- Expiration: whatever fits your policy
2. Add it as a repo secret: `gh secret set COMBINE_PRS_TOKEN --repo
dorlugasigal/TermBeam --body '<paste-token>'`
3. Done — next Dependabot wave will auto-create the combined PR **and**
start CI on it.
If the secret is not set, behavior is unchanged (combined PR is created,
but CI needs a manual close+reopen kick).
## What changed
- `combine-prs.yml` checkout `token:` and step `GH_TOKEN` env now read
`secrets.COMBINE_PRS_TOKEN || secrets.GITHUB_TOKEN`
- Header comment documents the why + how-to-enable
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 6d84be9 commit d201e00
1 file changed
Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
35 | 44 | | |
36 | 45 | | |
37 | 46 | | |
| |||
74 | 83 | | |
75 | 84 | | |
76 | 85 | | |
77 | | - | |
| 86 | + | |
78 | 87 | | |
79 | 88 | | |
80 | 89 | | |
| |||
83 | 92 | | |
84 | 93 | | |
85 | 94 | | |
86 | | - | |
| 95 | + | |
87 | 96 | | |
88 | 97 | | |
89 | 98 | | |
| |||
0 commit comments