aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/labeler.yml41
-rw-r--r--.github/workflows/labeler.yml13
2 files changed, 54 insertions, 0 deletions
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 }}"