Closed laeubi closed 10 months ago
Hi there,
Apologies for the late reply. You can already achieve this. Please create a file in your repo called .backportrc.json
:
{
"upstream": "{orgName}/{repoName}",
"targetBranches": ["release-<previsous-version>"],
}
Please also update .github/workflows/backport.yml
:
on:
pull_request_target:
types: ["closed"]
branches: ["master"]
jobs:
backport:
name: Backport PR
runs-on: ubuntu-latest
steps:
- name: Backport Action
uses: sqren/backport-github-action@main
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
I'll close this issue. Don't hesitate to reach out if you have any questions!
In a project we have two active branches:
master
release-<previsous-version>
I simply want that EVERY PR merged to master is automatically tried to be backported to the previous release.
It would therefore be great if one can simply specify the branch for the backport as an option instead of using a label at all.