From eb17e37002a6235af39934e4cbe77a65df2683ae Mon Sep 17 00:00:00 2001 From: Wolfsblvt Date: Thu, 13 Mar 2025 16:42:49 +0100 Subject: [PATCH] Fix maintainer label, minor docs --- .github/workflows/issues-auto-manager.yml | 18 +++++++++++++----- .github/workflows/on-open-handler.yml | 2 +- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/.github/workflows/issues-auto-manager.yml b/.github/workflows/issues-auto-manager.yml index 8d577ac3f..1c62bb66f 100644 --- a/.github/workflows/issues-auto-manager.yml +++ b/.github/workflows/issues-auto-manager.yml @@ -5,7 +5,7 @@ on: types: [opened, edited, labeled, unlabeled] jobs: - issue-label-on-content: + label-on-content: name: Auto-Label Issues (Based on Issue Content) runs-on: ubuntu-latest @@ -22,21 +22,25 @@ jobs: enable-versioned-regex: 0 repo-token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} - issue-label-on-labels: + label-on-labels: name: Auto-Label Issues (Based on Issue Labels) runs-on: ubuntu-latest steps: - name: ✅ Add "👍 Approved" for relevant labels if: contains(fromJSON('["👩‍💻 Good First Issue", "🙏 Help Wanted", "🪲 Confirmed", "⚠️ High Priority", "❕ Medium Priority", "💤 Low Priority"]'), github.event.label.name) + # 🤖 Issues Helper + # https://github.com/marketplace/actions/issues-helper uses: actions-cool/issues-helper@v3 with: actions: 'add-labels' token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} labels: '👍 Approved' - - name: ❌ Remove progress labels when PR/issue is marked done or stale + - name: ❌ Remove progress labels when issue is marked done or stale if: contains(fromJSON('["✅ Done", "✅ Done (staging)", "⚰️ Stale", "❌ wontfix"]'), github.event.label.name) + # 🤖 Issues Helper + # https://github.com/marketplace/actions/issues-helper uses: actions-cool/issues-helper@v3 with: actions: 'remove-labels' @@ -45,6 +49,8 @@ jobs: - name: ❌ Remove temporary labels when confirmed labels are added if: contains(fromJSON('["❌ wontfix","👍 Approved","👩‍💻 Good First Issue"]'), github.event.label.name) + # 🤖 Issues Helper + # https://github.com/marketplace/actions/issues-helper uses: actions-cool/issues-helper@v3 with: actions: 'remove-labels' @@ -53,15 +59,17 @@ jobs: - name: ❌ Remove no bug labels when "🪲 Confirmed" is added if: github.event.label.name == '🪲 Confirmed' + # 🤖 Issues Helper + # https://github.com/marketplace/actions/issues-helper uses: actions-cool/issues-helper@v3 with: actions: 'remove-labels' token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} labels: '✖️ Not Reproducible,✖️ Not A Bug' - issue-auto-comments: + write-auto-comments: name: Post Issue Comments Based on Labels - needs: [issue-label-on-content, issue-label-on-labels] + needs: [label-on-content, label-on-labels] runs-on: ubuntu-latest steps: diff --git a/.github/workflows/on-open-handler.yml b/.github/workflows/on-open-handler.yml index e4bab4a04..07e781475 100644 --- a/.github/workflows/on-open-handler.yml +++ b/.github/workflows/on-open-handler.yml @@ -43,7 +43,7 @@ jobs: owner, repo, issue_number, - labels: ['Maintainer'], + labels: ['👷 Maintainer'], }); } else { console.log(`User ${username} is not a repo maintainer.`);