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

Support development branches #41

Merged
merged 3 commits into from
Sep 11, 2024
Merged

Support development branches #41

merged 3 commits into from
Sep 11, 2024

Conversation

alcaeus
Copy link
Owner

@alcaeus alcaeus commented Sep 11, 2024

With this PR, a new input devBranchNamePattern is introduced. If set, it allows using development branches for upcoming versions instead of a single fallback branch. From the documentation:

Considering the default value for branchNamePattern (<major>.<minor>) and a devBranchNamePattern of <major>.x, the candidate branches when a commit is pushed to v1.3 looks like this:

  • v1.4
  • v1.x
  • v2.0
  • v2.x
  • The configured fallback branch (if set)

When pushing to a branch that matches the dev name pattern (e.g. v1.x), only branches for the next major version are considered:

  • v2.0
  • v2.x
  • The configured fallback branch (if set)

The new option defaults to an empty string, meaning that existing behaviour is not changed.

@alcaeus alcaeus force-pushed the support-dev-branches branch from 8e2be25 to 01e848e Compare September 11, 2024 09:06
@alcaeus alcaeus force-pushed the support-dev-branches branch from 01e848e to 46e73b7 Compare September 11, 2024 09:27
Copy link

@GromNaN GromNaN left a comment

Choose a reason for hiding this comment

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

Makes sense.

Copy link

Choose a reason for hiding this comment

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

I had no idea it was manual update.

@alcaeus alcaeus merged commit cbdcd71 into main Sep 11, 2024
20 checks passed
@alcaeus alcaeus deleted the support-dev-branches branch September 11, 2024 10:09
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.

2 participants