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

Commitlint: Accept standard git revert commits #240

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

oleorhagen
Copy link
Contributor

Also add better debug prints

@@ -451,5 +451,11 @@ Changelog: none
Signed-off-by: Kristian Amlie <[email protected]>"


assert "true" \
"Accept standard git-revert commits" \
"Revert build(docker-client): Add support for building the cpp-client
Copy link
Contributor

Choose a reason for hiding this comment

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

In reality, the title of the old commit is quoted: Revert "build(docker-client): Add support for building the cpp-client". Will this still work with the parser?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

hah, good catch! I copy pasted, and was like: Wtf is these extra quotes doing here...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

And it broke... 😞

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

One other thing, is that we probably shouldn't parse these commits at all.

Copy link
Contributor

Choose a reason for hiding this comment

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

One other thing, is that we probably shouldn't parse these commits at all.

We have to parse the commits. The git revert will only keep the title and "This reverts commit blablabla", but the user most likely appends some context on why the revert is there and possibly have a changelog.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point

Ticket: None
Changelog: None

Signed-off-by: Ole Petter <[email protected]>
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.

2 participants