diff --git a/.editorconfig b/.editorconfig index e99fe5d60..afb2723bf 100644 --- a/.editorconfig +++ b/.editorconfig @@ -5,7 +5,7 @@ charset = utf-8 end_of_line = lf indent_size = 4 indent_style = tab -insert_final_newline = false +insert_final_newline = true max_line_length = 120 tab_width = 4 # noinspection EditorConfigKeyCorrectness diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md new file mode 100644 index 000000000..e32589680 --- /dev/null +++ b/.github/ISSUE_TEMPLATE.md @@ -0,0 +1,29 @@ +**PLEASE READ THIS** + +I acknowledge that: + +- I have updated to the latest version of the app (https://github.com/KotatsuApp/Kotatsu/releases/latest) +- If this is an issue with a parser, that I should be opening an issue in https://github.com/KotatsuApp/kotatsu-parsers +- I have searched the existing issues and this is new ticket **NOT** a duplicate or related to another open or closed issue +- I will fill out the title and the information in this template + +Note that the issue will be automatically closed if you do not fill out the title or requested information. + +**DELETE THIS SECTION IF YOU HAVE READ AND ACKNOWLEDGED IT** + +--- + +## Device information +* Kotatsu version: ? +* Android version: ? +* Device: ? + +## Steps to reproduce +1. First step +2. Second step + +## Issue/Request +? + +## Other details +Additional details and attachments. \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index b6d4254a1..9af821d54 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -1,5 +1,5 @@ blank_issues_enabled: false contact_links: - name: ⚠️ Source issue - url: https://github.com/nv95/kotatsu-parsers/issues/new - about: Issues and requests for sources should be opened in the kotatsu-parsers repository instead \ No newline at end of file + url: https://github.com/KotatsuApp/kotatsu-parsers/issues/new + about: If you have troubles with a manga parser or want to propose new manga source, please open an issue in the kotatsu-parsers repository instead \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/report_bug.yml b/.github/ISSUE_TEMPLATE/report_bug.yml new file mode 100644 index 000000000..261f51945 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/report_bug.yml @@ -0,0 +1,64 @@ +name: 🐞 Bug report +description: Report a bug in Kotatsu +labels: [bug] +body: + + - type: textarea + id: summary + attributes: + label: Brief summary + description: Please describe, what went wrong + validations: + required: true + + - type: textarea + id: reproduce-steps + attributes: + label: Steps to reproduce + description: Please provide a way to reproduce this issue. Screenshots or videos can be very helpful + placeholder: | + Example: + 1. First step + 2. Second step + 3. Issue here + validations: + required: false + + + - type: input + id: kotatsu-version + attributes: + label: Kotatsu version + description: You can find your Kotatsu version in **Settings → About**. + placeholder: | + Example: "3.3" + validations: + required: true + + - type: input + id: android-version + attributes: + label: Android version + description: You can find this somewhere in your Android settings. + placeholder: | + Example: "12.0" + validations: + required: true + + - type: input + id: device + attributes: + label: Device + description: List your device and model. + placeholder: | + Example: "LG Nexus 5X" + validations: + required: false + + - type: checkboxes + id: acknowledgements + attributes: + label: Acknowledgements + options: + - label: I have searched the existing issues and this is a new ticket, **NOT** a duplicate or related to another open issue. + required: true \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/report_issue.yml b/.github/ISSUE_TEMPLATE/report_issue.yml deleted file mode 100644 index c640ff3c0..000000000 --- a/.github/ISSUE_TEMPLATE/report_issue.yml +++ /dev/null @@ -1,93 +0,0 @@ -name: 🐞 Issue report -description: Report an issue in Kotatsu -labels: [bug] -body: - - - type: textarea - id: reproduce-steps - attributes: - label: Steps to reproduce - description: Provide an example of the issue. - placeholder: | - Example: - 1. First step - 2. Second step - 3. Issue here - validations: - required: true - - - type: textarea - id: expected-behavior - attributes: - label: Expected behavior - description: Explain what you should expect to happen. - placeholder: | - Example: - "This should happen..." - validations: - required: true - - - type: textarea - id: actual-behavior - attributes: - label: Actual behavior - description: Explain what actually happens. - placeholder: | - Example: - "This happened instead..." - validations: - required: true - - - type: input - id: kotatsu-version - attributes: - label: Kotatsu version - description: You can find your Kotatsu version in **Settings → About**. - placeholder: | - Example: "3.2.3" - validations: - required: true - - - type: input - id: android-version - attributes: - label: Android version - description: You can find this somewhere in your Android settings. - placeholder: | - Example: "Android 12" - validations: - required: true - - - type: input - id: device - attributes: - label: Device - description: List your device and model. - placeholder: | - Example: "LG Nexus 5X" - validations: - required: true - - - type: textarea - id: other-details - attributes: - label: Other details - placeholder: | - Additional details and attachments. - - - type: checkboxes - id: acknowledgements - attributes: - label: Acknowledgements - description: Read this carefully, we will close and ignore your issue if you skimmed through this. - options: - - label: I have searched the existing issues and this is a new ticket, **NOT** a duplicate or related to another open issue. - required: true - - label: I have written a short but informative title. - required: true - - label: If this is an issue with a source, I should be opening an issue in the [parsers repository](https://github.com/nv95/kotatsu-parsers/issues/new). - required: true - - label: I have updated the app to version **[3.2.3](https://github.com/nv95/Kotatsu/releases/latest)**. - required: true - - label: I will fill out all of the requested information in this form. - required: true \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/request_feature.yml b/.github/ISSUE_TEMPLATE/request_feature.yml index bae1b501c..a8539d394 100644 --- a/.github/ISSUE_TEMPLATE/request_feature.yml +++ b/.github/ISSUE_TEMPLATE/request_feature.yml @@ -1,5 +1,5 @@ name: ⭐ Feature request -description: Suggest a feature to improve Kotatsu +description: Suggest a new idea how to improve Kotatsu labels: [feature request] body: @@ -14,13 +14,6 @@ body: validations: required: true - - type: textarea - id: other-details - attributes: - label: Other details - placeholder: | - Additional details and attachments. - - type: checkboxes id: acknowledgements attributes: @@ -28,12 +21,4 @@ body: description: Read this carefully, we will close and ignore your issue if you skimmed through this. options: - label: I have searched the existing issues and this is a new ticket, **NOT** a duplicate or related to another open issue. - required: true - - label: I have written a short but informative title. - required: true - - label: If this is an issue with a source, I should be opening an issue in the [parsers repository](https://github.com/nv95/kotatsu-parsers/issues/new). - required: true - - label: I have updated the app to version **[3.2.3](https://github.com/nv95/Kotatsu/releases/latest)**. - required: true - - label: I will fill out all of the requested information in this form. required: true \ No newline at end of file diff --git a/.github/workflows/issue_moderator.yml b/.github/workflows/issue_moderator.yml new file mode 100644 index 000000000..ef256ed06 --- /dev/null +++ b/.github/workflows/issue_moderator.yml @@ -0,0 +1,29 @@ +name: Issue moderator + +on: + issues: + types: [opened, edited, reopened] + issue_comment: + types: [created] + +jobs: + moderate: + runs-on: ubuntu-latest + steps: + - name: Moderate issues + uses: tachiyomiorg/issue-moderator-action@v1 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + auto-close-rules: | + [ + { + "type": "body", + "regex": ".*DELETE THIS SECTION IF YOU HAVE READ AND ACKNOWLEDGED IT.*", + "message": "The acknowledgment section was not removed." + }, + { + "type": "body", + "regex": ".*\\* (Kotatsu version|Android version|Device): \\?.*", + "message": "Requested information in the template was not filled out." + } + ] \ No newline at end of file diff --git a/.gitignore b/.gitignore index 3ba4daee9..5611db9cb 100644 --- a/.gitignore +++ b/.gitignore @@ -6,11 +6,14 @@ /.idea/dictionaries /.idea/modules.xml /.idea/misc.xml +/.idea/discord.xml /.idea/workspace.xml /.idea/navEditor.xml /.idea/assetWizardSettings.xml /.idea/kotlinScripting.xml /.idea/deploymentTargetDropDown.xml +/.idea/androidTestResultsUserPreferences.xml +/.idea/render.experimental.xml .DS_Store /build /captures diff --git a/.idea/gradle.xml b/.idea/gradle.xml index 6e5389ed9..a0de2a152 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -7,7 +7,7 @@