From af5b3feb96e657dc256508b81166f25576894d45 Mon Sep 17 00:00:00 2001 From: Jason Ertel Date: Mon, 18 Mar 2024 07:34:18 -0400 Subject: [PATCH] re-schedule lock jobs --- .github/workflows/close-threads.yml | 32 +++++++++++++++++++++++++++++ .github/workflows/lock-threads.yml | 19 +---------------- 2 files changed, 33 insertions(+), 18 deletions(-) create mode 100644 .github/workflows/close-threads.yml diff --git a/.github/workflows/close-threads.yml b/.github/workflows/close-threads.yml new file mode 100644 index 0000000000..059a35a9f3 --- /dev/null +++ b/.github/workflows/close-threads.yml @@ -0,0 +1,32 @@ +name: 'Close Threads' + +on: + schedule: + - cron: '50 1 * * *' + workflow_dispatch: + +permissions: + issues: write + pull-requests: write + discussions: write + +concurrency: + group: lock-threads + +jobs: + close-threads: + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + steps: + - uses: actions/stale@v5 + with: + days-before-issue-stale: -1 + days-before-issue-close: 60 + stale-issue-message: "This issue is stale because it has been inactive for an extended period. Stale issues convey that the issue, while important to someone, is not critical enough for the author, or other community members to work on, sponsor, or otherwise shepherd the issue through to a resolution." + close-issue-message: "This issue was closed because it has been stale for an extended period. It will be automatically locked in 30 days, after which no further commenting will be available." + days-before-pr-stale: 45 + days-before-pr-close: 60 + stale-pr-message: "This PR is stale because it has been inactive for an extended period. The longer a PR remains stale the more out of date with the main branch it becomes." + close-pr-message: "This PR was closed because it has been stale for an extended period. It will be automatically locked in 30 days. If there is still a commitment to finishing this PR re-open it before it is locked." diff --git a/.github/workflows/lock-threads.yml b/.github/workflows/lock-threads.yml index 25e5d8c170..eeaa444ed6 100644 --- a/.github/workflows/lock-threads.yml +++ b/.github/workflows/lock-threads.yml @@ -2,7 +2,7 @@ name: 'Lock Threads' on: schedule: - - cron: '50 1 * * *' + - cron: '50 2 * * *' workflow_dispatch: permissions: @@ -14,23 +14,6 @@ concurrency: group: lock-threads jobs: - close-threads: - runs-on: ubuntu-latest - permissions: - issues: write - pull-requests: write - steps: - - uses: actions/stale@v5 - with: - days-before-issue-stale: -1 - days-before-issue-close: 60 - stale-issue-message: "This issue is stale because it has been inactive for an extended period. Stale issues convey that the issue, while important to someone, is not critical enough for the author, or other community members to work on, sponsor, or otherwise shepherd the issue through to a resolution." - close-issue-message: "This issue was closed because it has been stale for an extended period. It will be automatically locked in 30 days, after which no further commenting will be available." - days-before-pr-stale: 45 - days-before-pr-close: 60 - stale-pr-message: "This PR is stale because it has been inactive for an extended period. The longer a PR remains stale the more out of date with the main branch it becomes." - close-pr-message: "This PR was closed because it has been stale for an extended period. It will be automatically locked in 30 days. If there is still a commitment to finishing this PR re-open it before it is locked." - lock-threads: runs-on: ubuntu-latest steps: