Skip to content

refactor(git): simplify tag logic #1507

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

Open
wants to merge 1 commit into
base: refactors
Choose a base branch
from

Conversation

bearomorphism
Copy link
Contributor

@bearomorphism bearomorphism commented Jun 5, 2025

Description

Checklist

@bearomorphism bearomorphism marked this pull request as ready for review June 5, 2025 18:06
Copy link
Member

@Lee-W Lee-W left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mostly good, one nitpick


# according to https://git-scm.com/book/en/v2/Git-Basics-Tagging,
# we're not able to create lightweight tag with message.
# by adding message, we make it a annotated tags
return cmd.run(f'git tag {_opt} "{tag if _opt == "" or msg is None else msg}"')
option = "-s" if signed else "-a"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

worth mentione the else case if for annotated

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added a comment.

@Lee-W Lee-W added this to the 4.8.3 milestone Jun 8, 2025
@Lee-W Lee-W added the pr-status: ready-to-merge almost ready to merge. just keep it for a few days for others to check label Jun 8, 2025
Copy link

codecov bot commented Jun 8, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.86%. Comparing base (a9cd957) to head (a505d5b).

Additional details and impacted files
@@              Coverage Diff              @@
##           refactors    #1507      +/-   ##
=============================================
- Coverage      97.87%   97.86%   -0.01%     
=============================================
  Files             57       57              
  Lines           2677     2675       -2     
=============================================
- Hits            2620     2618       -2     
  Misses            57       57              
Flag Coverage Δ
unittests 97.86% <100.00%> (-0.01%) ⬇️

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

☔ 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.

@bearomorphism bearomorphism force-pushed the refactor-tag branch 2 times, most recently from b5b5bca to 32de613 Compare June 8, 2025 08:34
@bearomorphism bearomorphism mentioned this pull request Jun 8, 2025
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-status: ready-to-merge almost ready to merge. just keep it for a few days for others to check pr-status: wait-for-review type: refactor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants