Link manually published GitHub issues to local suggestions - #5364
Merged
Conversation
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.
Adds
cdidx suggestions link <id> --repo <owner/name> --issue <number-or-url>so findings published manually can be associated with their existing GitHub issue. Several suggestions can share one issue without creating remote issues or inventing submission attempts, synchronization, or implementation completion.The association is validated and saved atomically with manual provenance and a UTC audit timestamp. Writes are checked against the 8 MiB reader limit before replacing the previous store. Same-identity repeats preserve history; conflicting reassociation and in-flight submissions are rejected. Full list/show/export output includes the association, issue-draft duplicate guidance identifies existing publication, and later duplicate submissions return the existing issue without invoking issue creation.
Linking works offline and intentionally performs no remote verification. The documentation explains that existence, issue-versus-PR identity, and upstream state must be checked separately.
Validation
No blocking/actionable issues found.E021_SUGGESTION_STORE_UNAVAILABLEwhile preserving readable history without quarantine.Documentation
docs/suggestion-issue-linking.md; updated the corresponding English/Japanese sections inUSER_GUIDE.md,DEVELOPER_GUIDE.md, andTESTING_GUIDE.md.changelog.d/unreleased/5350.added.md.Fixes #5350