-
Notifications
You must be signed in to change notification settings - Fork 189
30 lines (28 loc) · 1.13 KB
/
pr_review.yml
File metadata and controls
30 lines (28 loc) · 1.13 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
30
---
name: PR Review
on:
pull_request_target:
types: [opened, synchronize, reopened]
jobs:
Code-Diff-Analyzer:
uses: opensearch-project/opensearch-build/.github/workflows/code-diff-analyzer.yml@main
if: github.repository == 'opensearch-project/sql'
permissions:
id-token: write # github oidc to assume aws roles
pull-requests: write # to create or update comment (peter-evans/create-or-update-comment)
secrets:
BEDROCK_ACCESS_ROLE: ${{ secrets.BEDROCK_ACCESS_ROLE }}
with:
skip_diff_analyzer_with_label_name: 'skip-diff-analyzer'
update_pr_comment_with_analyzer_report: true
Code-Diff-Reviewer:
uses: opensearch-project/opensearch-build/.github/workflows/code-diff-reviewer.yml@main
needs: Code-Diff-Analyzer
if: github.repository == 'opensearch-project/sql'
permissions:
id-token: write # github oidc to assume aws roles
pull-requests: write # to create or update comment (peter-evans/create-or-update-comment)
secrets:
BEDROCK_ACCESS_ROLE: ${{ secrets.BEDROCK_ACCESS_ROLE }}
with:
skip_diff_reviewer_with_label_name: 'skip-diff-reviewer'