CI: Add backporting bot (#4795)
Adds a bot that automatically opens MRs into the `stable2407` branch
when the `A4-needs-backport` label is applied to a merged MR.
TODO:
- [x] ~~Settle on label vs error message trade-off~~ (resolved)
docs:
# Backporting
This document explains how to backport a merged PR from `master` to one
of the `stable*` branches. Backports should only be used to fix bugs or
security issues - never to introduce new features.
## Steps
1. Fix a bug through a PR that targets `master`.
2. Add label `A4-needs-backport` to the PR.
4. Merge the PR into `master`.
5. Wait for the bot to open the backport PR.
6. Ensure the change is audited or does not need audit.
7. Merge the backport PR.
The label can also be added after the PR is merged.
## Example
For example here where the dev triggered the process by adding the label
after merging:
![backport-ex2](https://github.com/user-attachments/assets/c7b686db-a0fe-41f1-9d6f-959a5a7097b1)
---------
Signed-off-by: Oliver Tale-Yazdi <[email protected]>