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

feat(github): change fork default branch #8516

Merged
merged 4 commits into from
Feb 3, 2021

Conversation

rarkins
Copy link
Collaborator

@rarkins rarkins commented Feb 3, 2021

Changes:

Changes a forked repo's default branch if the parent repo has changed.

Context:

Closes #8515

Documentation (please check one with an [x])

  • I have updated the documentation, or
  • No documentation update is required

How I've tested my work (please tick one)

I have verified these changes via:

  • Code inspection only, or
  • Newly added unit tests, or
  • Unit tests + ran on a real repository

});
logger.debug('Created new default branch in fork');
} catch (err) {
logger.warn({ err }, 'Could not create parent defaultBranch in fork');
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not unrecoverable - it could be because the branch somehow already existed

@rarkins rarkins merged commit f533962 into master Feb 3, 2021
@rarkins rarkins deleted the feat/fork-change-default-branch branch February 3, 2021 14:03
@renovate-release
Copy link
Collaborator

🎉 This PR is included in version 24.36.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dynamically switch default branch when forkMode
3 participants