feat(github): link pull requests to tracker issues#10889
Open
ignatremizov wants to merge 1 commit into
Open
Conversation
Detect Huly Tracker identifiers such as ABC-123 in GitHub pull request titles and bodies, then link matching ordinary Tracker issues to the pull request instead of creating duplicate PR mirror tasks. The sync path now creates an idempotent GitHub backlink comment and a Huly activity item for resolved Tracker issues. PRs with no matching issue, or identifiers that already resolve to GitHub pull request mirrors, continue through the existing mirror sync flow. Ordinary Huly comment writes remain suppressed when GitHub writes are disabled, while the explicit PR-to-Tracker backlink remains part of the linking flow. Signed-off-by: Ignat Remizov <[email protected]>
|
Connected to Huly®: UBERF-16479 |
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
ABC-123in GitHub pull request titles and bodies during webhook and pull request sync processing.GITHUB_READONLY=truesuppressing ordinary Huly comment writes to GitHub while allowing the explicit PR-to-Tracker backlink flow.Testing
node common/scripts/install-run-rush.js build --to @hcengineering/pod-githubcd services/github/pod-github && node ../../../common/scripts/install-run-rushx.js test -- --runTestsByPath src/sync/__tests__/pullrequests.test.tsgit diff --checkNotes
ABC-123for an existing ordinary Huly Tracker issue will no longer create a separate GitHub pull request mirror task; they will link to the existing issue instead.