Fix maintainer label, minor docs

This commit is contained in:
Wolfsblvt
2025-03-13 16:42:49 +01:00
parent ecaee2dbbf
commit eb17e37002
2 changed files with 14 additions and 6 deletions

View File

@@ -5,7 +5,7 @@ on:
types: [opened, edited, labeled, unlabeled] types: [opened, edited, labeled, unlabeled]
jobs: jobs:
issue-label-on-content: label-on-content:
name: Auto-Label Issues (Based on Issue Content) name: Auto-Label Issues (Based on Issue Content)
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -22,21 +22,25 @@ jobs:
enable-versioned-regex: 0 enable-versioned-regex: 0
repo-token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} repo-token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
issue-label-on-labels: label-on-labels:
name: Auto-Label Issues (Based on Issue Labels) name: Auto-Label Issues (Based on Issue Labels)
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: ✅ Add "👍 Approved" 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) 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 uses: actions-cool/issues-helper@v3
with: with:
actions: 'add-labels' actions: 'add-labels'
token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
labels: '👍 Approved' 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) 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 uses: actions-cool/issues-helper@v3
with: with:
actions: 'remove-labels' actions: 'remove-labels'
@@ -45,6 +49,8 @@ jobs:
- name: ❌ Remove temporary labels when confirmed labels are added - name: ❌ Remove temporary labels when confirmed labels are added
if: contains(fromJSON('["❌ wontfix","👍 Approved","👩‍💻 Good First Issue"]'), github.event.label.name) 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 uses: actions-cool/issues-helper@v3
with: with:
actions: 'remove-labels' actions: 'remove-labels'
@@ -53,15 +59,17 @@ jobs:
- name: ❌ Remove no bug labels when "🪲 Confirmed" is added - name: ❌ Remove no bug labels when "🪲 Confirmed" is added
if: github.event.label.name == '🪲 Confirmed' if: github.event.label.name == '🪲 Confirmed'
# 🤖 Issues Helper
# https://github.com/marketplace/actions/issues-helper
uses: actions-cool/issues-helper@v3 uses: actions-cool/issues-helper@v3
with: with:
actions: 'remove-labels' actions: 'remove-labels'
token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }} token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
labels: '✖️ Not Reproducible,✖️ Not A Bug' labels: '✖️ Not Reproducible,✖️ Not A Bug'
issue-auto-comments: write-auto-comments:
name: Post Issue Comments Based on Labels 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 runs-on: ubuntu-latest
steps: steps:

View File

@@ -43,7 +43,7 @@ jobs:
owner, owner,
repo, repo,
issue_number, issue_number,
labels: ['Maintainer'], labels: ['👷 Maintainer'],
}); });
} else { } else {
console.log(`User ${username} is not a repo maintainer.`); console.log(`User ${username} is not a repo maintainer.`);