-
-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add
needs-reproduction
and invalid
workflows
- Loading branch information
Showing
2 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |