Mirror of https://github.com/modelcontextprotocol/actions — GitHub Actions relevant to the management of MCP repositories.
  • JavaScript 100%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Den Delimarsky 332da5ae1a
slash-commands: write commit status directly from /lgtm handler
/lgtm was adding the approved label and posting the bot review, but the
merge-gate commit status stayed pending forever. Root cause: the status
sub-action was designed to react to the labeled/unlabeled events emitted
when main.js mutates labels, but main.js writes via GITHUB_TOKEN and GitHub
suppresses workflow runs for GITHUB_TOKEN-triggered events. The event
cascade never happened.

Fix: main.js now calls createCommitStatus directly after each of the four
label mutations (/lgtm, /lgtm cancel, /hold, /unhold), computing the new
state from the pre-mutation label snapshot so cross-label cases (lgtm while
held, unhold while approved) resolve correctly.

The status sub-action is reduced to setting pending on open and on push.
It no longer reads the approved label at all — that branch is removed, and
the approved-label input with it. This closes a bypass: previously anyone
with triage permissions could manually add the approved label, and on the
resulting labeled event the sub-action would set success. Now the only
success writer is the auth-gated /lgtm path.

Caller workflows should trim pull_request_target types to [opened,
synchronize]. The labeled/unlabeled/reopened triggers are dead weight:
labeled/unlabeled never fired for bot writes, and reopened would overwrite
a valid success with pending (commit statuses persist on the SHA across
close/reopen).
2026-03-12 13:15:43 +00:00
cloudflare-pages-preview cloudflare-pages-preview: add comment-mode=repost, extract scripts 2026-03-11 23:24:51 +00:00
hugo-build Add hugo-build composite action 2026-03-11 20:36:43 +00:00
slash-commands slash-commands: write commit status directly from /lgtm handler 2026-03-12 13:15:43 +00:00
.gitignore Initial commit 2026-03-10 16:25:10 +00:00
CLAUDE.md Simplify secrets table: just the action input name, not full YAML 2026-03-10 16:49:12 +00:00
LICENSE Initial commit 2026-03-10 16:25:10 +00:00
README.md Add slash-commands/status sub-action for pending-state merge gate 2026-03-11 22:56:18 +00:00

actions

GitHub Actions relevant to the management of MCP repositories.

Actions

Action Description
cloudflare-pages-preview/deploy 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 Delete Cloudflare Pages deployments for a closed PR's branch alias and update the sticky comment
hugo-build Install Go + Hugo extended and build a Hugo site (preview or production mode)
slash-commands Handle /lgtm, /hold, and /stageblog PR slash commands gated by team membership + CODEOWNERS; invalidate approval on push
slash-commands/status Set a pending/success/failure commit status based on approval/hold labels — yellow pending check until /lgtm, not red