diff --git a/.github/workflows/pull-request-automation.yaml b/.github/workflows/pull-request-automation.yaml index c47cd30..91a3fe3 100644 --- a/.github/workflows/pull-request-automation.yaml +++ b/.github/workflows/pull-request-automation.yaml @@ -5,10 +5,14 @@ on: types: - opened - reopened + - closed + pull_request_target: + types: + - closed jobs: auto-merge: - name: Auto reviews pull requests from bots + name: Auto reviews, merge and close pull requests runs-on: ubuntu-22.04 timeout-minutes: 5 @@ -37,6 +41,8 @@ jobs: && (github.event.pull_request.user.login == 'geo-ghci-test[bot]' || github.event.pull_request.user.login == 'geo-ghci-int[bot]' || github.event.pull_request.user.login == 'geo-ghci[bot]') + && (github.event.action == 'opened' + || github.event.action == 'reopened') - name: Auto reviews Renovate updates uses: actions/github-script@v7 with: @@ -49,3 +55,5 @@ jobs: }) if: |- github.event.pull_request.user.login == 'renovate[bot]' + && (github.event.action == 'opened' + || github.event.action == 'reopened')