-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
switch defaultBranchName to main
on new repo
#16
base: master
Are you sure you want to change the base?
Conversation
Arguably, if possible it would be nice to just default to whatever the git config would use But stopgap indeed |
@pulsar-edit/core-admin core-maintain has no management permissions to this repo |
Can't we just put this behind a config? |
Or even just prompt for it when creating the repo (if it doesn't already) |
Yes actually that would be best. That may require completely new tooling in atom for getting data from the system command-line interface? |
@Spiker985 @mauricioszabo So while there are better options, for the purpose of this PR how do we feel about using a config value for now? A setting on the package then at a later time we can have something a bit more complex? |
Also @Spiker985 perms added to this repo for |
@wesinator I'd love to be able to get your PR in, but like mentioned we aren't sure of what the best methodology would be here. |
sounds good. Can you push the change? Ultimately I think using the value from |
Absolutely right there, that there does exist the best option. But putting it as a config for now would be the simplest and most effective. Lets the users choose what's best for them |
I was testing this out locally with To see if I could get it to work, I kept trying stuff, and now I have no mention of And on closer look, the code edited by this PR seems to be oriented toward "publishing" a repo, which I suppose is pushing a local repo to GitHub.com. I suppose the default branch of the local repo being created is either not being explicitly told to use Wish I knew more for certain. For the time being I'm not sure exactly what this does do, so I might be disinclined to merge it until we can demonstrate it as working? |
I appreciate you testing as well as you have. Considering the |
Yeah, whether by reading or testing a few things, I couldn't really understand what this change did/when this code path would come into play, honestly.
Yes, you could So as far as I can tell, something else would need to be done to make new repos made by |
thanks for this project to maintain atom
This PR makes the default branch name
main
when adding a new repo .Ideally this would be configurable in the settings, but this is a stopgap.
atom#2794