From 04458c3a63190dfa090c4735f31f1ad3c9f146b3 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 44c10127bcbde07c84405c49b0526dd6f3f910be 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