-
-
Notifications
You must be signed in to change notification settings - Fork 60
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
Accept GitHub issues numbered only 32426 or above #519
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.
Please could you add some tests?
Hopefully we can get #520 merged soon, then we can add unit tests.
In the meantime, tests are done by adding valid blurb files in the pass
dir and invalid ones in the fail
dir at https://github.com/python/core-workflow/tree/main/blurb/tests, and then running blurb test
.
Seems like the Also, the tests wouldn't pass if we didn't raise an exception at the Finally, retrospectively fixed some old tests that indeed were using smaller GH issue numbers. |
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! It's nice when adding tests reveals a problem in the original implementation :)
Looks good, here's a wording suggestion.
Thanks a lot for the review @hugovk. Suggestion commited! |
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!
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.
A couple of non-blocking suggestions, with one of them being a nitpick that you're welcome to ignore if it's too much effort and a request to name a magic number.
Thanks a lot for the review @pradyunsg. Feedback addressed already! |
Co-authored-by: Hugo van Kemenade <[email protected]>
Co-authored-by: Pradyun Gedam <[email protected]>
Hey @pradyunsg, @hugovk, you think we're OK to merge this? |
Yes, let's merge. Thank you for your contribution! |
Fixes #504.
Iterates through the template file to find the gh-issue line and checks number if it's in the accepted issue number range.
This is how an unsuccessful attempt looks like: