Skip to content

Commit e65e65d

Browse files
Create issue closer
1 parent 8c4d42d commit e65e65d

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Delete empty issues
2+
on:
3+
issues:
4+
types:
5+
- opened
6+
jobs:
7+
label_issues:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
issues: write
11+
12+
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')
13+
steps:
14+
- name: Create comment
15+
uses: actions-cool/issues-helper@v3
16+
with:
17+
actions: 'create-comment'
18+
token: ${{ secrets.GITHUB_TOKEN }}
19+
issue-number: ${{ github.event.issue.number }}
20+
body: |
21+
Hello @${{ github.event.issue.user.login }}.
22+
It looks like you've opened an empty issue or one without a unique problem description.
23+
Please understand that this is a popular project, useful to many learners, and empty issues distract maintainers that are trying to help others.
24+
If you would like practice with issues, you can follow github documentation to create your own repo:
25+
https://docs.github.com/en/repositories/creating-and-managing-repositories/creating-a-new-repository
26+
And then in that repo practice creating and editing issues:
27+
https://docs.github.com/en/issues/tracking-your-work-with-issues/configuring-issues/quickstart
28+
29+
We look forward to your future contributions to OSSU, when you are contributing to improve computer science education for learners all over the world!
30+
- name: Close issue
31+
uses: actions-cool/issues-helper@v3
32+
with:
33+
actions: 'close-issue'
34+
token: ${{ secrets.GITHUB_TOKEN }}
35+
issue-number: ${{ github.event.issue.number }}

0 commit comments

Comments
 (0)