Skip to content

Commit

Permalink
ci(github-actions): Update auto-assign workflow to skip bot-initiated…
Browse files Browse the repository at this point in the history
… PRs and improve assignee handling (#10)
  • Loading branch information
ginokent authored Jan 5, 2025
2 parents 443419c + 8723db4 commit da15fee
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/auto-assign.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,12 @@ on:

jobs:
auto-assign:
name: Auto Assign
if: github.actor != 'dependabot[bot]'
if: github.actor != 'dependabot[bot]' && github.actor != 'renovate[bot]'
runs-on: ubuntu-latest
timeout-minutes: 2
steps:
- if: ${{ toJSON(github.event.pull_request.assignees) == '[]' }}
run: gh pr edit "${NUMBER}" --add-assignee "${ASSIGNEE}"
env:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
NUMBER: ${{ github.event.pull_request.number }}
ASSIGNEE: ${{ github.event.pull_request.user.login }}
run: |
gh pr --repo ${{ github.repository }} edit ${{ github.event.pull_request.number }} --add-assignee "${{ github.event.pull_request.user.login }}"

0 comments on commit da15fee

Please sign in to comment.