From 902140ea18022c8c340495afd7a16dba42439bab Mon Sep 17 00:00:00 2001 From: Brooks Beverstock <603632+bmbeverst@users.noreply.github.com> Date: Thu, 9 Jan 2025 15:18:47 -0500 Subject: [PATCH] fix: Use the creator of the PR not the last user. --- .github/workflows/autoapprove.yaml | 2 +- .github/workflows/autoapprove.yaml.bak | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/autoapprove.yaml.bak diff --git a/.github/workflows/autoapprove.yaml b/.github/workflows/autoapprove.yaml index 9e95fd0..c67c9d8 100644 --- a/.github/workflows/autoapprove.yaml +++ b/.github/workflows/autoapprove.yaml @@ -8,7 +8,7 @@ jobs: name: Auto approve renovatebot PRs runs-on: ubuntu-latest # Only if made by renovatebot application - if: github.actor == 'self-hosted-renovatebot[bot]' + if: github.event.pull_request.user.login == 'self-hosted-renovatebot[bot]' steps: - name: Approve uses: cresta/action-auto-approve-pr@v1 diff --git a/.github/workflows/autoapprove.yaml.bak b/.github/workflows/autoapprove.yaml.bak new file mode 100644 index 0000000..9e95fd0 --- /dev/null +++ b/.github/workflows/autoapprove.yaml.bak @@ -0,0 +1,16 @@ +name: Auto approves renovatebot PRs +on: + pull_request: + types: + - opened +jobs: + approve: + name: Auto approve renovatebot PRs + runs-on: ubuntu-latest + # Only if made by renovatebot application + if: github.actor == 'self-hosted-renovatebot[bot]' + steps: + - name: Approve + uses: cresta/action-auto-approve-pr@v1 + with: + token: ${{ secrets.CRESTA_ROBOT_AUTO_APPROVE_TOKEN }} \ No newline at end of file