Skip to content

Commit 76b4ef3

Browse files
authored
Add backport.yml and flow configuration (#2689)
* 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 * Add GitHub Actions workflow for backporting PRs
1 parent 2464766 commit 76b4ef3

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

.github/workflows/backport.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Backport PR to branch
2+
on:
3+
issue_comment:
4+
types: [created]
5+
schedule:
6+
# once a day at 13:00 UTC to cleanup old runs
7+
- cron: '0 13 * * *'
8+
9+
permissions:
10+
contents: write
11+
issues: write
12+
pull-requests: write
13+
actions: write
14+
15+
jobs:
16+
backport:
17+
uses: dotnet/arcade/.github/workflows/backport-base.yml@main

github-merge-flow.jsonc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// IMPORTANT: This file is read by the merge flow from main branch only.
2+
{
3+
"merge-flow-configurations": {
4+
// Automate opening PRs to merge release/10.0 to main
5+
"release/10.0":{
6+
"MergeToBranch": "main",
7+
"ExtraSwitches": "-QuietComments"
8+
}
9+
}
10+
}

0 commit comments

Comments
 (0)