From 7d40d9e6484a50e3edb9da6ccc3dd58397676034 Mon Sep 17 00:00:00 2001 From: JohnyP36 <81161435+JohnyP36@users.noreply.github.com> Date: Fri, 19 Jan 2024 06:54:16 +0000 Subject: [PATCH] Update stale.yml --- .github/workflows/stale.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index befc08a..e396ff4 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -1,5 +1,10 @@ name: 'Close Stale Issues' on: + issues: + types: [edited, pinned, unpinned, reopened] + issue_comment: + pull_request: + types: [edited, reopened, synchronize, convert_to_draft, ready_for_review] workflow_dispatch: schedule: - cron: '59 23 1/16 * *' @@ -10,6 +15,10 @@ permissions: jobs: stale: + if: | + contains(github.event.pull_request.labels.*.name, 'stale') || + contains(github.event.issue.labels.*.name, 'stale') || + ${{ github.event_name == 'schedule' }} runs-on: ubuntu-latest steps: - uses: actions/stale@main