Manual Batch Issue Deduplication #5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Manual Batch Issue Deduplication | |
on: | |
workflow_dispatch: | |
inputs: | |
issue_numbers: | |
description: "JSON array of issue numbers to deduplicate (e.g. [101,102,103])" | |
required: true | |
since: | |
description: "Only compare against issues created after this date (ISO 8601, e.g. 2019-05-05T00:00:00Z)" | |
required: false | |
default: "2019-05-05T00:00:00Z" | |
label_as_duplicate: | |
description: "Apply duplicate label if duplicates are found (true/false)" | |
required: false | |
default: "true" | |
permissions: | |
models: read | |
issues: write | |
jobs: | |
deduplicate: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
issue: ${{ fromJson(github.event.inputs.issue_numbers) }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Run GenAI Issue Deduplicator | |
uses: pelikhan/action-genai-issue-dedup@v0 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
github_issue: ${{ matrix.issue }} | |
label_as_duplicate: ${{ github.event.inputs.label_as_duplicate }} | |