Skip to content

Commit

Permalink
fix: Use the creator of the PR not the last user.
Browse files Browse the repository at this point in the history
  • Loading branch information
bmbeverst committed Jan 9, 2025
1 parent 46c9d04 commit 92c3897
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/autoapprove.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/autoapprove.yaml.bak
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit 92c3897

Please sign in to comment.