mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Rework auto labels based on labels a bit
This commit is contained in:
23
.github/workflows/issues-auto-manager.yml
vendored
23
.github/workflows/issues-auto-manager.yml
vendored
@@ -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]
|
||||
|
Reference in New Issue
Block a user