File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ name : Issue Dedupe Main
3+ on :
4+ issues :
5+ types : [opened]
6+ schedule :
7+ - cron : ' 0 0 * * *'
8+ workflow_dispatch :
9+ inputs :
10+ issue_number :
11+ description : ' Issue number to check for duplicates'
12+ required : true
13+ type : string
14+
15+ jobs :
16+ detect-issue :
17+ if : >-
18+ (github.event_name == 'workflow_dispatch' &&
19+ github.repository == 'opensearch-project/security') ||
20+ (github.event_name == 'issues' &&
21+ github.event.issue.user.type != 'Bot' &&
22+ github.repository == 'opensearch-project/security')
23+ uses : opensearch-project/opensearch-build/.github/workflows/issue-dedupe-detect.yml@main
24+ permissions :
25+ contents : read
26+ issues : write
27+ id-token : write
28+ secrets :
29+ BEDROCK_ACCESS_ROLE_ISSUE_DEDUPE : ${{ secrets.BEDROCK_ACCESS_ROLE_ISSUE_DEDUPE }}
30+ with :
31+ issue_number : ${{ inputs.issue_number || '' }}
32+ grace_days : ${{ vars.DUPLICATE_GRACE_DAYS || '7' }}
33+
34+ auto-close-issue :
35+ if : github.event_name == 'schedule' && github.repository == 'opensearch-project/security'
36+ uses : opensearch-project/opensearch-build/.github/workflows/issue-dedupe-autoclose.yml@main
37+ permissions :
38+ issues : write
39+ with :
40+ grace_days : ${{ vars.DUPLICATE_GRACE_DAYS || '7' }}
Original file line number Diff line number Diff line change 1+ ---
2+ name : PR Review
3+ on :
4+ pull_request_target :
5+ types : [opened, synchronize, reopened]
6+
7+ jobs :
8+ Code-Diff-Analyzer :
9+ uses : opensearch-project/opensearch-build/.github/workflows/code-diff-analyzer.yml@main
10+ if : github.repository == 'opensearch-project/security'
11+ permissions :
12+ id-token : write # github oidc to assume aws roles
13+ pull-requests : write # to create or update comment (peter-evans/create-or-update-comment)
14+ secrets :
15+ BEDROCK_ACCESS_ROLE : ${{ secrets.BEDROCK_ACCESS_ROLE }}
16+ with :
17+ skip_diff_analyzer_with_label_name : ' skip-diff-analyzer'
18+ update_pr_comment_with_analyzer_report : true
19+
20+ Code-Diff-Reviewer :
21+ uses : opensearch-project/opensearch-build/.github/workflows/code-diff-reviewer.yml@main
22+ needs : Code-Diff-Analyzer
23+ if : github.repository == 'opensearch-project/security'
24+ permissions :
25+ id-token : write # github oidc to assume aws roles
26+ pull-requests : write # to create or update comment (peter-evans/create-or-update-comment)
27+ secrets :
28+ BEDROCK_ACCESS_ROLE : ${{ secrets.BEDROCK_ACCESS_ROLE }}
29+ with :
30+ skip_diff_reviewer_with_label_name : ' skip-diff-reviewer'
You can’t perform that action at this time.
0 commit comments