jenkinsci / jenkinsci/github-branch-source-plugin

[JENKINS-66102] Branch Discovery Strategy: "Only branches that also filed as PRs" excludes "master" as well

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

Description

Branch Discovery Strategy: "Only branches that also filed as PRs" excludes "master" as well.

This looks expected in first look but this behaviour makes this option mostly unusable practically.

 

As a user, I always expect to see main branch ("master") discovered.

 

Is there any workaround to this in current implementations? I want to only discover branches filed as PRs + main branch ("master").

---
Originally reported by gaurav517, imported from: Branch Discovery Strategy: "Only branches that also filed as PRs" excludes "master" as well


  • status: Open
  • priority: Minor
  • component(s): github-branch-source-plugin
  • resolution: Unresolved
  • votes: 1
  • watchers: 3
  • imported: 2025-12-02

Raw content of original issue

Branch Discovery Strategy: "Only branches that also filed as PRs" excludes "master" as well.

This looks expected in first look but this behaviour makes this option mostly unusable practically.

 

As a user, I always expect to see main branch ("master") discovered.

 

Is there any workaround to this in current implementations? I want to only discover branches filed as PRs + main branch ("master").

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.