From a856b6312528bf49018e0daee52bb93250aedc61 Mon Sep 17 00:00:00 2001 From: Kengo TODA Date: Tue, 28 Dec 2021 09:56:27 +0800 Subject: [PATCH] ci: automate management regarding stale PR and issues refs #1856 --- .github/workflows/ticket-management.yml | 26 +++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/ticket-management.yml diff --git a/.github/workflows/ticket-management.yml b/.github/workflows/ticket-management.yml new file mode 100644 index 00000000000..f554fc100d7 --- /dev/null +++ b/.github/workflows/ticket-management.yml @@ -0,0 +1,26 @@ +name: 'Automated ticket management' +on: + schedule: + # Run the check every day. + # We use the release date of the first SpotBugs release, + # just to avoid periods of high load. + # https://github.com/spotbugs/spotbugs/releases/tag/3.1.0 + - cron: '25 10 * * *' + +permissions: + issues: write + pull-requests: write + +jobs: + stale-pr-and-issue: + # Mark stale issues and PRs, then close them 30 days later. + runs-on: ubuntu-latest + steps: + - uses: actions/stale@v4 + with: + days-before-stale: 30 + days-before-close: 30 + stale-pr-label: 'Stale' + stale-issue-label: 'need info' + only-issue-labels: 'need info' + exempt-all-pr-assignees: true