mirror of
https://github.com/zdharma-continuum/zinit.git
synced 2026-09-10 07:36:38 -04:00
feat: add PR labeler to show what parts of Zinit are changed (#211)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
This commit is contained in:
parent
c888917edb
commit
42e83d7f99
15
.github/labeler.yml
vendored
Normal file
15
.github/labeler.yml
vendored
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
# Add 'zinit` label to any change in a zinit file
|
||||
zinit:
|
||||
- zinit*.zsh
|
||||
# Add 'scripts` label to any change in scripts/ directory
|
||||
scripts:
|
||||
- scripts/*
|
||||
# Add 'docs` label to any change in docs/ directory
|
||||
docs:
|
||||
- docs/*
|
||||
# Add 'tests` label to any change in tests/ directory
|
||||
tests:
|
||||
- tests/*
|
||||
ci/cd:
|
||||
- .github/*
|
||||
- .github/**/*
|
||||
18
.github/workflows/labeler.yml
vendored
Normal file
18
.github/workflows/labeler.yml
vendored
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
# This workflow will triage pull requests and apply a label based on the
|
||||
# paths that are modified in the pull request.
|
||||
|
||||
name: Labeler
|
||||
on: [pull_request]
|
||||
|
||||
jobs:
|
||||
label:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: write
|
||||
|
||||
steps:
|
||||
- uses: actions/labeler@v4
|
||||
with:
|
||||
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
Loading…
Reference in a new issue