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

Consolidate project_version and badge_version #271

Conversation

jonathanhefner
Copy link
Member

Since 5042d1e, the value of ENV["HORO_BADGE_VERSION"] is preferred over the value of ENV["HORO_PROJECT_VERSION"]. Therefore, we can consolidate the project_version and badge_version helpers.

Note that while ENV["HORO_BADGE_VERSION"] has the format we desire, ENV["HORO_PROJECT_VERSION"] is the more obvious and preferable name. After these changes is released, we can encourage consumers (namely, Rails) to set ENV["HORO_PROJECT_VERSION"] with the same value as ENV["HORO_BADGE_VERSION"] and then to drop ENV["HORO_BADGE_VERSION"] altogether.

Since 5042d1e, the value of
`ENV["HORO_BADGE_VERSION"]` is preferred over the value of
`ENV["HORO_PROJECT_VERSION"]`.  Therefore, we can consolidate the
`project_version` and `badge_version` helpers.

Note that while `ENV["HORO_BADGE_VERSION"]` has the format we desire,
`ENV["HORO_PROJECT_VERSION"]` is the more obvious and preferable name.
After these changes is released, we can encourage consumers (namely,
Rails) to set `ENV["HORO_PROJECT_VERSION"]` with the same value as
`ENV["HORO_BADGE_VERSION"]` and then to drop `ENV["HORO_BADGE_VERSION"]`
altogether.
@jonathanhefner jonathanhefner merged commit 7c8e9f6 into rails:main Aug 5, 2023
10 checks passed
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