-
Notifications
You must be signed in to change notification settings - Fork 91
29 lines (26 loc) · 1.02 KB
/
review.yaml
File metadata and controls
29 lines (26 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: Code Review
run-name: 'Code Review for #${{ github.event.pull_request.number || inputs.pr_number }}${{ github.event.pull_request.title && format('' : {0}'', github.event.pull_request.title) }}'
on:
pull_request:
types: [opened, synchronize]
pull_request_target:
types: [opened, synchronize]
workflow_dispatch:
inputs:
pr_number:
description: Pull Request number to review
required: true
jobs:
review:
if: github.event_name != 'pull_request_target' && github.actor != 'dependabot[bot]'
uses: scality/workflows/.github/workflows/claude-code-review.yml@v2
with:
allowed-tools: >-
${{ github.event_name == 'workflow_dispatch' && '"Bash(gh api repos/*/contents)"' || '' }}
secrets: inherit
review-dependency-bump:
if: github.event_name == 'pull_request_target' && github.actor == 'dependabot[bot]'
uses: scality/workflows/.github/workflows/claude-code-dependency-review.yml@v2
with:
ACTIONS_APP_ID: ${{ vars.ACTIONS_APP_ID }}
secrets: inherit