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]
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:

View File

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