Add labeler action (#1929)

This commit is contained in:
Angelos Chalaris
2023-05-20 11:04:14 +03:00
committed by GitHub
2 changed files with 41 additions and 0 deletions

19
.github/labeler.yml vendored Normal file
View 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
View 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 }}"