-
Notifications
You must be signed in to change notification settings - Fork 12
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
Add changelog lint cmd #119
Conversation
4e98cc2
to
6422a8b
Compare
I like the approach, I added a commit that extracts the validators to separate functions, as we need to add tests for them to ensure long term maintainability. Once that is done this will be good to merge. |
internal/changelog/linter_test.go
Outdated
"github.com/stretchr/testify/require" | ||
) | ||
|
||
func TestValidators(t *testing.T) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Break this down per validator, as it is now would fail for any validator and that may be confusing to future contributors.
main.go
Outdated
@@ -25,6 +25,7 @@ func main() { | |||
rootCmd.AddCommand(cmd.PrHasFragmentCommand(appFs)) | |||
rootCmd.AddCommand(cmd.RenderCmd(appFs)) | |||
rootCmd.AddCommand(cmd.VersionCmd()) | |||
rootCmd.AddCommand(cmd.ChangelogLintCmd(appFs)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: add this in alphabetical order
Closes #45
Cherry-pick of
a7d4406
is required. PR #116 should be merged first.