From 7f0268a2e71176f47a2bd050b3f15b7525f0296c Mon Sep 17 00:00:00 2001 From: Chris Evich Date: Mon, 8 Apr 2024 11:07:46 -0400 Subject: [PATCH] GHA: Fix intermittent workflow error Periodically, the discussion-lock workflow throws the error: `Resource not accessible by integration` This was identified in the [upstream](https://github.com/dessant/lock-threads) issue 47, as caused by a version-5 change that adds support for management of discussions but requires additional permissions and possibly settings. Given the low notification traffic from discussions, old discussions may remain valid for a long while, and are a useful community-interface: Disable management of discussions. Signed-off-by: Chris Evich --- .../workflows/{discussion_lock.yml => issue_pr_lock.yml} | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename .github/workflows/{discussion_lock.yml => issue_pr_lock.yml} (94%) diff --git a/.github/workflows/discussion_lock.yml b/.github/workflows/issue_pr_lock.yml similarity index 94% rename from .github/workflows/discussion_lock.yml rename to .github/workflows/issue_pr_lock.yml index ba2dde9252..c325298098 100644 --- a/.github/workflows/discussion_lock.yml +++ b/.github/workflows/issue_pr_lock.yml @@ -2,7 +2,7 @@ # Format ref: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions -name: "Lock closed Issue/PR discussions" +name: "Lock closed issues and PRs" on: schedule: @@ -38,8 +38,7 @@ env: LOCKED_LABEL: 'locked - please file new issue/PR' jobs: - closed_issue_discussion_lock: - name: "Lock closed Issue/PR discussions" + manage_locking: runs-on: ubuntu-latest permissions: issues: write @@ -48,6 +47,7 @@ jobs: # Ref: https://github.com/dessant/lock-threads#usage - uses: dessant/lock-threads@v5 with: + process-only: 'issues, prs' issue-inactive-days: '${{env.CLOSED_DAYS}}' pr-inactive-days: '${{env.CLOSED_DAYS}}' add-issue-labels: '${{env.LOCKED_LABEL}}'