mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-25 17:45:53 +01:00
fix: align linked-issue PR guidance
Keep commitperclip guidance in contributor-facing PR docs and bot copy instead of root AGENTS.md or bundled product skills. Align the accepted examples with the current linked-issue checker, including Resolves and the inline-description field threshold. Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
0b945f449b
commit
ca0e60e009
4 files changed
+13
-9
No files matched your search
@@ -106,7 +106,7 @@ export function checkLinkedIssue(body, prTitle = '') {
|
||||
passed,
|
||||
failures: passed ? [] : [
|
||||
'No linked issue or inline issue description found — either tag an existing issue ' +
|
||||
'with `Fixes #NNN` / `Closes #NNN` / `Refs #NNN`, or describe the underlying issue ' +
|
||||
'with `Fixes #NNN` / `Closes #NNN` / `Resolves #NNN` / `Refs #NNN`, or describe the underlying issue ' +
|
||||
'inline in the PR body following one of our issue templates ' +
|
||||
'(https://github.com/paperclipai/paperclip/tree/master/.github/ISSUE_TEMPLATE). ' +
|
||||
'See CONTRIBUTING.md → "Link Issues or Describe Them In-PR".',
|
||||
|
||||
@@ -52,6 +52,7 @@ test('fails with no issue reference when no skip prefix', () => {
|
||||
const result = checkLinkedIssue('Added a cool feature, no issue linked', 'feat: something');
|
||||
assert.equal(result.passed, false);
|
||||
assert.ok(result.failures[0].includes('Fixes #NNN'));
|
||||
assert.ok(result.failures[0].includes('Resolves #NNN'));
|
||||
});
|
||||
|
||||
test('fails with cross-repo issue reference', () => {
|
||||
|
||||
Reference in new issue
Block a user