mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
[actions_skip] [skip_ci] add issue moderation stuff
This commit is contained in:
parent
a49f4668e4
commit
871b6c41db
2 changed files with 49 additions and 3 deletions
15
.github/ISSUE_TEMPLATE/application-bug.yml
vendored
15
.github/ISSUE_TEMPLATE/application-bug.yml
vendored
|
@ -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
|
||||
|
||||
|
@ -57,6 +57,15 @@ body:
|
|||
Example: "Android 12"
|
||||
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
|
||||
|
|
37
.github/ISSUE_TEMPLATE/issue-action.yml
vendored
Normal file
37
.github/ISSUE_TEMPLATE/issue-action.yml
vendored
Normal 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"
|
Loading…
Reference in a new issue