[Improve] Detect GitLab, Gitea, and Azure DevOps MR URLs for task PR links#15
Draft
roomote-roomote-v1[bot] wants to merge 1 commit into
Draft
Conversation
Parse multi-provider PR/MR URLs from tool and completion text, and persist associations with the correct source-control provider and host.
Author
|
1 issue outstanding. See task
|
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.
What changed
Task PR/MR link detection now recognizes GitLab (
/-/merge_requests/), Gitea (/pulls/), and Azure DevOps (/pullrequest/) URLs from tool results and free text, not justgithub.com/.../pull/N.Detected links persist with the correct provider and host on
task_pull_requestsandcloud_jobs.prSourceControlProvider. Where possible, non-GitHub title/status metadata is fetched through the existing multi-provider read path; GitHub continues to use the installation-token path.Additionally, Slack PR inactivity scheduling stays GitHub-scoped so multi-provider completion text cannot fall into the GitHub-only baseline fetch.
Why this change was made
GitLab/ADO/Gitea tasks that opened MRs via CLI, delivery tools, or pasted links never got a task↔PR association, because transcript parsing always assumed GitHub. That left multi-provider work with unlinked MRs even when the URL was clearly present.
Impact
Completing a task with a GitLab/Gitea/ADO MR URL (for example
https://gitlab.com/acme/api/-/merge_requests/42) now associates that MR with the task the same way GitHub PRs already do, so task PR links and cloud-job PR provider metadata stay accurate across providers.