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

fix(angular): revert pattern to not require a period #1169

Merged
merged 2 commits into from
Apr 24, 2024

Conversation

privatenumber
Copy link
Contributor

As per their spec, there is no period required at the end of the commit SHA:
https://github.com/angular/angular/blob/main/CONTRIBUTING.md#revert-commits

Also, as a fix, I set a minimum requirement of 7 characters for the SHA (Git default) as currently you can pass in nothing and it would still work.

@dangreen dangreen self-requested a review November 19, 2023 08:57
Copy link
Member

@dangreen dangreen left a comment

Choose a reason for hiding this comment

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

Hi. Thank you for the PR!

Please fix tests.

you can pass in nothing and it would still work.

Also please add test case for that

@privatenumber
Copy link
Contributor Author

Couldn't figure out how to make the negative test work for SHAs less than 7 characters or more than 40 characters. Something was still picking up the revert: prefix without the "This reverts commit" body.

Would you mind looking into it?

@dangreen dangreen added this to the next+1 milestone Mar 14, 2024
@coveralls
Copy link

Coverage Status

coverage: 76.419%. remained the same
when pulling d2f0189 on privatenumber:patch-1
into c2c4b3a on conventional-changelog:master.

@dangreen dangreen merged commit e5786cd into conventional-changelog:master Apr 24, 2024
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants