diff --git a/.backportrc.json b/.backportrc.json new file mode 100644 index 0000000..7247530 --- /dev/null +++ b/.backportrc.json @@ -0,0 +1,13 @@ +{ + "repoOwner": "agritheory", + "repoName": "cloud_storage", + "targetBranchChoices": [ + "version-14", + "version-15" + ], + "autoMerge": true, + "autoMergeMethod": "squash", + "branchLabelMapping": { + "^auto-backport-to-(.+)$": "$1" + } +} \ No newline at end of file diff --git a/.github/workflows/backport.yaml b/.github/workflows/backport.yaml new file mode 100644 index 0000000..94d5d17 --- /dev/null +++ b/.github/workflows/backport.yaml @@ -0,0 +1,24 @@ +name: Automatic backport action + +on: + pull_request_target: + types: ["labeled", "closed"] + +jobs: + backport: + name: Backport PR + runs-on: ubuntu-latest + steps: + - name: Backport Action + uses: sorenlouv/backport-github-action@v9.3.0 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + auto_backport_label_prefix: backport-to- + + - name: Info log + if: ${{ success() }} + run: cat ~/.backport/backport.info.log + + - name: Debug log + if: ${{ failure() }} + run: cat ~/.backport/backport.debug.log \ No newline at end of file