Skip to content

Commit

Permalink
ci: add needs-reproduction and invalid workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
robingenz committed Oct 17, 2023
1 parent 5919be6 commit e379a20
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/invalid.yml
Original file line number Diff line number Diff line change
@@ -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.
23 changes: 23 additions & 0 deletions .github/workflows/needs-reproduction.yml
Original file line number Diff line number Diff line change
@@ -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.

0 comments on commit e379a20

Please sign in to comment.