diff --git a/.github/workflows/invalid.yml b/.github/workflows/invalid.yml new file mode 100644 index 00000000..99710271 --- /dev/null +++ b/.github/workflows/invalid.yml @@ -0,0 +1,23 @@ +name: Close incomplete issues + +on: + issues: + types: + - labeled + +permissions: + issues: write + +jobs: + add-comment: + runs-on: ubuntu-latest + if: github.event.label.name == 'invalid' + steps: + - name: Close Issue + uses: peter-evans/close-issue@v3 + with: + issue-number: ${{ github.event.issue.number }} + comment: | + > I understand that incomplete issues (e.g. without reproduction) are closed. + + This issue is closed because not enough information was provided. diff --git a/.github/workflows/needs-reproduction.yml b/.github/workflows/needs-reproduction.yml new file mode 100644 index 00000000..37d46b29 --- /dev/null +++ b/.github/workflows/needs-reproduction.yml @@ -0,0 +1,23 @@ +name: Add comment when issue is labeled needs-reproduction + +on: + issues: + types: + - labeled + +permissions: + issues: write + +jobs: + add-comment: + runs-on: ubuntu-latest + if: github.event.label.name == 'needs: reproduction' + steps: + - name: Add comment + uses: peter-evans/create-or-update-comment@v3 + with: + issue-number: ${{ github.event.issue.number }} + body: | + Please provide a [Minimal, Reproducible Example](https://stackoverflow.com/help/minimal-reproducible-example) + using [this template](https://github.com/capawesome-team/.capacitor-app) in a public GitHub repository + so we can debug the issue.