From e43b9a3d2ce4b637f4a3c0cc8b77e0c8efb673c7 Mon Sep 17 00:00:00 2001 From: Wolfsblvt Date: Thu, 13 Mar 2025 12:08:17 +0100 Subject: [PATCH] Rework auto labels based on labels a bit --- .github/workflows/issues-auto-manager.yml | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/.github/workflows/issues-auto-manager.yml b/.github/workflows/issues-auto-manager.yml index c775dac37..3008f4b53 100644 --- a/.github/workflows/issues-auto-manager.yml +++ b/.github/workflows/issues-auto-manager.yml @@ -24,33 +24,38 @@ jobs: runs-on: ubuntu-latest steps: - # ✅ Auto-Add "👍 Approved / Nice-to-Have" when specific labels are added - - name: Add "👍 Approved / Nice-to-Have" for relevant labels + - 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) uses: actions-cool/issues-helper@v3 with: actions: 'add-labels' token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} - labels: '👍 Approved / Nice-to-Have' + labels: '👍 Approved' - # ❌ Remove "🧑‍💻 In Progress" when specific labels are added - - name: Remove "🧑‍💻 In Progress" when PR is marked done or stale + - name: ❌ Remove progress labels when PR/issue is marked done or stale if: contains(fromJSON('["✅ Done", "✅ Done (staging)", "⚰️ Stale", "❌ wontfix"]'), github.event.label.name) uses: actions-cool/issues-helper@v3 with: actions: 'remove-labels' token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} - labels: '🧑‍💻 In Progress' + labels: '🧑‍💻 In Progress,🤔 Unsure,🤔 Under Consideration' - # ❌ Remove "🤔 Unsure" and "🤔 Under Consideration" when "❌ wontfix" is added - - name: Remove "🤔 Unsure" and "🤔 Under Consideration" when "❌ wontfix" is added - if: github.event.label.name == '❌ wontfix' + - name: ❌ Remove temporary labels when confirmed labels are added + if: contains(fromJSON('["❌ wontfix","👍 Approved","👩‍💻 Good First Issue"]'), github.event.label.name) uses: actions-cool/issues-helper@v3 with: actions: 'remove-labels' token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} labels: '🤔 Unsure,🤔 Under Consideration' + - name: ❌ Remove no bug labels when "🪲 Confirmed" is added + if: github.event.label.name == '🪲 Confirmed' + 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: name: Post Issue Comments Based on Labels needs: [issue-label-on-content, issue-label-on-labels]