Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat(commands)!: deprecate '-s' signoff parameter #1221

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

Closed
AdrianDC wants to merge 7 commits into commitizen-tools:v4 from AdrianDC:signoff-v4

Conversation

Copy link
Contributor

@AdrianDC AdrianDC commented Aug 25, 2024

Description

feat(commands)!: deprecate '-s' signoff parameter

Follow-up to #1206, deprecating -s for major v4.

Checklist

  • Add test cases to all the changes you introduce
  • Run ./scripts/format and ./scripts/test locally to ensure this change passes linter check and test
  • Test the changes on the local machine manually
  • Update the documentation for the changes

Expected behavior

Steps to Test This Pull Request

Additional context

dependabot bot and others added 6 commits August 23, 2024 10:18
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.6.1 to 0.6.2.
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](astral-sh/ruff@0.6.1...0.6.2)
---
updated-dependencies:
- dependency-name: ruff
 dependency-type: direct:development
 update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
If 'always_signoff' is enabled in configurations, or '-s' is used alone on the CLI,
the following errors arise due to 'git commit' argument failures :
> signoff mechanic is deprecated, please use `cz commit -- -s` instead.
> fatal: /tmp/...: '/tmp/... is outside repository at '...'
Signed-off-by: Adrian DC <radian.dc@gmail.com>
Signed-off-by: Adrian DC <radian.dc@gmail.com>
...nd sources
Details: The git sources folder ownership may be detected as dubious if running
 in a container with sources mounted to work on fixes and tests,
 breaking 'test_find_git_project_root' and 'test_get_commits_with_signature'
> commitizen.exceptions.GitCommandError: fatal: detected dubious ownership in repository at '...'
---
Signed-off-by: Adrian DC <radian.dc@gmail.com>
Copy link

codecov bot commented Aug 25, 2024
edited
Loading

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (v4@737c24c). Learn more about missing BASE report.

Additional details and impacted files
@@ Coverage Diff @@
## v4 #1221 +/- ##
=====================================
 Coverage ? 97.61% 
=====================================
 Files ? 55 
 Lines ? 2515 
 Branches ? 0 
=====================================
 Hits ? 2455 
 Misses ? 60 
 Partials ? 0 
Flag Coverage Δ
unittests 97.61% <100.00%> (?)

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.

Signed-off-by: Adrian DC <radian.dc@gmail.com>
Copy link
Contributor Author

AdrianDC commented Nov 1, 2024

Though implemented per request towards v4, I vote against my own PR,
because some of my teams' developers use it all the time as this is considered "basic" / "normal" usage.

Copy link
Member

Lee-W commented Nov 2, 2024
edited
Loading

Though implemented per request towards v4, I vote against my own PR, because some of my teams' developers use it all the time as this is considered "basic" / "normal" usage.

I'm ok to keep a few exceptions. As long as the underlying logic is not duplicate and the document is suggesting using --

Copy link
Contributor Author

AdrianDC commented Nov 4, 2024

Deprecation of -s canceled for commitizen v4 👍

@AdrianDC AdrianDC deleted the signoff-v4 branch November 16, 2024 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@woile woile Awaiting requested review from woile

@Lee-W Lee-W Awaiting requested review from Lee-W

@noirbizarre noirbizarre Awaiting requested review from noirbizarre

Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants

AltStyle によって変換されたページ (->オリジナル) /