-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8c4d42d
commit e65e65d
Showing
1 changed file
with
35 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,35 @@ | ||
name: Delete empty issues | ||
on: | ||
issues: | ||
types: | ||
- opened | ||
jobs: | ||
label_issues: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
issues: write | ||
|
||
if: github.event.issue.body == '' || contains(github.event.issue.body, 'Give a 1 sentence description of a problem with the current OSSU Curriculum. Successful critiques of the curriculum will point out ways that OSSU is failing to uphold') | ||
steps: | ||
- name: Create comment | ||
uses: actions-cool/issues-helper@v3 | ||
with: | ||
actions: 'create-comment' | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
issue-number: ${{ github.event.issue.number }} | ||
body: | | ||
Hello @${{ github.event.issue.user.login }}. | ||
It looks like you've opened an empty issue or one without a unique problem description. | ||
Please understand that this is a popular project, useful to many learners, and empty issues distract maintainers that are trying to help others. | ||
If you would like practice with issues, you can follow github documentation to create your own repo: | ||
https://docs.github.com/en/repositories/creating-and-managing-repositories/creating-a-new-repository | ||
And then in that repo practice creating and editing issues: | ||
https://docs.github.com/en/issues/tracking-your-work-with-issues/configuring-issues/quickstart | ||
We look forward to your future contributions to OSSU, when you are contributing to improve computer science education for learners all over the world! | ||
- name: Close issue | ||
uses: actions-cool/issues-helper@v3 | ||
with: | ||
actions: 'close-issue' | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
issue-number: ${{ github.event.issue.number }} |