Skip to content

feat: add semver sorting for multibranch check (fixes #20)#21

Open
samuelBarreto wants to merge 1 commit into
cloudfoundry-community:masterfrom
samuelBarreto:fix/semver-branch-sorting
Open

feat: add semver sorting for multibranch check (fixes #20)#21
samuelBarreto wants to merge 1 commit into
cloudfoundry-community:masterfrom
samuelBarreto:fix/semver-branch-sorting

Conversation

@samuelBarreto
Copy link
Copy Markdown

Add sort and sort_prefix source configuration options to allow branches to be sorted by semantic version (highest first) before processing. This ensures the branch with the highest version is always detected first when using patterns like (release|hotfix)/X.Y.Z.

  • Read sort and sort_prefix from source config

  • Add sort_branches_semver() function with awk/gsub prefix stripping

  • Pipe filter_branches output through sort_branches_semver

  • Document new options in README with example

  • Add test_check support for sort and sort_prefix params

  • Add 2 new tests: semver sort for release/* and mixed release/hotfix/*

…mmunity#20)

Add sort and sort_prefix source configuration options to allow branches to be sorted by semantic version (highest first) before processing. This ensures the branch with the highest version is always detected first when using patterns like (release|hotfix)/X.Y.Z.

- Read sort and sort_prefix from source config

- Add sort_branches_semver() function with awk/gsub prefix stripping

- Pipe filter_branches output through sort_branches_semver

- Document new options in README with example

- Add test_check support for sort and sort_prefix params

- Add 2 new tests: semver sort for release/* and mixed release/hotfix/*
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.

1 participant