paperclip/.github/scripts/tests
Nicky Leach 131d476a7e
fix(ci): make PR-template inline-description contract explicit (#10558)
## Thinking Path

> - Paperclip is the open source app people use to manage AI agents for
work
> - Contributors use the PR template to describe changes before review
> - The linked-issue gate reads literal template labels, not freeform
prose
> - The template did not state that rule, so a good prose summary could
fail on first submission
> - The gate also skipped two issue template paths that the PR template
already points to
> - This pull request makes the template and the gate match the same
contract
> - The benefit is that a good-faith author can pass the check on the
first try

## Linked Issues or Issue Description

No public issue exists.

Related public PR: #7762.

The problem is a mismatch between the PR template and the linked-issue
gate.
The template gave a bare placeholder and did not explain the
literal-label rule.
The gate also missed the enhancement and docs issue templates.

## What Changed

- Replaced the bare PR-template placeholder with labeled inline
skeletons for bug, feature, and adapter paths.
- Added one sentence that says the gate reads literal labels on separate
lines.
- Added the enhancement and docs issue template field sets to the
linked-issue gate.
- Added and updated tests for prose-only bodies, template skeleton
bodies, and extra issue template coverage.

## Verification

- `node --test .github/scripts/tests/check-pr-linked-issue.test.mjs`
- The branch contains one commit:
`561f1ed3a1434ed4562306f74d40968163ef1444`

## Risks

Low risk.
The three-field minimum stays in place.
The main change is clearer author guidance in the PR template.

## Model Used

OpenAI Codex, GPT-5, tool use.

## Checklist

- [x] I have included a thinking path that traces from project context
to this change
- [x] I have specified the model used (with version and capability
details)
- [x] I have checked ROADMAP.md and confirmed this PR does not duplicate
planned core work
- [x] I have searched GitHub for duplicate or related PRs and linked
them above
- [x] I have either (a) linked existing issues with `Fixes: #` /
`Closes: #` / `Refs: #` OR (b) described the issue in-PR following the
relevant issue template
- [x] I have not referenced internal/instance-local Paperclip issues or
links (only public GitHub `#NNN` / `github.com/paperclipai/paperclip`
URLs)
- [x] My branch name describes the change and contains no internal
Paperclip ticket id or instance-derived details
- [x] I have run tests locally and they pass
- [x] I have added or updated tests where applicable
- [x] I have updated relevant documentation to reflect my changes
- [x] I have considered and documented any risks above
- [x] All Paperclip CI gates are green
- [x] Greptile is 5/5 with no open P2s, recommendations, or follow-ups
- [x] I will address all Greptile and reviewer comments before
requesting merge

---------

Co-authored-by: Paperclip <noreply@paperclip.ing>
2026-07-31 09:46:26 -07:00
..
check-pr-dedup-search.test.mjs feat(commitperclip): widen linked-issue gate, add dedup-search check (#7632) 2026-06-05 22:10:52 -07:00
check-pr-dependencies.test.mjs feat(commitperclip): add automated PR quality and security gates (#6469) 2026-06-01 09:52:53 -07:00
check-pr-linked-issue.test.mjs fix(ci): make PR-template inline-description contract explicit (#10558) 2026-07-31 09:46:26 -07:00
check-pr-lockfile.test.mjs feat(commitperclip): add automated PR quality and security gates (#6469) 2026-06-01 09:52:53 -07:00
check-pr-security.test.mjs fix(commitperclip): stop security gate from hanging the review check (#7847) 2026-06-09 15:29:25 -07:00
check-pr-template.test.mjs feat(commitperclip): add automated PR quality and security gates (#6469) 2026-06-01 09:52:53 -07:00
check-pr-test-coverage.test.mjs fix(release): publish all remaining @paperclipai workspace packages from CI + guard unpublishable edges (#8365) 2026-06-19 19:11:20 -07:00
fetch-pr-files.test.mjs feat(commitperclip): add automated PR quality and security gates (#6469) 2026-06-01 09:52:53 -07:00
get-bot-token.test.mjs feat(commitperclip): add automated PR quality and security gates (#6469) 2026-06-01 09:52:53 -07:00
run-quality-gates.test.mjs feat(commitperclip): add automated PR quality and security gates (#6469) 2026-06-01 09:52:53 -07:00