Skip to content

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

Merged
nikoksr merged 1 commit intomasterfrom
support-new-gh-default-branch
Dec 16, 2020
Merged

refactor(remote): improve setting of branch of github repos#210
nikoksr merged 1 commit intomasterfrom
support-new-gh-default-branch

Conversation

@nikoksr
Copy link
Copy Markdown
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