-
Notifications
You must be signed in to change notification settings - Fork 646
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
CI: Prevent breaking backports #4812
Conversation
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
wget -q https://github.com/cli/cli/releases/download/v2.51.0/gh_2.51.0_linux_amd64.tar.gz -O gh.tar.gz && \ | ||
tar -xzf gh.tar.gz && mv gh_2.51.0_linux_amd64/bin/gh /usr/local/bin/gh && rm gh.tar.gz | ||
chmod +x /usr/local/bin/gh |
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.
https://github.com/actions/github-script#comment-on-an-issue maybe we could use this?
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 tried it, but this and similar actions dont allow to simply edit the last comment. The gh cli has a --edit-last
flag to avoid spam in the merge request that just amends it.
Alternative is to use the gh API and figure out the last comment id, and then editing that id. Surely more difficult than this one command.
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
- Prevent `major` changes to be merged into a `stable` branch. - Place a comment on backport MRs to provide context of what it means. Comment looks like this: ![Screenshot 2024-07-24 at 17 36 35](https://github.com/user-attachments/assets/6393549b-7b15-41e5-a804-8581c625ceff) --------- Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
major
changes to be merged into astable
branch.Comment looks like this: