Add /stageblog slash command to dispatch blog preview workflow
Extends slash-commands with a new /stageblog command that lets authorized maintainers trigger a workflow_dispatch for staging blog previews from fork PRs, where the normal pull_request-triggered preview cannot access secrets. - Captures pr.head.sha at comment time and passes it to the dispatched workflow so fork authors cannot push new commits between review and build - Disabled unless stageblog-workflow input is set - Refuses with stageblog-not-blog result if no changed file matches stageblog-paths (default blog/**) - Documents companion workflow pattern, additional PAT scope (Actions: write), and SHA-pinning safety requirement
This commit is contained in:
parent
5c138acba1
commit
5bc398b196
1 changed files with 150 additions and 13 deletions
|
|
@ -8,4 +8,4 @@ GitHub Actions relevant to the management of MCP repositories.
|
|||
|---|---|
|
||||
| [`cloudflare-pages-preview/deploy`](cloudflare-pages-preview/README.md) | Deploy a static HTML directory to Cloudflare Pages under a per-PR branch alias, inject noindex headers, and post a sticky PR comment with preview URLs |
|
||||
| [`cloudflare-pages-preview/cleanup`](cloudflare-pages-preview/README.md) | Delete Cloudflare Pages deployments for a closed PR's branch alias and update the sticky comment |
|
||||
| [`slash-commands`](slash-commands/README.md) | Handle `/lgtm` and `/hold` PR slash commands gated by team membership + CODEOWNERS; invalidate approval on push |
|
||||
| [`slash-commands`](slash-commands/README.md) | Handle `/lgtm`, `/hold`, and `/stageblog` PR slash commands gated by team membership + CODEOWNERS; invalidate approval on push |
|
||||
|
|
|
|||
Loading…
Reference in a new issue