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

refactor(remote): improve setting of branch of github repos #210

Merged
merged 1 commit into from
Dec 16, 2020

Conversation

nikoksr
Copy link
Collaborator

@nikoksr nikoksr commented Dec 16, 2020

Summary

Branch will now be set automatically to the repos default branch if the
proji user has provided a github token. If no token was given proji now
will check for the availability of a main branch first and on failure
check for a master branch.

Short summary of what the pull request changes.

Proposed Changes

  • Create separate setBranch function
  • Set branch to default branch through GH api if token was provided
  • Set branch to main or master if no token was given

Resolved Issues

Closes #203

Branch will now be set automatically to the repos default branch if the
proji user has provided a github token. If no token was given proji now
will check for the availabilty of a main branch first and on failure
check for a master branch.
@nikoksr nikoksr merged commit a2282ad into master Dec 16, 2020
@nikoksr nikoksr deleted the support-new-gh-default-branch branch December 16, 2020 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for new default name of GitHub main branches
1 participant