From e08a275d849202cb1a7eb7bf82a2c8e7ac85c6ee Mon Sep 17 00:00:00 2001 From: Michael Gasch Date: Tue, 27 Apr 2021 14:49:57 +0200 Subject: [PATCH] chore: Add stale action Closes: #7 Signed-off-by: Michael Gasch --- .github/workflows/ps-sdk-stale.yaml | 36 +++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/ps-sdk-stale.yaml diff --git a/.github/workflows/ps-sdk-stale.yaml b/.github/workflows/ps-sdk-stale.yaml new file mode 100644 index 0000000..563709e --- /dev/null +++ b/.github/workflows/ps-sdk-stale.yaml @@ -0,0 +1,36 @@ +# ************************************************************************** +# Copyright (c) Cloud Native Foundation. +# SPDX-License-Identifier: Apache-2.0 +# ************************************************************************** + +name: Close Stale + +on: + schedule: + - cron: "0 1 * * *" # daily + +jobs: + stale: + runs-on: "ubuntu-latest" + + steps: + - uses: "actions/stale@v3" + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" + + stale-issue-message: |- + This issue is stale because it has been open for 90 days with no + activity. It will automatically close after 30 more days of + inactivity. Mark as fresh by adding the comment `/remove-lifecycle stale`. + stale-issue-label: "lifecycle/stale" + exempt-issue-labels: "lifecycle/frozen" + + stale-pr-message: |- + This Pull Request is stale because it has been open for 90 days with + no activity. It will automatically close after 30 more days of + inactivity. Mark as fresh by adding the comment `/remove-lifecycle stale`. + stale-pr-label: "lifecycle/stale" + exempt-pr-labels: "lifecycle/frozen" + + days-before-stale: 90 + days-before-close: 30 \ No newline at end of file