From f3903a4e389044a37baa44bb00c943e11efe62df Mon Sep 17 00:00:00 2001 From: Remy Sharp Date: Thu, 8 Jul 2021 21:38:59 +0100 Subject: [PATCH 1/5] chore: update stalebot The OG stalebot seemed to crash out. --- .github/stale.yml | 54 +++++++++++++++++++++++++++++------------------ 1 file changed, 34 insertions(+), 20 deletions(-) diff --git a/.github/stale.yml b/.github/stale.yml index 9046dde3..b53c3c2a 100644 --- a/.github/stale.yml +++ b/.github/stale.yml @@ -1,21 +1,35 @@ -# Number of days of inactivity before an issue becomes stale -daysUntilStale: 14 -# Number of days of inactivity before a stale issue is closed -daysUntilClose: 7 -# Issues with these labels will never be considered stale -exemptLabels: - - pinned - - security - - not-stale -# Label to use when marking an issue as stale -staleLabel: stale -# Comment to post when marking an issue as stale. Set to `false` to disable -markComment: > - This issue has been automatically marked as idle and stale because it hasn't - had any recent activity. It will be automtically closed if no further activity - occurs. If you think this is wrong, or the problem still persists, just pop - a reply in the comments and @remy will (try!) to follow up. +name: Mark stale issues and pull requests - Thank you for contributing <3 -# Comment to post when closing a stale issue. Set to `false` to disable -closeComment: false +on: + schedule: + - cron: "0 * * * *" + +jobs: + stale: + + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + + steps: + - uses: actions/stale@v3 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + days-before-stale: 14 + days-before-close: 30 + days-before-pr-close: -1 + stale-issue-label: 'stale' + stale-pr-label: 'stale' + stale-issue-message: > + This issue has been automatically marked as idle and stale because it hasn't + had any recent activity. It will be automtically closed if no further activity + occurs. If you think this is wrong, or the problem still persists, just pop + a reply in the comments and @remy will (try!) to follow up. + + Thank you for contributing <3 + close-issue-message: 'Automatically closing this issue due to lack of activity' + exempt-issue-labels: + - not-stale + - security + - pinned From 08f65994c7605d03db02e4541a142d50a567e9e3 Mon Sep 17 00:00:00 2001 From: Remy Sharp Date: Thu, 8 Jul 2021 21:40:25 +0100 Subject: [PATCH 2/5] chore: move workflow to dir --- .github/{ => workflows}/stale.yml | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/{ => workflows}/stale.yml (100%) diff --git a/.github/stale.yml b/.github/workflows/stale.yml similarity index 100% rename from .github/stale.yml rename to .github/workflows/stale.yml From 79ad546326f457edf87883a9a5a8f4c1d7a47fc5 Mon Sep 17 00:00:00 2001 From: Remy Sharp Date: Fri, 9 Jul 2021 09:39:15 +0100 Subject: [PATCH 3/5] chore: fix stale.yml Wrong format in except labels --- .github/workflows/stale.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index b53c3c2a..4a37389d 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -29,7 +29,4 @@ jobs: Thank you for contributing <3 close-issue-message: 'Automatically closing this issue due to lack of activity' - exempt-issue-labels: - - not-stale - - security - - pinned + exempt-issue-labels: not-stale,security,pinned From 46791d619bd1d79c35bc0ffc23b868c5048dd82a Mon Sep 17 00:00:00 2001 From: Remy Sharp Date: Fri, 9 Jul 2021 10:24:05 +0100 Subject: [PATCH 4/5] chore: update issue template [skip ci] --- .github/ISSUE_TEMPLATE/bug_report.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 8fc95e8b..d85b2bbb 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -14,9 +14,9 @@ assignees: '' gulp, grunt, webpack, etc. Thank you so much <3 --> +- Versions: - `nodemon -v`: -- `node -v`: -- Operating system/terminal environment: +- Operating system/terminal environment (powershell, gitshell, etc): - Using Docker? What image: - Command you ran: From f523d0ea49b1569af141a056bc400e7cb538aa9a Mon Sep 17 00:00:00 2001 From: Remy Sharp Date: Fri, 9 Jul 2021 17:19:02 +0100 Subject: [PATCH 5/5] fix: ensure numerical OS version check --- lib/monitor/run.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/monitor/run.js b/lib/monitor/run.js index 491b7029..464e7190 100644 --- a/lib/monitor/run.js +++ b/lib/monitor/run.js @@ -16,7 +16,7 @@ var restart = null; var psTree = require('pstree.remy'); var path = require('path'); var signals = require('./signals'); -const osRelease = require('os').release(); +const osRelease = parseInt(require('os').release().split(".")[0], 10); function run(options) { var cmd = config.command.raw;