Skip to content

Creating orphan branch#95

Merged
stefanzweifel merged 1 commit intostefanzweifel:masterfrom
StrongMonkey:master
Sep 10, 2020
Merged

Creating orphan branch#95
stefanzweifel merged 1 commit intostefanzweifel:masterfrom
StrongMonkey:master

Conversation

@StrongMonkey
Copy link
Copy Markdown
Contributor

No description provided.

@StrongMonkey
Copy link
Copy Markdown
Contributor Author

This provides the ability to create an orphan branch if $INPUT_BRANCH doesn't exist.

@stefanzweifel
Copy link
Copy Markdown
Owner

Hi 👋

Never heard of orphan branches before. So I'm curious: in which scenarios are such branches useful?
If this should be merged, I would have to be able to answer possible questions.

Maybe you can give an example workflow file?

@StrongMonkey
Copy link
Copy Markdown
Contributor Author

@stefanzweifel Hi 👋 , thanks for replying!

This is actually a specific usecase that we want to commit on another branch, and if the branch doesn't exist, created an orphan branch(which has no git history).

We use this on one of our repo so that we can commit generated changes to another branch without creating empty branch manually. Here is an example https://github.com/StrongMonkey/charts-1/blob/branch-asset/.github/workflows/push.yml#L18-L22

@stefanzweifel
Copy link
Copy Markdown
Owner

Sounds reasonable.
I also searched a bit around and I think that's actually a pretty cool feature. Would have been helpful to now it exists in the past 😅

Will merge and tag a new version soon.

@stefanzweifel stefanzweifel merged commit 5c3c72f into stefanzweifel:master Sep 10, 2020
@pi0
Copy link
Copy Markdown

pi0 commented Sep 10, 2020

@stefanzweifel
Copy link
Copy Markdown
Owner

@pi0 Thanks for reporting! Seems this PR really has broken everything. Sorry for that.

The changes have been reverted in #97 and released in v4.5.1.

@StrongMonkey For your own workflows, you would have to revert to your fork for now. Will work on a test suite over the next few days/weeks to make sure new features can be added with confidence.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants