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

Add Unicode Support #615

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

Conversation

Copy link
Contributor

@adam-grant-hendry adam-grant-hendry commented Oct 23, 2022

Adds unicode support by allowing configurable encodings to be specified (defaults to utf-8).

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

Fixes: Issue #516

This commit can be removed once `fix/ci` is merged into `master`.
This will allow commiting, e.g., emoji's and parsing commit messages for
unicode characters when creating change logs.
Copy link

codecov bot commented Oct 23, 2022
edited
Loading

Codecov Report

Base: 97.92% // Head: 97.92% // Increases project coverage by +0.00% 🎉

Coverage data is based on head (231ff3e) compared to base (db42a95).
Patch coverage: 100.00% of modified lines in pull request are covered.

❗ Current head 231ff3e differs from pull request most recent head ca3cef4. Consider uploading reports for the commit ca3cef4 to get more accurate results

Additional details and impacted files
@@ Coverage Diff @@
## master #615 +/- ##
=======================================
 Coverage 97.92% 97.92% 
=======================================
 Files 35 35 
 Lines 1252 1253 +1 
=======================================
+ Hits 1226 1227 +1 
 Misses 26 26 
Flag Coverage Δ
unittests 97.92% <100.00%> (+<0.01%) ⬆️

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

Impacted Files Coverage Δ
commitizen/changelog_parser.py 96.92% <100.00%> (ø)
commitizen/commands/bump.py 97.20% <100.00%> (-0.12%) ⬇️
commitizen/commands/changelog.py 98.87% <100.00%> (+0.01%) ⬆️
commitizen/commands/check.py 100.00% <100.00%> (ø)
commitizen/commands/commit.py 98.46% <100.00%> (+0.02%) ⬆️
commitizen/commands/init.py 91.75% <100.00%> (+0.08%) ⬆️
commitizen/config/json_config.py 100.00% <100.00%> (ø)
commitizen/config/toml_config.py 100.00% <100.00%> (ø)
commitizen/config/yaml_config.py 100.00% <100.00%> (ø)
...en/cz/conventional_commits/conventional_commits.py 100.00% <100.00%> (ø)
... and 6 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Contributor Author

@Lee-W @woile Please review at your earliest convenience. Thank you.

Copy link
Member

Lee-W commented Oct 27, 2022

If I'm not mistaken, some of the changes are from #605. If that's the case, I'll review it after that one is merged and rebased to this. I browsed through this PR. I think we should be able to merge it soon as well :)

woile and adam-grant-hendry reacted with thumbs up emoji

Copy link
Contributor Author

If I'm not mistaken, some of the changes are from #605.

Correct. The first commit is a squash merge of #605 . I plan to revert it and rebase once #605 is approved and merged.

Copy link
Member

Lee-W commented Nov 6, 2022

Hi @adam-grant-hendry , we've merged #605 . feel free to rebase this one when you have time. thanks!

adam-grant-hendry and others added 20 commits December 2, 2022 19:00
Specify `shell` as `bash` in `Run tests and linters` step.
Fixes: Issue commitizen-tools#604 
`argcomplete` does not support Git Bash on Windows out of the box. For
details, see https://kislyuk.github.io/argcomplete/#git-bash-support.
`py -m` was added to command in `test_argcomplete_activation` during
experimentation and was forgotten to be removed.
Since Poetry 1.2.0 dependency groups are introduced, and `--dev` becomes deprecated, and instead `--with dev` has to be provided.
The current default setting for `tag_format` is `None`. This is not a
problem for the `bump` command, since the `normalize_tag` function
defaults to `$version` when no `tag_format` is passed. However it is a
problem for the `changelog` command, which seems to explicitly demand a
`tag_format` in order to run a rev-range lookup. This creates issues
like commitizen-tools#622.
Either a sane default needs to be set for `tag_format` or the
restriction in `changelog` has to be uplifted. In this commit the latter
has been chosen. A test is also implemented to check that `changelog`
will always compute a rev range with the default tag format.
Fixes commitizen-tools#622 
This will allow commiting, e.g., emoji's and parsing commit messages for
unicode characters when creating change logs.
Switch `#!/bin/sh` to `#!/usr/bin/env sh` so scripts work on Windows as well as Linux and MacOS.
- Change shebang from `#!/bin/sh` to `#!/usr/bin/env sh`
- Set `$PREFIX` depending on OS
`argcomplete` does not support Git Bash on Windows out of the box. For
details, see https://kislyuk.github.io/argcomplete/#git-bash-support.
adam-grant-hendry and others added 15 commits December 2, 2022 19:04
This will allow commiting, e.g., emoji's and parsing commit messages for
unicode characters when creating change logs.
Specify `shell` as `bash` in `Run tests and linters` step.
Fixes: Issue commitizen-tools#604 
This will allow commiting, e.g., emoji's and parsing commit messages for
unicode characters when creating change logs.
This will allow commiting, e.g., emoji's and parsing commit messages for
unicode characters when creating change logs.
This will allow commiting, e.g., emoji's and parsing commit messages for
unicode characters when creating change logs.
This will allow commiting, e.g., emoji's and parsing commit messages for
unicode characters when creating change logs.
This will allow commiting, e.g., emoji's and parsing commit messages for
unicode characters when creating change logs.
Copy link
Contributor Author

@Lee-W @woile I'm having trouble rebasing, so I'm moving this to #629

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

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