From 37ee35240813a67040ea8a2781fb778c37bfacdf Mon Sep 17 00:00:00 2001 From: calebboyd Date: Sun, 26 Sep 2021 13:58:54 -0500 Subject: [PATCH] build: add workflow for autoclose issues without response --- .github/{FUNDING.yml => funding.yml} | 0 .../bug-report.md | 0 .../feature.md | 0 ...T_TEMPLATE.md => pull_request_template.md} | 0 .github/workflows/auto-close-no-response.yml | 21 +++++++++++++++++++ package-lock.json | 1 + src/fs/patch.ts | 2 +- 7 files changed, 23 insertions(+), 1 deletion(-) rename .github/{FUNDING.yml => funding.yml} (100%) rename .github/{ISSUE_TEMPLATE => issue_template}/bug-report.md (100%) rename .github/{ISSUE_TEMPLATE => issue_template}/feature.md (100%) rename .github/{PULL_REQUEST_TEMPLATE.md => pull_request_template.md} (100%) create mode 100644 .github/workflows/auto-close-no-response.yml diff --git a/.github/FUNDING.yml b/.github/funding.yml similarity index 100% rename from .github/FUNDING.yml rename to .github/funding.yml diff --git a/.github/ISSUE_TEMPLATE/bug-report.md b/.github/issue_template/bug-report.md similarity index 100% rename from .github/ISSUE_TEMPLATE/bug-report.md rename to .github/issue_template/bug-report.md diff --git a/.github/ISSUE_TEMPLATE/feature.md b/.github/issue_template/feature.md similarity index 100% rename from .github/ISSUE_TEMPLATE/feature.md rename to .github/issue_template/feature.md diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/pull_request_template.md similarity index 100% rename from .github/PULL_REQUEST_TEMPLATE.md rename to .github/pull_request_template.md diff --git a/.github/workflows/auto-close-no-response.yml b/.github/workflows/auto-close-no-response.yml new file mode 100644 index 0000000..81dd89c --- /dev/null +++ b/.github/workflows/auto-close-no-response.yml @@ -0,0 +1,21 @@ +name: No Response + +# Both `issue_comment` and `scheduled` event types are required for this Action +# to work properly. +on: + issue_comment: + types: [created] + schedule: + # 9AM Central + - cron: '0 14 * * *' + +jobs: + noResponse: + runs-on: ubuntu-latest + steps: + - uses: lee-dohm/no-response@v0.5.0 + with: + token: ${{ github.token }} + closeComment: 'Closed awaiting response from OP, please open a new issue with the requested information and/or examples' + daysUntilClose: 21 + responseRequiredLabel: more-information-needed diff --git a/package-lock.json b/package-lock.json index 1524b39..3420379 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5,6 +5,7 @@ "requires": true, "packages": { "": { + "name": "nexe", "version": "4.0.0-beta.18", "license": "MIT", "dependencies": { diff --git a/src/fs/patch.ts b/src/fs/patch.ts index 5aeb848..70f53f3 100644 --- a/src/fs/patch.ts +++ b/src/fs/patch.ts @@ -69,7 +69,7 @@ function shimFs(binary: NexeBinary, fs: any = require('fs')) { atime: new Date(stat.atime), mtime: new Date(stat.mtime), ctime: new Date(stat.ctime), - birthtime: new Date(stat.birthtime) + birthtime: new Date(stat.birthtime), } }