Convert simple-icons manual backup from submodule to tracked files
This commit is contained in:
79
logos/simple-icons.manual-backup-20251123-234134/.github/workflows/remove-labels.yml
vendored
Normal file
79
logos/simple-icons.manual-backup-20251123-234134/.github/workflows/remove-labels.yml
vendored
Normal file
@@ -0,0 +1,79 @@
|
||||
name: Remove Outdated Labels
|
||||
|
||||
on:
|
||||
pull_request_target:
|
||||
types:
|
||||
- closed
|
||||
issues:
|
||||
types:
|
||||
- closed
|
||||
|
||||
permissions:
|
||||
issues: write
|
||||
pull-requests: write
|
||||
|
||||
jobs:
|
||||
remove-merged-pr-labels:
|
||||
name: Remove merged pull request labels
|
||||
if: github.event.pull_request.merged
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/create-github-app-token@v2
|
||||
id: app-token
|
||||
with:
|
||||
app-id: ${{ vars.BOT_APP_ID }}
|
||||
private-key: ${{ secrets.BOT_PRIVATE_KEY }}
|
||||
- uses: mondeja/remove-labels-gh-action@v2
|
||||
with:
|
||||
token: ${{ steps.app-token.outputs.token }}
|
||||
labels: |
|
||||
assessing
|
||||
awaiting reply
|
||||
duplicate
|
||||
in discussion
|
||||
invalid
|
||||
out of scope
|
||||
pending
|
||||
permission in review
|
||||
permission required
|
||||
won't add
|
||||
|
||||
remove-closed-pr-labels:
|
||||
name: Remove closed pull request labels
|
||||
if: |
|
||||
github.event_name == 'pull_request_target' &&
|
||||
(!github.event.pull_request.merged)
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/create-github-app-token@v2
|
||||
id: app-token
|
||||
with:
|
||||
app-id: ${{ vars.BOT_APP_ID }}
|
||||
private-key: ${{ secrets.BOT_PRIVATE_KEY }}
|
||||
- uses: mondeja/remove-labels-gh-action@v2
|
||||
with:
|
||||
token: ${{ steps.app-token.outputs.token }}
|
||||
labels: |
|
||||
in discussion
|
||||
pending
|
||||
assessing
|
||||
permission in review
|
||||
|
||||
remove-closed-issue-labels:
|
||||
name: Remove closed issue labels
|
||||
if: github.event.issue.state == 'closed'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/create-github-app-token@v2
|
||||
id: app-token
|
||||
with:
|
||||
app-id: ${{ vars.BOT_APP_ID }}
|
||||
private-key: ${{ secrets.BOT_PRIVATE_KEY }}
|
||||
- uses: mondeja/remove-labels-gh-action@v2
|
||||
with:
|
||||
token: ${{ steps.app-token.outputs.token }}
|
||||
labels: |
|
||||
in discussion
|
||||
pending
|
||||
assessing
|
||||
permission in review
|
||||
Reference in New Issue
Block a user