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

Adds short_branch_name to version rendering context #29

Merged

Conversation

coordt
Copy link
Member

@coordt coordt commented Jun 30, 2023

  • short_branch_name is the branch name, lower case, containing only a-z and 0-9, and truncated to 20 characters.

Fixes #28

pre-commit-ci bot and others added 3 commits June 27, 2023 01:39
updates:
- [github.com/charliermarsh/ruff-pre-commit: v0.0.272 → v0.0.275](astral-sh/ruff-pre-commit@v0.0.272...v0.0.275)
- [github.com/pre-commit/mirrors-mypy: v1.3.0 → v1.4.1](pre-commit/mirrors-mypy@v1.3.0...v1.4.1)
- [github.com/python-jsonschema/check-jsonschema: 0.23.1 → 0.23.2](python-jsonschema/check-jsonschema@0.23.1...0.23.2)
- `short_branch_name` is the branch name, lower case, containing only a-z and 0-9, and truncated to 20 characters.

Fixes #28
@coordt coordt linked an issue Jun 30, 2023 that may be closed by this pull request
@codecov
Copy link

codecov bot commented Jun 30, 2023

Codecov Report

Merging #29 (bfe5306) into master (8141c0d) will increase coverage by 0.33%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master      #29      +/-   ##
==========================================
+ Coverage   92.14%   92.47%   +0.33%     
==========================================
  Files          15       15              
  Lines         967      970       +3     
  Branches      207      207              
==========================================
+ Hits          891      897       +6     
+ Misses         48       46       -2     
+ Partials       28       27       -1     
Flag Coverage Δ
python-3.10 92.47% <100.00%> (+0.33%) ⬆️
python-3.11 92.47% <100.00%> (+0.33%) ⬆️
python-3.8 92.47% <100.00%> (+0.33%) ⬆️
python-3.9 92.47% <100.00%> (+0.33%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
bumpversion/version_part.py 88.43% <ø> (ø)
bumpversion/scm.py 92.06% <100.00%> (+0.12%) ⬆️

... and 1 file with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

coordt added 3 commits June 30, 2023 07:46
- Declared SourceCodeManager attributes as `ClassVar[List[str]]`
- `_TEST_USABLE_COMMAND`, `_COMMIT_COMMAND`, and `_ALL_TAGS_COMMAND` affected
@coordt coordt merged commit 59b2e41 into master Jul 3, 2023
@coordt coordt deleted the 28-add-short_branch_name-to-version-rendering-context branch July 3, 2023 11:40
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.

Add short_branch_name to version rendering context
1 participant