stable

Clone or download

Read-only

feat: display branches source/dest repository names when needed

request #36824 Pull request overview should inform about the source repository As described in the public request, when a pull-request comes from another repository, it is hard to know where it actually come from. The proposition is the following: - When the source repository is not the current repository --> The source branch name is prefixed with the source repository name - When the destination repository is not the current repository --> The destination branch name is prefixed with the destination repository name How to test: - Fork a repository - Create a branch, commit some stuff on it, then push to your fork - Create a pull-request from your branch to the original repository - Go to the pull-request in the original repository --> The source branch is prefixed with your fork name - Go to the pull-request in the fork --> The destination branch is prefixed with the original repository name Change-Id: Ia0dac0ab9b5b78a709becb4892b0616c7dbd0adc

Modified Files

Name
M plugins/pullrequest/scripts/lib/pull-request-stub/src/main.ts +14 −2 Go to diff View file
M plugins/pullrequest/scripts/lib/rest-api-types/src/pull-request.ts +10 −7 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-overview/package.json +1 −0 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-overview/pnpm-lock.yaml +7 −4 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-overview/src/components/ReadOnlyInfo/PullRequestReferences.test.ts +116 −13 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-overview/src/components/ReadOnlyInfo/PullRequestReferences.vue +34 −3 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-overview/src/constants.ts +1 −0 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-overview/src/pullrequest-overview.ts +4 −5 Go to diff View file