summaryrefslogtreecommitdiffstats
path: root/.github/workflows/auto-close-duplicate.yaml
diff options
context:
space:
mode:
authorCaian Benedicto <caianbene@gmail.com>2024-12-13 18:29:28 -0300
committerCaian Benedicto <caianbene@gmail.com>2024-12-13 20:26:52 -0300
commitd7f5cdc2f971af524c496aaeb25226eb9f8236df (patch)
tree1e69d1088ee67407b1058f490cc188cd1dd4e287 /.github/workflows/auto-close-duplicate.yaml
parent78773d732672d8985795fb040a39dd7e946c7b7c (diff)
parent98926047586154269bb269d01e3e52e60e044035 (diff)
downloadinvidious-d7f5cdc2f971af524c496aaeb25226eb9f8236df.tar.gz
invidious-d7f5cdc2f971af524c496aaeb25226eb9f8236df.tar.bz2
invidious-d7f5cdc2f971af524c496aaeb25226eb9f8236df.zip
Merge branch 'master' into unix-sockets
Diffstat (limited to '.github/workflows/auto-close-duplicate.yaml')
-rw-r--r--.github/workflows/auto-close-duplicate.yaml37
1 files changed, 37 insertions, 0 deletions
diff --git a/.github/workflows/auto-close-duplicate.yaml b/.github/workflows/auto-close-duplicate.yaml
new file mode 100644
index 00000000..2eea099e
--- /dev/null
+++ b/.github/workflows/auto-close-duplicate.yaml
@@ -0,0 +1,37 @@
+name: Close duplicates
+on:
+ issues:
+ types: [opened]
+jobs:
+ run:
+ runs-on: ubuntu-latest
+ permissions: write-all
+ steps:
+ - uses: iv-org/close-potential-duplicates@v1
+ with:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ # Issue title filter work with anymatch https://www.npmjs.com/package/anymatch.
+ # Any matched issue will stop detection immediately.
+ # You can specify multi filters in each line.
+ filter: ''
+ # Exclude keywords in title before detecting.
+ exclude: ''
+ # Label to set, when potential duplicates are detected.
+ label: duplicate
+ # Get issues with state to compare. Supported state: 'all', 'closed', 'open'.
+ state: open
+ # If similarity is higher than this threshold([0,1]), issue will be marked as duplicate.
+ threshold: 0.9
+ # Reactions to be add to comment when potential duplicates are detected.
+ # Available reactions: "-1", "+1", "confused", "laugh", "heart", "hooray", "rocket", "eyes"
+ reactions: ''
+ close: true
+ # Comment to post when potential duplicates are detected.
+ comment: |
+ Hello, your issue is a duplicate of this/these issue(s): {{#issues}}
+ - #{{ number }} [accuracy: {{ accuracy }}%]
+ {{/issues}}
+
+ If this is a mistake please explain why and ping @\unixfox, @\SamantazFox and @\TheFrenchGhosty.
+
+ Please refrain from opening new issues, it won't help in solving your problem.