From 6cb50f81c295cc9a155b395d63ee3b11915586e4 Mon Sep 17 00:00:00 2001 From: na2na-p Date: Fri, 8 Dec 2023 20:50:21 +0900 Subject: [PATCH] =?UTF-8?q?=E6=B2=BB=E5=AE=89=E6=9C=80=E6=82=AA=E3=83=AF?= =?UTF-8?q?=E3=83=BC=E3=82=AF=E3=83=95=E3=83=AD=E3=83=BC=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/approbe.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/approbe.yml diff --git a/.github/workflows/approbe.yml b/.github/workflows/approbe.yml new file mode 100644 index 00000000..0937a141 --- /dev/null +++ b/.github/workflows/approbe.yml @@ -0,0 +1,33 @@ +name: Approve + +on: + pull_request: + types: [labeled] + +jobs: + approve: + runs-on: ubuntu-latest + timeout-minutes: 1 + if: >- + ${{ + github.event.label.name == 'Bypass review' && + github.event.pull_request.user.login == 'na2na-p' + }} + env: + NUMBER: ${{ github.event.number }} + + steps: + - name: Checkout repository + uses: actions/checkout@v4.1.1 + - name: Generate github token + id: generate_token + uses: tibdex/github-app-token@v2.1.0 + with: + app_id: ${{ secrets.APP_ID }} + private_key: ${{ secrets.PRIVATE_KEY }} + env: + OPENSSL_CONF: /dev/null + - name: Approve + run: gh pr review ${{ env.NUMBER }} --approve + env: + GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}