convco: `Check` returns `empty commit message` in version 0.3.13
Describe the bug
The command convco check
started return empty commit message
in version 0.3.13. When running the same command with version 0.3.12 the tool finds the commit, and validates it properly. I haven’t found any documentation about any behavior change with the check
command, hence this bug report.
To Reproduce Steps to reproduce the behavior:
- Clone convco repo: https://github.com/convco/convco.git
- Ensure local convco version 0.3.13 with
convco --version
- Run
convco check
- See error
empty commit message
Expected behavior Expect output to be the same as with version 0.3.12, i.e:
FAIL 38be02d wrong type: doc doc: clarify cmake is needed to build
FAIL 8c4dbb6 wrong type: doc doc: improve gitlab section in `README.m...
FAIL ffcf34a scope does not match regex: changelog|check|commit|version ci(docker): Add a dockerfile
FAIL 724bb2b first line doesn't match `<type>[optional scope]: <description>` release v0.3.0
FAIL 155e652 scope does not match regex: changelog|check|commit|version build(deps): bump versions
5/167 failed
System (please complete the following information):
- OS: ubuntu
- Version: 20.04
Additional context Not sure if this is a bug or an actual change of behavior, couldn’t find any changes in the documentation though, so I assume that it indeed a bug. If this behavior change is as intended, it would be good to update the documentation and then you can just close this bug.
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 20
Commits related to this issue
- fix: only check stdin when rev is HEAD and a tty Refs: #102 — committed to convco/convco by hdevalke a year ago
- ci: run convco check inside a script Refs: #102 — committed to convco/convco by hdevalke a year ago
- ci: run convco check inside a script Refs: #102 — committed to convco/convco by hdevalke a year ago
- ci: run convco check inside a script Refs: #102 — committed to convco/convco by hdevalke a year ago
- ci: run convco check inside a script Refs: #102 — committed to convco/convco by hdevalke a year ago
- fix: only check stdin when rev is HEAD and a tty Refs: #102 — committed to convco/convco by hdevalke a year ago
- ci: run convco check inside a script Refs: #102 — committed to convco/convco by hdevalke a year ago
- fix(check): read from stdin when rev is not set Refs: #102 — committed to convco/convco by hdevalke a year ago
- fix(check): read from stdin when rev is not set Refs: #102 — committed to convco/convco by hdevalke a year ago
No problem, thank you for reporting the issue. #116 will introduce the
--stdin
option instead of the detection of tty or not.@ite-klass
As this is a pre-major release anything can change. I try to do my best to not introduce breaking changes, but this one was unexpected. I propose to pin to v0.3.12 for the time being.
As you run it with Jenkins, I guess no tty is available. There is still a bug I need to fix. I should have taken more time to test this, but my spare time is sparse.
update: with this change you will have to set
convco check HEAD
if convco runs not in a tty.