From f756949af16465d0c340b69e24901fbb19000ca6 Mon Sep 17 00:00:00 2001 From: Viktor Hofer Date: Mon, 29 Sep 2025 12:55:01 +0200 Subject: [PATCH 1/2] Add backport.yml and flow configuration This allows to use the /backport command and to automatically open forward flow PRs from release/10.0 to main --- github-merge-flow.jsonc | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 github-merge-flow.jsonc diff --git a/github-merge-flow.jsonc b/github-merge-flow.jsonc new file mode 100644 index 0000000000..f2558c2f99 --- /dev/null +++ b/github-merge-flow.jsonc @@ -0,0 +1,10 @@ +// IMPORTANT: This file is read by the merge flow from main branch only. +{ + "merge-flow-configurations": { + // Automate opening PRs to merge release/10.0 to main + "release/10.0":{ + "MergeToBranch": "main", + "ExtraSwitches": "-QuietComments" + } + } +} From 8c0c2fc361cea7a1309ffcb7724274d38e39c281 Mon Sep 17 00:00:00 2001 From: Viktor Hofer Date: Mon, 29 Sep 2025 12:55:32 +0200 Subject: [PATCH 2/2] Add GitHub Actions workflow for backporting PRs --- .github/workflows/backport.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/backport.yml diff --git a/.github/workflows/backport.yml b/.github/workflows/backport.yml new file mode 100644 index 0000000000..60eb59ab40 --- /dev/null +++ b/.github/workflows/backport.yml @@ -0,0 +1,17 @@ +name: Backport PR to branch +on: + issue_comment: + types: [created] + schedule: + # once a day at 13:00 UTC to cleanup old runs + - cron: '0 13 * * *' + +permissions: + contents: write + issues: write + pull-requests: write + actions: write + +jobs: + backport: + uses: dotnet/arcade/.github/workflows/backport-base.yml@main