Create auto_close_empty_issues.yml (#2756)

* Create auto_close_empty_issues.yml

* updating DIRECTORY.md

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
This commit is contained in:
Richard Wheatley 2020-10-04 15:20:36 +01:00 committed by GitHub
parent e9865ae611
commit 3b0169549e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 1 deletions

View File

@ -0,0 +1,20 @@
# GitHub Action that uses close-issue auto-close empty issues after they are opened.
# If the issue body text is empty the Action auto-closes it and sends a notification.
# Otherwise if the issue body is not empty, it does nothing and the issue remains open.
# https://github.com/marketplace/actions/close-issue
name: auto_close_empty_issues
on:
issues:
types: [opened]
jobs:
check-issue-body-not-empty:
runs-on: ubuntu-latest
steps:
- if: github.event.issue.body == 0
name: Close Issue
uses: peter-evans/close-issue@v1
with:
comment: |
Issue body must contain content.
Auto-closing this issue.

View File

@ -547,6 +547,8 @@
* Problem 11
* [Sol1](https://github.com/TheAlgorithms/Python/blob/master/project_euler/problem_11/sol1.py)
* [Sol2](https://github.com/TheAlgorithms/Python/blob/master/project_euler/problem_11/sol2.py)
* Problem 112
* [Sol1](https://github.com/TheAlgorithms/Python/blob/master/project_euler/problem_112/sol1.py)
* Problem 12
* [Sol1](https://github.com/TheAlgorithms/Python/blob/master/project_euler/problem_12/sol1.py)
* [Sol2](https://github.com/TheAlgorithms/Python/blob/master/project_euler/problem_12/sol2.py)
@ -691,7 +693,6 @@
* [External Sort](https://github.com/TheAlgorithms/Python/blob/master/sorts/external_sort.py)
* [Gnome Sort](https://github.com/TheAlgorithms/Python/blob/master/sorts/gnome_sort.py)
* [Heap Sort](https://github.com/TheAlgorithms/Python/blob/master/sorts/heap_sort.py)
* [I Sort](https://github.com/TheAlgorithms/Python/blob/master/sorts/i_sort.py)
* [Insertion Sort](https://github.com/TheAlgorithms/Python/blob/master/sorts/insertion_sort.py)
* [Iterative Merge Sort](https://github.com/TheAlgorithms/Python/blob/master/sorts/iterative_merge_sort.py)
* [Merge Insertion Sort](https://github.com/TheAlgorithms/Python/blob/master/sorts/merge_insertion_sort.py)