From a1e41ee43efd42eaebe33472ce0f28312d4bcc63 Mon Sep 17 00:00:00 2001 From: Scott K Logan Date: Fri, 2 Aug 2024 13:49:55 -0500 Subject: [PATCH] Add automated review action --- .github/workflows/reviewer.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/reviewer.yaml diff --git a/.github/workflows/reviewer.yaml b/.github/workflows/reviewer.yaml new file mode 100644 index 0000000000000..42f1e932697d9 --- /dev/null +++ b/.github/workflows/reviewer.yaml @@ -0,0 +1,24 @@ +--- +name: Automated review +on: # yamllint disable-line rule:truthy + pull_request: + types: + - opened + - reopened + - review_requested + +permissions: + pull-requests: write + +jobs: + automated_review: + name: Generate automated review + runs-on: ubuntu-latest + if: ${{ github.event.action != 'review_requested' || github.event.requested_reviewer.login == 'github-actions[bot]' }} + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: ros-infrastructure/rosdistro-reviewer@main + with: + token: ${{ github.token }}