From 51caa5b50b94b6ffb046a9a78ce9579c5710068a Mon Sep 17 00:00:00 2001 From: Kayla Cinnamon Date: Mon, 22 Sep 2025 14:40:28 -0700 Subject: [PATCH] Add workflow for automatic issue deduplication (#41942) ## Summary of the Pull Request Tested this in my fork, this'll run the dedup AI model on any new issue that's been filed or re-opened. If it finds a duplicate, it'll label it with "duplicate" and comment which issues it dupes to. This won't close the issue. ## PR Checklist - [ ] Closes: #xxx - [ ] **Communication:** I've discussed this with core contributors already. If the work hasn't been agreed, this work might be rejected - [ ] **Tests:** Added/updated and all pass - [ ] **Localization:** All end-user-facing strings can be localized - [ ] **Dev docs:** Added/updated - [ ] **New binaries:** Added on the required places - [ ] [JSON for signing](https://github.com/microsoft/PowerToys/blob/main/.pipelines/ESRPSigning_core.json) for new binaries - [ ] [WXS for installer](https://github.com/microsoft/PowerToys/blob/main/installer/PowerToysSetup/Product.wxs) for new binaries and localization folder - [ ] [YML for CI pipeline](https://github.com/microsoft/PowerToys/blob/main/.pipelines/ci/templates/build-powertoys-steps.yml) for new test projects - [ ] [YML for signed pipeline](https://github.com/microsoft/PowerToys/blob/main/.pipelines/release.yml) - [ ] **Documentation updated:** If checked, please file a pull request on [our docs repo](https://github.com/MicrosoftDocs/windows-uwp/tree/docs/hub/powertoys) and link it here: #xxx ## Detailed Description of the Pull Request / Additional comments ## Validation Steps Performed --- .../automatic-issue-deduplication.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/automatic-issue-deduplication.yml diff --git a/.github/workflows/automatic-issue-deduplication.yml b/.github/workflows/automatic-issue-deduplication.yml new file mode 100644 index 0000000000..88ec3e2f23 --- /dev/null +++ b/.github/workflows/automatic-issue-deduplication.yml @@ -0,0 +1,19 @@ +name: Automatic New Issue Deduplication +on: + issues: + types: [opened, reopened] +permissions: + models: read + issues: write +concurrency: + group: ${{ github.workflow }}-${{ github.event.issue.number }} + cancel-in-progress: true +jobs: + deduplicate: + runs-on: ubuntu-latest + steps: + - name: Run Deduplicate Action + uses: pelikhan/action-genai-issue-dedup@v0 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + label_as_duplicate: true