From 54dabf7a56973a555614fb5b3256ffeb61fb33d3 Mon Sep 17 00:00:00 2001 From: William Desportes Date: Sat, 29 Jul 2023 09:16:05 +0200 Subject: [PATCH] ci: add merge and lock workflows --- .github/workflows/lock.yml | 15 +++++++++++++++ .github/workflows/merge.yml | 17 +++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 .github/workflows/lock.yml create mode 100644 .github/workflows/merge.yml diff --git a/.github/workflows/lock.yml b/.github/workflows/lock.yml new file mode 100644 index 0000000..6a366a7 --- /dev/null +++ b/.github/workflows/lock.yml @@ -0,0 +1,15 @@ +name: lock pull-request +on: + pull_request: + types: + - closed +jobs: + lock: + runs-on: ubuntu-latest + steps: + - name: lock pull request + uses: sudo-bot/action-pull-request-lock@v1.0.5 + with: + github-token: ${{ secrets.SUDO_BOT_TOKEN }} + number: ${{ github.event.pull_request.number }} + lock-reason: resolved diff --git a/.github/workflows/merge.yml b/.github/workflows/merge.yml new file mode 100644 index 0000000..e91c2d5 --- /dev/null +++ b/.github/workflows/merge.yml @@ -0,0 +1,17 @@ +name: merge pull-request +on: + pull_request: + types: + - labeled +jobs: + merge: + runs-on: ubuntu-latest + steps: + - name: merge pull request + uses: sudo-bot/action-pull-request-merge@v1.1.1 + with: + github-token: ${{ secrets.SUDO_BOT_TOKEN }} + number: ${{ github.event.pull_request.number }} + allowed-usernames-regex: ^williamdes$ + filter-label: merge-it + merge-method: fast-forward