Quick wins: LazyLock regex, body default, document github-host, remove get_tag#37
Merged
Conversation
…e get_tag - #6: Compile semver regex once via LazyLock; bump Rust to 1.95.0 - #8: body input now uses unwrap_or_default instead of exit(1) when unset - #7: Document github-host input in action.yaml for GitHub Enterprise support - #5: Remove redundant get_tag() (identical to Display); callers use to_string() Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
std::sync::LazyLockinstead of on everyfrom_strcall; Rust bumped to 1.95.0 to support itget_body()no longer callsexit(1)whenINPUT_BODYis unset; usesunwrap_or_default()since the input is optional with a''defaultgithub-hostis now a declared input inaction.yaml, making GitHub Enterprise support visible to users (the binary already readINPUT_GITHUB-HOST)Semver::get_tag()was identical toDisplay/to_string(); removed the method and updated all call sitesTest plan
cargo testpasses (6 tests, all green)🤖 Generated with Claude Code