From 3dbf6a1b6a80c55a2f3547d7350cb4eb5de1d23b Mon Sep 17 00:00:00 2001 From: Xianming Zhong Date: Thu, 18 Jun 2020 01:25:11 +0800 Subject: [PATCH] Add GitHub actions to close stale issues/prs (#3029) * prepare stale actions * update messages * Add exempt labels and lighten up comments Co-authored-by: Jay --- .github/workflows/stale.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/stale.yml diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 0000000..c5a90a8 --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,20 @@ +name: 'Close Stale' + +on: + schedule: + - cron: '0 0 * * 1' + +jobs: + auto_close_issues: + runs-on: ubuntu-latest + steps: + - name: Automatically close stale issues/prs + uses: actions/stale@v3 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + stale-issue-message: 'Hello! :wave: \n\nThis issue is being automatically marked as stale because it has not been updated in a while. Please confirm that the issue is still present and reproducible. If no updates or new comments are received the issue will be closed in a few days. \n\nThanks' + stale-pr-message: 'Hello! :wave: \n\nThis pull request is being automatically marked as stale because it has not been updated in a while. Please confirm that the issue is still present and reproducible. If no updates or new comments are received the pull request will be closed in a few days. \n\nThanks' + stale-issue-label: 'status:stale' + stale-pr-label: 'status:stale' + exempt-issue-labels: 'beginner friendly,component:adapter,component:cookies,component:encoding,component:exceptions,component:headers,component:progress events,component:proxy,component:timeout,component:typescript,priority:high,priority:low,status:more info needed,status:possible bug,status:review,status:wont fix,status:work in progress,type:confirmed bug,type:documentation,type:enhancement,type:feature,type:future proposal,type:question,type:regression' + exempt-pr-labels: 'beginner friendly,component:adapter,component:cookies,component:encoding,component:exceptions,component:headers,component:progress events,component:proxy,component:timeout,component:typescript,priority:high,priority:low,status:more info needed,status:possible bug,status:review,status:wont fix,status:work in progress,type:confirmed bug,type:documentation,type:enhancement,type:feature,type:future proposal,type:question,type:regression'