-
Notifications
You must be signed in to change notification settings - Fork 0
Start testing the script... #33
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
base: master
Are you sure you want to change the base?
Conversation
2af3835
to
6a89050
Compare
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.
ACK
Note that there is also https://github.com/RIOT-OS/RIOT-release-manager/tree/tests which I never managed to bring into full working order. |
I wasn't aware of it, We can probably expand but I think just doing some simple doctests is a clean and maintainable way to start. |
Yepp, just wanted to point out, that there was work already done and that it can be picked up, if anyone desires to :-). |
@MrKevinWeiss can you rebase, please? |
6a89050
to
6131e43
Compare
merge_lines = [line for line in log.splitlines() if line.strip().startswith('Merge #')] | ||
return [int(line) for line in re.findall(r"#([0-9]+)", '\n'.join(merge_lines))] |
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.
I wonder if this is still valid since
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.
Probably should now be
merge_lines = [line for line in log.splitlines() if line.strip().startswith('Merge #')] | |
return [int(line) for line in re.findall(r"#([0-9]+)", '\n'.join(merge_lines))] | |
return [int(line["PR"]) for line in re.findall(r"(Merge pull request|Merge) #(?P<PR>[0-9]+)"), log] |
this way we are also backwards compatible with bors based PRs.
Adds CI and reworks a simple doctest