From c40de6e5f5898943e0a77590694e9ce890e49995 Mon Sep 17 00:00:00 2001 From: Matthieu Coudron Date: Tue, 18 May 2021 09:37:18 +0200 Subject: [PATCH] feat(ci): autolabel pull requests (#14574) autolabel pull requests depending on which files are modified --- .github/labeler.yml | 41 +++++++++++++++++++++++++++++++++++ .github/workflows/labeler.yml | 13 +++++++++++ 2 files changed, 54 insertions(+) create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/labeler.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000000..100f97c5f2 --- /dev/null +++ b/.github/labeler.yml @@ -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.* diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 0000000000..909e197b57 --- /dev/null +++ b/.github/workflows/labeler.yml @@ -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 }}"