From 35002c2b381c7a99054363ac1deed00f0f33c931 Mon Sep 17 00:00:00 2001 From: Jeremy <297323986@qq.com> Date: Thu, 9 Jan 2025 14:24:35 +0800 Subject: [PATCH] Add backport action and dependabot --- .github/dependabot.yml | 10 ++++++++++ .github/workflows/backport.yml | 17 +++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/backport.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..64b423d --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,10 @@ +version: 2 +updates: + # Make PRs to update the nitro-testnode submodule + - package-ecosystem: "gitsubmodule" + directory: "/" + allow: + - dependency-name: "nitro-testnode" + - dependency-name: "contracts" + schedule: + interval: "daily" diff --git a/.github/workflows/backport.yml b/.github/workflows/backport.yml new file mode 100644 index 0000000..80bbf34 --- /dev/null +++ b/.github/workflows/backport.yml @@ -0,0 +1,17 @@ +name: Backport merged pull request +on: + pull_request_target: + types: [closed] +permissions: + contents: write # so it can comment + pull-requests: write # so it can create pull requests +jobs: + backport: + name: Backport pull request + runs-on: ubuntu-latest + # Don't run on closed unmerged pull requests + if: github.event.pull_request.merged + steps: + - uses: actions/checkout@v4 + - name: Create backport pull requests + uses: korthout/backport-action@v2