docs(conditions): document the qualified form for deployment conditions - #12657
Conversation
`deployment-success` / `deployment-failure` now accept the same `@<github-app-slug>/<environment>` form the `check-*` attributes already do, so a rule can require an environment be deployed by one particular app rather than by whoever posted a deployment status last. That matters because anyone with `deployments: write` on the repository can post a status for any environment name. The reference only covered checks, so the syntax existed with nowhere documenting it for deployments. Related to MRGFY-8824 Change-Id: I7ad4420d7b4c9fa95631b2f1303600180e94b65e
Merge Protections🔴 2 of 6 protections blocking · waiting on 👀 reviews
🔴 👀 Review RequirementsWaiting for
This rule is failing.
🔴 🔎 ReviewsWaiting for
This rule is failing.
Show 4 satisfied protections🟢 🤖 Continuous Integration
🟢 Enforce conventional commitMake sure that we follow https://www.conventionalcommits.org/en/v1.0.0/
🟢 📕 PR description
🟢 🚦 Auto-queueWhen all merge protections are satisfied, this pull request will be queued automatically. |
There was a problem hiding this comment.
🟢 Approval recommended
The change is a straightforward documentation addition with only a minor structural tweak suggested.
Pull request overview
This PR updates the Mergify conditions reference to document that deployment-success / deployment-failure support the qualified @<github-app-slug>/<environment> syntax (similar to the existing qualified form for check-* conditions), enabling rules to match deployments reported by a specific GitHub App.
Changes:
- Adds a new documentation subsection explaining the qualified deployment condition form.
- Includes an example showing how to pin an environment deployment to a specific app slug.
- Clarifies backward compatibility of the bare (unqualified) deployment condition form.
File summaries
| File | Description |
|---|---|
| src/content/docs/configuration/conditions.mdx | Documents the qualified deployment condition syntax and provides an example + compatibility notes. |
Review details
- Files reviewed: 1/1 changed files
- Comments generated: 1
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| conditions and legacy GitHub commit statuses carry no GitHub App identity | ||
| and remain reachable only via the bare form. | ||
|
|
||
| ### Qualifying Deployments |
deployment-success/deployment-failurenow accept the same@<github-app-slug>/<environment>form thecheck-*attributes already do,so a rule can require an environment be deployed by one particular app rather
than by whoever posted a deployment status last. That matters because anyone
with
deployments: writeon the repository can post a status for anyenvironment name.
The reference only covered checks, so the syntax existed with nowhere
documenting it for deployments.
Related to MRGFY-8824