feat: support regex branch exclusions - #5148
Conversation
Merge Protections🟢 Merge protection satisfied — ready to merge. Show 1 satisfied protection🟢 ⛓️ Depends-On RequirementsRequirement based on the presence of
|
56b5abc to
dce80c2
Compare
|
Hi @HHobeck, could you please take a look at this PR when you have a chance? Thank you! |
dce80c2 to
b244656
Compare
b244656 to
72a59a4
Compare
72a59a4 to
459f96e
Compare
459f96e to
cf3200a
Compare
cf3200a to
0116330
Compare
3c8c8ec to
f2ede0c
Compare
f2ede0c to
f89fa54
Compare
f89fa54 to
8298043
Compare
8298043 to
a8e8c2e
Compare
|
|
@HHobeck when you have time please have a new look |
|
Tick the box to add this pull request to the merge queue (same as
|
@HHobeck, could you clarify which branches should be considered "not permitted"? Each workflow currently has an |
Good point. These two concepts seem to be clashing. But is it more like if your current branch is not known, it will still be used to calculate the version? Or what happens if your current branch is ignored? |
Codex researched the current behavior and helped draft this clarification: An unmatched current branch uses the workflow’s |
So it would make sense to ignore the not known branch, correct? It was just an idea to improve performance. If you think it is not necessary please go ahead and leave it like it is. |
|
Let's keep it like that, please approve |
|
@Mergifyio refresh |
✅ Pull request refreshed |
|
Thank you @arturcic for your contribution! |



Description
Adds
ignore.branches, a sequence of regular expressions for excluding auxiliary branches from version-source discovery and build-server normalization.Related issue
Closes #5130.
Stack
Depends-On: #5147
Validation
GitVersion.Configuration.Tests: 113 passed.GitVersion.Core.Testswith LibGit2Sharp: 29 passed.GitVersion.Core.Testswith managed Git: 29 passed.dotnet format src/GitVersion.slnx --no-restorecompleted successfully.schemas/7.0/GitVersion.configuration.json.Checklist