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: configurable default branch #32

Merged
merged 3 commits into from
Feb 14, 2024

Conversation

sparten11740
Copy link
Collaborator

Makes the default branch against which PRs are created configurable (for assets where main is the default branch)

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),
Copy link

@fboucquez fboucquez Feb 14, 2024

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

Copy link
Collaborator Author

@sparten11740 sparten11740 Feb 14, 2024

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.

Copy link
Collaborator Author

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@fboucquez fboucquez self-requested a review February 14, 2024 14:14
Copy link

@fboucquez fboucquez left a comment

Choose a reason for hiding this comment

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

utACK

@sparten11740 sparten11740 merged commit 25144f5 into master Feb 14, 2024
2 checks passed
@sparten11740 sparten11740 deleted the sparten11740/feat/configurable-default-branch branch February 14, 2024 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants