From ef0042df4e30952428f2b0b9ffd604510ff79182 Mon Sep 17 00:00:00 2001 From: BIBOLV <49994376+BIBOLV@users.noreply.github.com> Date: Mon, 16 Jan 2023 00:16:17 +0200 Subject: [PATCH] Issue templates and close stale issue action New issue templates and action to close stale issues. Please review texts and parameters before accepting PR. --- .github/ISSUE_TEMPLATE/docker-request.yml | 39 +++++++++++++++++++ .github/ISSUE_TEMPLATE/driver-request.yml | 34 ++++++++++++++++ .github/ISSUE_TEMPLATE/ha-addon-request.yml | 39 +++++++++++++++++++ .github/ISSUE_TEMPLATE/snap-request.yml | 32 +++++++++++++++ .../ISSUE_TEMPLATE/wmbusmeters-request.yml | 39 +++++++++++++++++++ .github/workflows/close_stale_issues.yml | 18 +++++++++ 6 files changed, 201 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/docker-request.yml create mode 100644 .github/ISSUE_TEMPLATE/driver-request.yml create mode 100644 .github/ISSUE_TEMPLATE/ha-addon-request.yml create mode 100644 .github/ISSUE_TEMPLATE/snap-request.yml create mode 100644 .github/ISSUE_TEMPLATE/wmbusmeters-request.yml create mode 100644 .github/workflows/close_stale_issues.yml diff --git a/.github/ISSUE_TEMPLATE/docker-request.yml b/.github/ISSUE_TEMPLATE/docker-request.yml new file mode 100644 index 0000000..cabaef0 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/docker-request.yml @@ -0,0 +1,39 @@ +name: Ticket concerning docker container +description: This is the ticket to create for anything related to docker container +labels: ["docker"] +body: + - type: markdown + attributes: + value: Thanks for taking the time to fill out this request! + - type: dropdown + id: topic + attributes: + label: Type of request + description: Pick the type of request + options: + - Enhancement + - Question + - Bug + validations: + required: true + - type: input + id: os-version + attributes: + label: OS version + description: Specify OS version where docker container is running on + validations: + required: true + - type: input + id: wmbusmeters-version + attributes: + label: wmbusmeters version + description: Specify wmbusmeters version that you are running as docker container + validations: + required: true + - type: textarea + id: descriptiom + attributes: + label: Your message goes here + description: Provide as detailed description as possible. In case of bug - add logs with relevant information as attachment. + validations: + required: true \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/driver-request.yml b/.github/ISSUE_TEMPLATE/driver-request.yml new file mode 100644 index 0000000..f518844 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/driver-request.yml @@ -0,0 +1,34 @@ +name: Ticket concerning device support +description: This is the ticket to create for anything related to meter drivers +labels: ["device support"] +body: + - type: markdown + attributes: + value: Thanks for taking the time to fill out this request! + - type: dropdown + id: topic + attributes: + label: Type of request + description: Pick the type of request + options: + - New device support + - Existing device improvement + validations: + required: true + - type: textarea + id: descriptiom + attributes: + label: Meter description + description: Please describe in details meter - manuafacturer, model name, link to descripton, etc. If available also add as much details about wmbus message format and fields. + placeholder: Detailed meter description + validations: + required: true + - type: textarea + id: telegrams + attributes: + label: Logged telegrams from meter in decrypted format + description: In order to log telegrams, set `logtelegrams=true` in configuration and gather at least 10 telegrams from meter. Check that telegrams are not encrypted, it can be verified in logs or by pasting them [here](https://wmbusmeters.org/). If telegram is encrypted you need to get encryption key, decrypt messages and them post them as we can not do anything with encrypted ones. + placeholder: Logged telegrams + render: shell + validations: + required: true diff --git a/.github/ISSUE_TEMPLATE/ha-addon-request.yml b/.github/ISSUE_TEMPLATE/ha-addon-request.yml new file mode 100644 index 0000000..cbfc2f5 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/ha-addon-request.yml @@ -0,0 +1,39 @@ +name: Ticket concerning Home Assistant addon +description: This is the ticket to create for anything related to ha-addon +labels: ["ha-addon"] +body: + - type: markdown + attributes: + value: Thanks for taking the time to fill out this request! + - type: dropdown + id: topic + attributes: + label: Type of request + description: Pick the type of request + options: + - Enhancement + - Question + - Bug + validations: + required: true + - type: input + id: haos-version + attributes: + label: HAOS version + description: Specify Home Assistant Operating System that you are running + validations: + required: true + - type: input + id: wmbusmeters-version + attributes: + label: wmbusmeters version + description: Specify wmbusmeters version that you are running as addon + validations: + required: true + - type: textarea + id: descriptiom + attributes: + label: Your message goes here + description: Provide as detailed description as possible. In case of bug - add logs with relevant information as attachment. + validations: + required: true \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/snap-request.yml b/.github/ISSUE_TEMPLATE/snap-request.yml new file mode 100644 index 0000000..efd2c0e --- /dev/null +++ b/.github/ISSUE_TEMPLATE/snap-request.yml @@ -0,0 +1,32 @@ +name: Ticket concerning snap package +description: This is the ticket to create for anything related to snap package +labels: ["snap"] +body: + - type: markdown + attributes: + value: Thanks for taking the time to fill out this request! + - type: dropdown + id: topic + attributes: + label: Type of request + description: Pick the type of request + options: + - Enhancement + - Question + - Bug + validations: + required: true + - type: input + id: wmbusmeters-version + attributes: + label: wmbusmeters version + description: Specify wmbusmeters version that you are running as snap package + validations: + required: true + - type: textarea + id: descriptiom + attributes: + label: Your message goes here + description: Provide as detailed description as possible. In case of bug - add logs with relevant information as attachment. + validations: + required: true \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/wmbusmeters-request.yml b/.github/ISSUE_TEMPLATE/wmbusmeters-request.yml new file mode 100644 index 0000000..2905337 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/wmbusmeters-request.yml @@ -0,0 +1,39 @@ +name: Ticket concerning wmbusmeters +description: This is the ticket to create for anything related to wmbusmeters itself +labels: ["wmbusmeters"] +body: + - type: markdown + attributes: + value: Thanks for taking the time to fill out this request! + - type: dropdown + id: topic + attributes: + label: Type of request + description: Pick the type of request + options: + - Enhancement + - Question + - Bug + validations: + required: true + - type: input + id: os-version + attributes: + label: OS version + description: Specify OS version that you are running + validations: + required: true + - type: input + id: wmbusmeters-version + attributes: + label: wmbusmeters version + description: Specify wmbusmeters version that you are running + validations: + required: true + - type: textarea + id: descriptiom + attributes: + label: Your message goes here + description: Please provide as detailed description as possible. In case of bug - add logs with relevant information as attachment. + validations: + required: true \ No newline at end of file diff --git a/.github/workflows/close_stale_issues.yml b/.github/workflows/close_stale_issues.yml new file mode 100644 index 0000000..751885f --- /dev/null +++ b/.github/workflows/close_stale_issues.yml @@ -0,0 +1,18 @@ +name: 'Close stale issues' +on: + schedule: + - cron: '30 1 * * *' + +jobs: + stale: + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v7 + with: + stale-issue-message: 'This issue is stale because it has been open for 2 month with no activity. Remove stale label or comment or this will be closed in 1 month.' + close-issue-message: 'This issue was closed because it has been stalled for 1 month with no activity.' + days-before-stale: 60 + days-before-close: 30 + exempt-issue-labels: 'enhancement' + days-before-pr-stale: -1 + days-before-pr-close: -1