Skip to content

Commit

Permalink
add workflow to ask reviews
Browse files Browse the repository at this point in the history
  • Loading branch information
chouetz committed Jan 21, 2025
1 parent 2bb9b93 commit 25de048
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/ask_dependabot_pr_review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
name: "Add reviewers and ask review for dependabot PR"

on:
pull_request:
types: [opened, synchronize, reopened]
branches:
- main
- "[0-9]+.[0-9]+.x"
pull_request_review_comment:
types: [created, deleted]

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

permissions: {}
jobs:
add_reviewers:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false

- name: Setup python
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version-file: .python-version
cache: 'pip'
cache-dependency-path: '**/requirements*.txt'

- name: Install dependencies
run: pip install -r requirements.txt -r tasks/requirements.txt

- name: Check code review complexity
env:
PR_NUMBER: ${{ github.event.pull_request.number }}
run: inv -e issue.add-reviewers -p $PR_NUMBER

0 comments on commit 25de048

Please sign in to comment.