bitbucket-branch-source-plugin
bitbucket-branch-source-plugin copied to clipboard
Meaningful name for PRs job name (in multibranch pipeline)
- [x] Jenkins version Jenkins 2.235.1
Description
Currently in PR job name in Multibranch pipeline is "Pull Request PR-XXX" (e.g Pull Request PR-507)
IMHO it would be beneficial to add an option to get the name from PR subject or even append the source branch name such as: Pull Request PR-507-my-special-branch
The id would still need to match the PR-XXX model, but adding the subject to the display name after the PR-XXX would be nice.
@bitwiseman would you care to review https://github.com/jenkinsci/bitbucket-branch-source-plugin/pull/389 ? It should resolve this issue/request.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I would like to see this feature implemented as well, looking at a list of PR-XXXX isn't useful unless you have github opened to reference the ids.
The descriptions actually show up in tooltips of the PR-XXXX links in the list. But it's pretty silly that they appear nowhere on the branches/PR-XXXX page itself.
Would love to see this implemented.
+1 :-)
Our team would also really love to have this PR merged in. Please include this as soon as possible.
+1
Our team would also really love to have this change. +1
+1
Branch API 2.1105.v472604208c55 was already released with this change:
JENKINS-55348 - Display Pull Request Name instead of ID in the UI (https://github.com/jenkinsci/branch-api-plugin/pull/374)
It works OK with Bitbucket Branch Source; Jenkins can now display the PR title along with the PR number, provided that you add the "Job display name strategy" behaviour to the branch source in the multibranch project. It has two minor problems, though:
- If a developer writes an excessively long title in a pull request, it takes up much space in the Jenkins UI. Should advise developers to keep the PR title short and place the details in the PR description.
- When the Bitbucket Server UI lists the builds of a pull request, each of those now includes the PR title as well. This looks a bit redundant as each build typically has the same PR title, unless the PR was retitled between builds. I guess this cannot be improved, as the list actually shows the builds of the commits of the PR, and those builds can originate from other pull requests that include the same commits.
Anyway, does the Branch API release solve this issue, or does it still lack some features that users actually want?
WRT long titles; does it make sense to cut off the title after a certain number of characters? e.g. PR-XXX My super long... shows there's more to the title but cutting it off for the UI consistency.