bitbucket-branch-source-plugin icon indicating copy to clipboard operation
bitbucket-branch-source-plugin copied to clipboard

Meaningful name for PRs job name (in multibranch pipeline)

Open borisovano opened this issue 5 years ago • 13 comments

  • [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

borisovano avatar Aug 18 '20 22:08 borisovano

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 avatar Aug 20 '20 09:08 bitwiseman

@bitwiseman would you care to review https://github.com/jenkinsci/bitbucket-branch-source-plugin/pull/389 ? It should resolve this issue/request.

PayBas avatar Dec 31 '20 11:12 PayBas

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.

stale[bot] avatar Apr 16 '22 08:04 stale[bot]

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.

dehler avatar Jun 08 '22 14:06 dehler

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.

KalleOlaviNiemitalo avatar Jun 08 '22 15:06 KalleOlaviNiemitalo

Would love to see this implemented.

Semmu avatar Oct 27 '22 14:10 Semmu

+1 :-)

iadonkey avatar Oct 29 '22 20:10 iadonkey

Our team would also really love to have this PR merged in. Please include this as soon as possible.

theycallmeninx avatar Nov 18 '22 15:11 theycallmeninx

+1

a-besson avatar May 05 '23 13:05 a-besson

Our team would also really love to have this change. +1

rearl avatar May 08 '23 07:05 rearl

+1

slwon avatar Jun 15 '23 11:06 slwon

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?

KalleOlaviNiemitalo avatar Jun 15 '23 12:06 KalleOlaviNiemitalo

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.

samrocketman avatar Jul 26 '23 02:07 samrocketman