jenkinsci / jenkinsci/github-branch-source-plugin

[JENKINS-50549] PR from master to branch deletes master

Open
#1,177 0 comments 0 reactions 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

When in Github Enterprise I create a new Pull Request from master to a branch (base: branch, compare: master) in Jenkins, master branch gets removed (master) and is not built anymore. This is kind of strange and rather inappropriate behaviour. 

Why to do PR from master to branch - this can be useful for review purposes on Github. Though as we are using Continuous Delivery from master, this is unacceptable for master to be removed. Strange thing is that as far as I have checked it breaks only when master is a compared branch one.

---
Originally reported by radekl, imported from: PR from master to branch deletes master


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

Raw content of original issue

When in Github Enterprise I create a new Pull Request from master to a branch (base: branch, compare: master) in Jenkins, master branch gets removed (master) and is not built anymore. This is kind of strange and rather inappropriate behaviour. 

Why to do PR from master to branch - this can be useful for review purposes on Github. Though as we are using Continuous Delivery from master, this is unacceptable for master to be removed. Strange thing is that as far as I have checked it breaks only when master is a compared branch one.

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.