diff --git a/.github/ISSUE_TEMPLATE/application-bug.yml b/.github/ISSUE_TEMPLATE/application-bug.yml index 57608890..931db3bd 100644 --- a/.github/ISSUE_TEMPLATE/application-bug.yml +++ b/.github/ISSUE_TEMPLATE/application-bug.yml @@ -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 diff --git a/.github/ISSUE_TEMPLATE/issue-action.yml b/.github/ISSUE_TEMPLATE/issue-action.yml new file mode 100644 index 00000000..92df27c6 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/issue-action.yml @@ -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" \ No newline at end of file