Skip to content
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

tools/hydracomment: Add tool for simultaneous commenting #20001

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bergzand
Copy link
Member

@bergzand bergzand commented Oct 19, 2023

Contribution description

This is a very low effort python tool to place an identical comment under multiple PRs simultaneously.

I have put very little effort into this, mostly written by scavenging bits and pieces from the backport_pr tool, and it hasn't been thoroughly tested so far. Feel free to push fixups and cleanups to this branch 😉

Main use case is to make it easy to set up merge trains by putting a 'bors merge' under multiple PRs at the same time

Testing procedure

With great power comes great responsibility.

Issues/PRs references

None

@bergzand bergzand added Type: new feature The issue requests / The PR implemements a new feature for RIOT Area: tools Area: Supplementary tools labels Oct 19, 2023
@github-actions github-actions bot added the Area: doc Area: Documentation label Oct 19, 2023
@bergzand
Copy link
Member Author

hello world!

@bergzand bergzand added the CI: skip compile test If set, CI server will run only non-compile jobs, but no compile jobs or their dependent jobs label Oct 19, 2023
parser.add_argument(
"-c",
"--comment",
default="Bors merge",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
default="Bors merge",
default="bors merge",

I'm not sure if it is case sensitive, but so far we always used the lower case version.

@kaspar030
Copy link
Contributor

Why not just use github-cli in a loop?

@kaspar030
Copy link
Contributor

for i in 20001 20002; do gh issue comment $i --body "hello world"; done
wrap that in an alias, save 100 lines of python.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: doc Area: Documentation Area: tools Area: Supplementary tools CI: skip compile test If set, CI server will run only non-compile jobs, but no compile jobs or their dependent jobs Type: new feature The issue requests / The PR implemements a new feature for RIOT
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants