Fix stale PR-link status sync#126
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates GitHub Sync so stale direct pull-request links no longer override status for Paperclip issues that are already linked to GitHub issues.
Changes:
- Filters direct PR-link sync work when the Paperclip issue is GitHub-issue-linked.
- Adds a regression test for stale merged direct PR links alongside an open GitHub issue.
- Documents the precedence rule in README and SPEC.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
src/worker.ts |
Adds GitHub issue-link detection and filters PR-link sync candidates. |
tests/plugin.spec.ts |
Adds regression coverage for stale direct PR-link status sync. |
SPEC.md |
Documents GitHub issue status precedence over direct PR links. |
README.md |
Explains PR-only fallback behavior for direct PR links. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Why
GitHub issue-linked work should be driven by the live GitHub issue snapshot and its closing pull-request references. A stale direct PR-link entity could otherwise terminalize an open GitHub issue every sync tick, producing the observed
in review -> done -> in reviewloop.Validation
pnpm typecheckpnpm testpnpm buildModel Used
OpenAI Codex Desktop, GPT-5-based coding agent. Exact model snapshot and context-window size were not exposed by the runtime in this session. Capabilities used: shell commands, GitHub CLI/API inspection, local TypeScript test execution, and Codex app automation setup.