Skip to content

Ensure "dev-" prefix and "-dev" suffix is used correctly#1055

Merged
localheinz merged 8 commits intoergebnis:mainfrom
fredden:assert-dev-prefix-suffix-position
Apr 10, 2025
Merged

Ensure "dev-" prefix and "-dev" suffix is used correctly#1055
localheinz merged 8 commits intoergebnis:mainfrom
fredden:assert-dev-prefix-suffix-position

Conversation

@fredden
Copy link
Copy Markdown
Contributor

@fredden fredden commented Jan 2, 2024

In composer/composer#11770 (comment), it was stated that a dev- prefix means something different than a -dev suffix. This came up because a user was treating these as interchangeable when they aren't. This pull request ensures that a prefix is used for "non-numeric branches" whereas a suffix is used for "numeric branches".

While working on this, I noticed a bug in the "remove leading v" code. I've fixed that here (in a separate commit), but I can equally open a separate pull request if you would prefer.

Follows #1027

@codecov
Copy link
Copy Markdown

codecov bot commented Jan 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.32%. Comparing base (b05de24) to head (3b6bd4f).
Report is 9 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #1055      +/-   ##
============================================
+ Coverage     97.26%   97.32%   +0.06%     
- Complexity      203      209       +6     
============================================
  Files            32       32              
  Lines           840      861      +21     
============================================
+ Hits            817      838      +21     
  Misses           23       23              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@localheinz localheinz self-assigned this Jan 7, 2024
@localheinz localheinz merged commit 993e575 into ergebnis:main Apr 10, 2025
27 checks passed
@localheinz
Copy link
Copy Markdown
Member

Thank you, @fredden!

@fredden fredden deleted the assert-dev-prefix-suffix-position branch April 10, 2025 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants