generated from actions/javascript-action
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
Error: Cannot read property 'labels' of undefined #140
Labels
bug
Something isn't working
Comments
Hey @anmlnath! Thanks for reporting this. I agree this is a bug. The enforcer is designed to run within the context of a I'll work on this in the upcoming week as best as I can. Thanks again! |
dangoslen
added a commit
that referenced
this issue
Aug 15, 2021
dangoslen
added a commit
that referenced
this issue
Aug 16, 2021
Merged
This was referenced Sep 22, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Changelog enforcer is unable to run on pushes to main, but it still tries.
To Reproduce
If I want the other steps in my job to still run if somebody pushes to main, I might put something like this:
Unfortunately changelog-enforcer fails with the error:
Error: Cannot read property 'labels' of undefined
Expected behavior
Likely fail because the CHANGELOG.md hasn't changed.
Workaround
Making changelog-enforcer conditional works around the issue:
The text was updated successfully, but these errors were encountered: