-
Bug
-
Resolution: Unresolved
-
Minor
When Discovering Pull Requests and the "Filter by Name" is used, such filter only matches against the PR ID/key instead of against the PR's title.
Example scenario:
- PR Feature/Something-something to develop
- PR's Title: Feature/Something-something
- Discovered Pull Requests enabled
- Filter by Name: Feature/*
Observed behaviour: The PR is not discovered (it's filter out).
Expectation: The PR is discovered.
In addition, if the "Filter by Name" was set to "PR-*" (e.g. PR-123) then the PR is discovered. This makes the Pull Request discovery a bit useless.
The Bitbucket Branch Source plugin likewise matches the "Filter by Name" setting to pull request IDs rather than titles. I use this feature to include all pull requests "PR-*" and specific branches like "release/123" but exclude older release branches. I hope this won't be changed. If you want to filter by pull request titles, I think it should instead be a separate setting.
It could perhaps be implemented in scm-api-plugin as "Filter by Change Request Display Name"; it would check whether the SCMHead implements ChangeRequestSCMHead2 and whether ObjectMetadataAction.getObjectDisplayName() matches the configured wildcard.