From 55b8b603770b573003bbec82496b15a40cafa06f Mon Sep 17 00:00:00 2001 From: nlebovits Date: Tue, 1 Oct 2024 12:28:51 -0400 Subject: [PATCH 1/2] update workflow to flag both stale prs and issues --- .github/workflows/flag-stale-prs.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/flag-stale-prs.yml b/.github/workflows/flag-stale-prs.yml index 68f8badc..e47195de 100644 --- a/.github/workflows/flag-stale-prs.yml +++ b/.github/workflows/flag-stale-prs.yml @@ -1,8 +1,9 @@ -name: Flag Stale PRs +name: Flag Stale PRs and Issues on: schedule: - cron: '0 0 * * *' # Runs every day at midnight + workflow_dispatch: jobs: stale: @@ -14,4 +15,6 @@ jobs: days-before-stale: 7 stale-pr-message: 'This PR has been marked as stale because it has been open for 7 days with no activity.' stale-pr-label: 'stale' - only-labels: 'backend, frontend' + days-before-issue-stale: 30 + stale-issue-message: 'This issue has been marked as stale because it has been open for 30 days with no activity.' + stale-issue-label: 'stale' From cb8c64b80fa28e42d39e08c66429840eec8caddd Mon Sep 17 00:00:00 2001 From: nlebovits Date: Tue, 1 Oct 2024 12:30:36 -0400 Subject: [PATCH 2/2] add option to trigger from specific branch --- .github/workflows/flag-stale-prs.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/flag-stale-prs.yml b/.github/workflows/flag-stale-prs.yml index e47195de..a029a2a9 100644 --- a/.github/workflows/flag-stale-prs.yml +++ b/.github/workflows/flag-stale-prs.yml @@ -4,6 +4,11 @@ on: schedule: - cron: '0 0 * * *' # Runs every day at midnight workflow_dispatch: + inputs: + branch: + description: 'The branch to run this workflow on' + required: true + default: 'main' jobs: stale: