From 25250a03aed4d52e3470e339fd741c3fd52a0c9e Mon Sep 17 00:00:00 2001 From: Richard Wheatley Date: Sun, 4 Oct 2020 15:01:23 +0100 Subject: [PATCH 1/2] Create auto_close_empty_issues.yml --- .github/workflows/auto_close_empty_issues.yml | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/auto_close_empty_issues.yml diff --git a/.github/workflows/auto_close_empty_issues.yml b/.github/workflows/auto_close_empty_issues.yml new file mode 100644 index 000000000000..bd2e72791478 --- /dev/null +++ b/.github/workflows/auto_close_empty_issues.yml @@ -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. From 15eae39574d146da91876d2a4308264c73c9ddaf Mon Sep 17 00:00:00 2001 From: github-actions <${GITHUB_ACTOR}@users.noreply.github.com> Date: Sun, 4 Oct 2020 14:01:44 +0000 Subject: [PATCH 2/2] updating DIRECTORY.md --- DIRECTORY.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/DIRECTORY.md b/DIRECTORY.md index 37eaadb89786..1dd1289ab36c 100644 --- a/DIRECTORY.md +++ b/DIRECTORY.md @@ -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)