From 76b1acbef83cb5f6ace944f0efd96e0d5e971693 Mon Sep 17 00:00:00 2001 From: Bo Anderson Date: Wed, 22 Nov 2023 15:51:39 +0000 Subject: [PATCH] workflows/triage-issues: don't check discussions --- .github/workflows/triage-issues.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/triage-issues.yml b/.github/workflows/triage-issues.yml index 64d7fc69..3316d213 100644 --- a/.github/workflows/triage-issues.yml +++ b/.github/workflows/triage-issues.yml @@ -23,7 +23,7 @@ concurrency: jobs: stale: if: > - startsWith(github.repository, 'Homebrew/') && ( + github.repository_owner == 'Homebrew' && ( github.event_name != 'issue_comment' || ( contains(github.event.issue.labels.*.name, 'stale') || contains(github.event.pull_request.labels.*.name, 'stale') @@ -48,7 +48,7 @@ jobs: bump-pr-stale: if: > - startsWith(github.repository, 'Homebrew/') && ( + github.repository_owner == 'Homebrew' && ( github.event_name != 'issue_comment' || ( contains(github.event.issue.labels.*.name, 'stale') || contains(github.event.pull_request.labels.*.name, 'stale') @@ -70,13 +70,14 @@ jobs: any-of-labels: "bump-formula-pr,bump-cask-pr" lock-threads: - if: startsWith(github.repository, 'Homebrew/') && github.event_name != 'issue_comment' + if: github.repository_owner == 'Homebrew' && github.event_name != 'issue_comment' runs-on: ubuntu-latest steps: - name: Lock Outdated Threads uses: dessant/lock-threads@1bf7ec25051fe7c00bdd17e6a7cf3d7bfb7dc771 with: github-token: ${{ secrets.GITHUB_TOKEN }} + process-only: 'issues, prs' issue-inactive-days: 30 add-issue-labels: outdated pr-inactive-days: 30