feat(ci): autolabel pull requests (#14574)

autolabel pull requests depending on which files are modified
This commit is contained in:
Matthieu Coudron 2021-05-18 09:37:18 +02:00 committed by GitHub
parent dc18c1e3ee
commit c40de6e5f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 54 additions and 0 deletions

41
.github/labeler.yml vendored Normal file
View File

@ -0,0 +1,41 @@
"lsp":
- runtime/lua/vim/lsp.lua
- runtime/lua/vim/lsp/*
"lua":
- runtime/lua/**/*
- src/nvim/lua
"tui":
- src/nvim/tui/tui.*
"tree-sitter":
- src/nvim/lua/treesitter.*
- runtime/lua/vim/treesitter.lua
- runtime/lua/vim/treesitter/*
"topic: spell":
- src/nvim/spell*
"topic: :terminal":
- src/nvim/terminal.*
"topic: column":
- src/nvim/mark.h
- src/nvim/mark.c
- src/nvim/sign*
"topic: folds":
- src/nvim/fold*
"topic: mouse":
- src/nvim/mouse*
"topic: documentation":
- runtime/doc/*
"topic: clipboard":
- runtime/autoload/provider/clipboard.vim
"topic: diff":
- src/nvim/diff.*

13
.github/workflows/labeler.yml vendored Normal file
View File

@ -0,0 +1,13 @@
name: "Pull Request Labeler"
on:
- pull_request_target
jobs:
triage:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/labeler@main
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"