How to make GitHub treat orphan branch as orphan branch (not suggest pull requests or inform it's ahead and behind)? #125555
Replies: 9 comments
-
|
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
|
This is still an issue and there is still no resolution. |
Beta Was this translation helpful? Give feedback.
-
|
We are facing this issue as well. My experiments in akuity/kargo#2406 seem to indicate GitHub conditionally shows or hides the |
Beta Was this translation helpful? Give feedback.
-
|
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
|
This is still an issue and there's no resolution. I have encountered this problem a few times too, and my guess is GitHub has a hardcoded rule based on the branch name. To be honest, rather than a repository-level setting, I think the optimal solution here would be if PRs were never suggested between branches with no common history. You would still be able to create a PR, but something as unnatural as pulling changes from an orphan branch shouldn't be suggested. In my case, I use GH Actions in some of my repositories to maintain a parallel history of my main branch's history in an orphan branch with generated intermediate outputs that are worth keeping versioned for reference. |
Beta Was this translation helpful? Give feedback.
-
|
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
|
+1 |
Beta Was this translation helpful? Give feedback.
-
|
+1 |
Beta Was this translation helpful? Give feedback.
-
|
+1 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Question
Body
I have three branches in my repo:
Both upm and gh-pages are orphan branches, that is, there is no shared history between any of the branches in the repo. This is as it should be.
However, at the top of the page for the upm branch, GitHub will show the info:
Whereas for the gh-pages branch it shows no such information, even though this branch too is both ahead and behind main.
To be clear, the information is irrelevant and confusing for others who visit the page, so I don't want it to be shown.
Apparently, GitHub knows to not show this info for the gh-pages branch. How can I make it also not show it for the upm branch?
Beta Was this translation helpful? Give feedback.
All reactions