Skip to content

Commit

Permalink
feat: Use "Stale" GitHub action (#19628)
Browse files Browse the repository at this point in the history
* remove peril stale stuff

* disable dry run and remove all excempt labels except 'not stale'

* update tag on action
  • Loading branch information
LekoArts authored Nov 26, 2019
1 parent 2a8dd66 commit 315596b
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 264 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/schedule-stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,11 @@ jobs:
steps:
- name: stale
id: stale
uses: gatsbyjs/stale@gatsby-repo-test
uses: gatsbyjs/stale@0.1.0
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DAYS_BEFORE_STALE: 20
DAYS_BEFORE_CLOSE: 10
DRY_RUN: true
OPERATIONS_PER_RUN: 5000
STALE_ISSUE_MESSAGE: |
Hiya!
Expand All @@ -36,10 +35,6 @@ jobs:
Thanks again for being part of the Gatsby community! 💪💜
EXEMPT_ISSUE_LABELS: |
not stale
important
good first issue
no triage
status: confirmed
- name: Post slack report
uses: pullreminders/[email protected]
env:
Expand Down
7 changes: 0 additions & 7 deletions peril.settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"modules": ["@slack/client", "joi", "js-yaml", "date-fns"]
},
"rules": {
"issue_comment": ["peril/rules/not-stale.ts"],
"issues.opened": ["peril/rules/emptybody.ts", "peril/rules/labeler.ts"],
"pull_request.closed (pull_request.merged == true)": [
"peril/rules/invite-collaborator.ts"
Expand Down Expand Up @@ -40,11 +39,5 @@
"gatsbyjs/gatsby@peril/rules/pull-request-on-starter.ts"
]
}
},
"tasks": {
"stale": "peril/tasks/stale.ts"
},
"scheduler": {
"daily": "stale"
}
}
31 changes: 0 additions & 31 deletions peril/rules/not-stale.ts

This file was deleted.

10 changes: 0 additions & 10 deletions peril/rules/run-stale-immediately.ts

This file was deleted.

138 changes: 0 additions & 138 deletions peril/tasks/stale.ts

This file was deleted.

49 changes: 0 additions & 49 deletions peril/tests/not-stale.test.ts

This file was deleted.

23 changes: 0 additions & 23 deletions peril/tests/stale.test.ts

This file was deleted.

0 comments on commit 315596b

Please sign in to comment.