-
Notifications
You must be signed in to change notification settings - Fork 0
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: configurable default branch #32
feat: configurable default branch #32
Conversation
src/version.ts
Outdated
@@ -44,6 +44,7 @@ export default async function version({ | |||
autoMerge = core.getInput(Input.AutoMerge) === 'true', | |||
requestReviewers = core.getInput(Input.RequestReviewers) === 'true', | |||
assignee = core.getInput(Input.Assignee), | |||
defaultBranch = core.getInput(Input.DefaultBranch), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this picked from github config? Nice...
aka, just need to bump, not to provide main
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, this is actually an input for the action named default-branch
. But I like your idea of getting it from the repo metadata.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed to get the default branch from the repo in 471623b, will do a test in our test repo before merging though
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tested and found to work: https://github.com/ExodusMovement/lerna-version-selectively/actions/runs/7902671055/job/21568828434
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK
Makes the default branch against which PRs are created configurable (for assets where
main
is the default branch)