-
-
Notifications
You must be signed in to change notification settings - Fork 124
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
feat: Add subjectPatternError option to set custom sub validation error #76
Conversation
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.
Thanks a lot for your work here @derberg!
The new feature seems to work as expected. I hope you found your way around in the code base 🙂.
Good idea with the interpolation of variables – I think this will improve the UX of the error message. Also thanks for adding tests!
I've left some comments with a few nits, but nothing major. Great work 👏.
Co-authored-by: Jan Amann <[email protected]>
@amannn hey, fixed applied, please have a look again |
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.
Looks good, thanks!
I've unwrapped the tests for formatMessage
from the describe block and added another test that verifies we can replace a single variable multiple times.
I'll wait for CI and then release this. Thanks again for your help!
@amannn thanks man, it was a pleasure to contribute. Pure open source, good discussion on the issue, fast communication, great feedback on PR 🙏🏼
I was only confused with |
That's great to hear! 🙂
Right, when I created the first version of the action I was a bit confused that this is necessary. I saw that there's an option to compile a binary, but never got around to implementing that. Not sure how complex that really is. Do you have an example where you got that working? |
yeah, that is simple, just
normally that is it, but I was always forgetting to build the package 😅 so I have I can configure that for you, not a problem, just tell me what you want, all or just the first part? |
subjectPatternError
to enable custom errors for subject validation failureResolves #74