Repository navigation
feat(pr-convention-policy): check the pr-contract composite and describe the advisory linkage posture #525
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
a40ebb0
feat(pr-convention-policy): check the pr-contract composite and descr…
kyle-sexton 8adbfc4
fix(pr-convention-policy): anchor artifact detection on live uses ent…
kyle-sexton 919eb6e
docs(pr-convention-policy): state the real reason the three repositor…
kyle-sexton 9b95c56
feat(pr-convention-policy): fail closed on a missing artifact and che…
kyle-sexton File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,19 +1,25 @@ | ||
| # PR body contract | ||
|
|
||
| Every pull request body must satisfy the required `pr-issue-linkage` check | ||
| before merge: | ||
| `ci-status` is the single required check on every pull request. It fails on a | ||
| title that is not Conventional Commits and on a `do-not-merge` label. A body | ||
| missing the closing keyword or a section does NOT turn it red: the gate leaves | ||
| an advisory comment and the `needs-issue-linkage` label instead. The body | ||
| contract below is still expected on every pull request; it is reported, not | ||
| gating. | ||
|
|
||
| - Open with a native closing-keyword line: `Closes #<issue>` (`Fixes`/`Resolves` | ||
| Every pull request body: | ||
|
|
||
| - Opens with a native closing-keyword line: `Closes #<issue>` (`Fixes`/`Resolves` | ||
| also accepted, one keyword per issue), or, when the PR closes nothing, the | ||
| literal `No related issue: <reason>`. | ||
| - Carry a non-empty section for each of `## Summary`, `## Fix`, | ||
| - Carries a non-empty section for each of `## Summary`, `## Fix`, | ||
| `## Verification`, and `## Related`. | ||
|
|
||
| Draft the body to this contract BEFORE creating the PR (`gh pr create`, MCP, or | ||
| web); the gate fails closed, and a first-run failure is exactly what this rule | ||
| exists to prevent. | ||
| web); the advisory comment and label are noise this rule exists to prevent. | ||
|
|
||
| The canonical machine-readable convention is | ||
| `components/pr-convention-policy/policy.json` in `melodic-software/standards`; | ||
| the SHA-pinned ci-workflows `pr-issue-linkage.yml` reusable is the enforcement | ||
| authority, and its check output is the statement of record. | ||
| the SHA-pinned ci-workflows `pr-contract` composite that runs as a step inside | ||
| `ci-status` is the enforcement authority, and its step output is the statement | ||
| of record. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.