Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/workflows/issue-dedupe.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
name: Issue Dedupe Main
on:
issues:
types: [opened]
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
inputs:
issue_number:
description: 'Issue number to check for duplicates'
required: true
type: string

jobs:
detect-issue:
if: >-
(github.event_name == 'workflow_dispatch' &&
github.repository == 'opensearch-project/dashboards-reporting') ||
(github.event_name == 'issues' &&
github.event.issue.user.type != 'Bot' &&
github.repository == 'opensearch-project/dashboards-reporting')
uses: opensearch-project/opensearch-build/.github/workflows/issue-dedupe-detect.yml@main
permissions:
contents: read
issues: write
id-token: write
secrets:
BEDROCK_ACCESS_ROLE_ISSUE_DEDUPE: ${{ secrets.BEDROCK_ACCESS_ROLE_ISSUE_DEDUPE }}
with:
issue_number: ${{ inputs.issue_number || '' }}
grace_days: ${{ vars.DUPLICATE_GRACE_DAYS || '7' }}

auto-close-issue:
if: github.event_name == 'schedule' && github.repository == 'opensearch-project/dashboards-reporting'
uses: opensearch-project/opensearch-build/.github/workflows/issue-dedupe-autoclose.yml@main
permissions:
issues: write
with:
grace_days: ${{ vars.DUPLICATE_GRACE_DAYS || '7' }}
30 changes: 30 additions & 0 deletions .github/workflows/pr_review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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/dashboards-reporting'
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/dashboards-reporting'
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'
Loading