mirror of
https://github.com/gofiber/storage.git
synced 2025-12-19 00:38:24 +08:00
26 lines
943 B
YAML
26 lines
943 B
YAML
name: Auto labeler
|
|
on:
|
|
issues:
|
|
types: [opened, edited, milestoned]
|
|
pull_request_target:
|
|
types: [opened, edited, reopened, synchronize]
|
|
workflow_dispatch:
|
|
permissions:
|
|
# Setting up permissions in the workflow to limit the scope of what it can do. Optional!
|
|
contents: read # the config file
|
|
issues: write # for labeling issues (on: issues)
|
|
pull-requests: write # for labeling pull requests (on: pull_request_target or on: pull_request)
|
|
statuses: write # to generate status
|
|
checks: write # to generate status
|
|
jobs:
|
|
labeler:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check Labels
|
|
id: labeler
|
|
uses: fuxingloh/multi-labeler@b15a54460c38f54043fa75f7b08a0e2aa5b94b5b #v4.0.0
|
|
with:
|
|
# Use a PAT so that applying labels can trigger downstream workflows
|
|
# (GITHUB_TOKEN updates do not emit additional workflow events).
|
|
github-token: ${{ secrets.ISSUE_PR_TOKEN }}
|