jenkinsci / jenkinsci/github-branch-source-plugin

[JENKINS-50871] Filter git branch source Pull Requests by description

Open
#1,182 1 comment 0 reactions 0 assignees View on GitHub
component:github-branch-source-plugin component:github-organization-folder-plugin imported-jira-issue priority:minor resolution:unresolved
Dominant language
Java
Stars
217
Forks
398
Avg merge
30m
Merged PRs (30d)
1

Description

At this time, you are able to specify which branches to be built in a Github Organization folder.

You do this by specifying a 'Filter branch name by Wildcard' or 'Filter branch name by Regex'.

With regard to Pull Requests, this is not really the pull request "name" but rather a pull request number.

For example, "PR-100" is the 'name' Jenkins see's, where the "name" of the PR in github is something like "Update README.md Unit Test Details". This PR-100 branch, is actually merging a branch "updateReadmeUnitTestDetails" into "master".  The only file changed is README.md, so I really don't want a PR to run.

Therefore, this "name" a little confusing. Users cannot control the "ref spec / branch name" github assigns PRs.  It's simply PR-#. But users can control the "github PR name" and "pull request description"

Because of this, it would be nice if we could add an option to "Filter by Github PR Name" or "Filter by Github PR Description", this way we can make the github PR name something like "Update README.md Unit Test Details - DONOTBUILD".

Another approach would be to filter by "compare branch", that is the branch that a PR is merging. The source branch. In my example above, this is "updateReadmeUnitTestDetails".   If we filter by "compare branch", I could skip building by naming the branch "updateReadmeUnitTestdetailsDONOTBUILD" before I make a PR.

---
Originally reported by tayloryork, imported from: Filter git branch source Pull Requests by description


  • assignee: kohsuke
  • status: Open
  • priority: Minor
  • component(s): github-branch-source-plugin, github-organization-folder-plugin
  • resolution: Unresolved
  • votes: 2
  • watchers: 4
  • imported: 2025-12-02

Raw content of original issue

At this time, you are able to specify which branches to be built in a Github Organization folder.

You do this by specifying a 'Filter branch name by Wildcard' or 'Filter branch name by Regex'.

With regard to Pull Requests, this is not really the pull request "name" but rather a pull request number.

For example, "PR-100" is the 'name' Jenkins see's, where the "name" of the PR in github is something like "Update README.md Unit Test Details". This PR-100 branch, is actually merging a branch "updateReadmeUnitTestDetails" into "master".  The only file changed is README.md, so I really don't want a PR to run.

Therefore, this "name" a little confusing. Users cannot control the "ref spec / branch name" github assigns PRs.  It's simply PR-#. But users can control the "github PR name" and "pull request description"

Because of this, it would be nice if we could add an option to "Filter by Github PR Name" or "Filter by Github PR Description", this way we can make the github PR name something like "Update README.md Unit Test Details - DONOTBUILD".

Another approach would be to filter by "compare branch", that is the branch that a PR is merging. The source branch. In my example above, this is "updateReadmeUnitTestDetails".   If we filter by "compare branch", I could skip building by naming the branch "updateReadmeUnitTestdetailsDONOTBUILD" before I make a PR.

  • environment: Jenkins 2.74

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.