Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PR to Github fails if a branch called supernova exists already #6

Open
arcataroger opened this issue Jun 8, 2023 · 0 comments
Open

Comments

@arcataroger
Copy link

arcataroger commented Jun 8, 2023

Describe the bug
When targeting Github for a build, target repo cannot have a branch named supernova or the PR creation will fail with the error:

Error exporting to github: Error: fatal: cannot lock ref 'refs/heads/supernova/style-dictionary': 'refs/heads/supernova' exists; cannot create 'refs/heads/supernova/style-dictionary'

I think this is because the exporter tries to create a supernova/style-dictionary branch to do its work on?

Once I removed the supernova branch on that repo, the export worked fine.

Expected behavior
There probably shouldn't be a magically prohibited branch name in the target repo, and especially not supernova. This error happened when I added a new supernova branch to my repo to test... well, Supernova :)

Maybe instead of creating a branch called supernova/style-dictionary, it could be something randomly-generated or ID-based, like supernova-exporter-{workspaceId or UUID}/style-dictionary}, to remove the possibility of an unintentional conflict?

Screenshots
image

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

No branches or pull requests

1 participant