From 19bbf246b72b6d2ab67385881f461a2d403fa6e8 Mon Sep 17 00:00:00 2001 From: Dave Ogle Date: Mon, 29 Jul 2024 08:39:42 +0100 Subject: [PATCH] New workflow to close issues tagged with "meeting" after 14 days. --- .github/workflows/stale_meeting.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/stale_meeting.yml diff --git a/.github/workflows/stale_meeting.yml b/.github/workflows/stale_meeting.yml new file mode 100644 index 00000000..38595468 --- /dev/null +++ b/.github/workflows/stale_meeting.yml @@ -0,0 +1,24 @@ +name: Auto Close Stale Meeting Issues + +on: + schedule: + - cron: '18 22 * * *' + +jobs: + close_stale_meeting: + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + steps: + - uses: actions/stale@v5 + with: + days-before-issue-stale: 13 + days-before-issue-close: 1 # Marked as stale the day before closing + stale-issue-label: "stale_meeting" + stale-issue-message: "This issue is stale because it has been open for 13 days with no activity." + close-issue-message: "This issue was closed because it has been inactive for 14 days." + days-before-pr-stale: -1 + days-before-pr-close: -1 + only-labels: "meeting" + repo-token: ${{ secrets.GITHUB_TOKEN }}