[actions_skip] [skip_ci] add issue moderation stuff

This commit is contained in:
Cloudburst 2022-08-20 10:59:36 +02:00 committed by GitHub
parent a49f4668e4
commit 871b6c41db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 49 additions and 3 deletions

View file

@ -39,11 +39,11 @@ body:
- type: input
id: cloudstream-version
attributes:
label: Cloudstream version
label: Cloudstream version and commit hash
description: |
You can find your Cloudstream version in **Settings**.
You can find your Cloudstream version in **Settings**. Commit hash is the 7 character string next to the version.
placeholder: |
Example: "2.8.16"
Example: "2.8.16 a49f466"
validations:
required: true
@ -58,6 +58,15 @@ body:
validations:
required: true
- type: textarea
id: logcat
attributes:
label: Logcat
placeholder: |
To get logcat please go to Settings > Updates and backup > Show logcat 🐈.
You can attach a file or link to some pastebin service if the file is too big.
render: java
- type: textarea
id: other-details
attributes:

37
.github/ISSUE_TEMPLATE/issue-action.yml vendored Normal file
View file

@ -0,0 +1,37 @@
name: Issue automatic actions
on:
issues:
types: [opened, edited]
jobs:
issue-moderator:
runs-on: ubuntu-latest
steps:
- name: Generate access token
id: generate_token
uses: tibdex/github-app-token@v1
with:
app_id: ${{ secrets.GH_APP_ID }}
private_key: ${{ secrets.GH_APP_KEY }}
- name: Similarity analysis
uses: actions-cool/issues-similarity-analysis@v1
with:
token: ${{ steps.generate_token.outputs.token }}
filter-threshold: 0.5
title-excludes: ''
comment-title: '### Your issue looks similar to these issues. Please close if duplicate:'
comment-body: '${index}. ${similarity} #${number}'
- name: Add eyes reaction to all issues
uses: actions-cool/issues-helper@v2
with:
actions: 'update-issue'
token: ${{ steps.generate_token.outputs.token }}
contents: 'eyes'
- name: Remove duplicates
uses: actions-cool/issues-helper@v2
with:
actions: 'mark-duplicate'
token: ${{ steps.generate_token.outputs.token }}
close-issue: true
duplicate-command: "/d"