Add labeler action (#1929)
This commit is contained in:
19
.github/labeler.yml
vendored
Normal file
19
.github/labeler.yml
vendored
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
js:
|
||||||
|
- snippets/js/s/*.md
|
||||||
|
- collections/js/*.yaml
|
||||||
|
css:
|
||||||
|
- snippets/css/s/*.md
|
||||||
|
- collections/css/*.yaml
|
||||||
|
git:
|
||||||
|
- snippets/git/s/*.md
|
||||||
|
- collections/git/*.yaml
|
||||||
|
python:
|
||||||
|
- snippets/python/s/*.md
|
||||||
|
- collections/python/*.yaml
|
||||||
|
react:
|
||||||
|
- snippets/react/s/*.md
|
||||||
|
- collections/react/*.yaml
|
||||||
|
snippet:
|
||||||
|
- snippets/**/*.md
|
||||||
|
collection:
|
||||||
|
- collections/**/*.yaml
|
||||||
22
.github/workflows/label.yml
vendored
Normal file
22
.github/workflows/label.yml
vendored
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
# This workflow will triage pull requests and apply a label based on the
|
||||||
|
# paths that are modified in the pull request.
|
||||||
|
#
|
||||||
|
# To use this workflow, you will need to set up a .github/labeler.yml
|
||||||
|
# file with configuration. For more information, see:
|
||||||
|
# https://github.com/actions/labeler
|
||||||
|
|
||||||
|
name: Labeler
|
||||||
|
on: [pull_request_target]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
label:
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
pull-requests: write
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/labeler@v4
|
||||||
|
with:
|
||||||
|
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
Reference in New Issue
Block a user