aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordundargoc <gocdundar@gmail.com>2024-05-13 20:11:15 +0200
committerdundargoc <33953936+dundargoc@users.noreply.github.com>2024-05-14 19:45:51 +0200
commitb83d5fabc6cbe08867b933958de7df7d3917247b (patch)
tree9ad718c1a106e82929a6a11f1292b869b3015d20
parent5eee633c97055fc8c7617f2914835f2860b92d9c (diff)
downloadrneovim-b83d5fabc6cbe08867b933958de7df7d3917247b.tar.gz
rneovim-b83d5fabc6cbe08867b933958de7df7d3917247b.tar.bz2
rneovim-b83d5fabc6cbe08867b933958de7df7d3917247b.zip
ci(labeler): adjust configuration
-rw-r--r--.github/scripts/close_unresponsive.js2
-rw-r--r--.github/scripts/labeler_configuration.yml64
-rw-r--r--.github/scripts/reviewers_add.js19
3 files changed, 44 insertions, 41 deletions
diff --git a/.github/scripts/close_unresponsive.js b/.github/scripts/close_unresponsive.js
index b16c19b653..5fd231423c 100644
--- a/.github/scripts/close_unresponsive.js
+++ b/.github/scripts/close_unresponsive.js
@@ -26,7 +26,7 @@ module.exports = async ({ github, context }) => {
repo: repo,
issue_number: number,
},
- (response) => response.data.filter(labeledEvent)
+ (response) => response.data.filter(labeledEvent),
);
const latest_response_label = events[events.length - 1];
diff --git a/.github/scripts/labeler_configuration.yml b/.github/scripts/labeler_configuration.yml
index 3db8444fde..f3b5e0decf 100644
--- a/.github/scripts/labeler_configuration.yml
+++ b/.github/scripts/labeler_configuration.yml
@@ -1,71 +1,75 @@
-lsp:
+build:
- changed-files:
- - any-glob-to-any-file: [ runtime/lua/vim/lsp.lua, runtime/lua/vim/lsp/* ]
+ - any-glob-to-any-file: [ CMakeLists.txt, "**/CMakeLists.txt", "**/Makefile", "**/*.cmake", cmake.deps/**/* ]
-tui:
+ci:
- changed-files:
- - any-glob-to-any-file: [ src/nvim/tui/tui.* ]
+ - any-glob-to-any-file: [ .github/actions/**, .github/workflows/**, .github/scripts/** ]
-treesitter:
+clipboard:
- changed-files:
- - any-glob-to-any-file: [ src/nvim/lua/treesitter.*, runtime/lua/vim/treesitter.lua, runtime/lua/vim/treesitter/*, runtime/queries/**/* ]
+ - any-glob-to-any-file: [ runtime/autoload/provider/clipboard.vim ]
+
+column:
+ - changed-files:
+ - any-glob-to-any-file: [ src/nvim/sign* ]
diagnostic:
- changed-files:
- any-glob-to-any-file: [ runtime/lua/vim/diagnostic.lua ]
-dependencies:
+diff:
- changed-files:
- - any-glob-to-any-file: [ cmake.deps/**/* ]
+ - any-glob-to-any-file: [ src/nvim/diff.* ]
-spell:
+documentation:
- changed-files:
- - any-glob-to-any-file: [ src/nvim/spell* ]
+ - any-glob-to-all-files: [ runtime/doc/*, "**/*.md" ]
-terminal:
+editorconfig:
- changed-files:
- - any-glob-to-any-file: [ src/nvim/terminal.* ]
+ - any-glob-to-any-file: [ .editorconfig, runtime/lua/editorconfig.lua, runtime/plugin/editorconfig.lua ]
-column:
+filetype:
- changed-files:
- - any-glob-to-any-file: [ src/nvim/sign* ]
+ - any-glob-to-any-file: [ runtime/lua/vim/filetype.lua, runtime/lua/vim/filetype/detect.lua ]
folds:
- changed-files:
- any-glob-to-any-file: [ src/nvim/fold* ]
+lsp:
+ - changed-files:
+ - any-glob-to-any-file: [ runtime/lua/vim/lsp.lua, runtime/lua/vim/lsp/* ]
+
mouse:
- changed-files:
- any-glob-to-any-file: [ src/nvim/mouse* ]
-documentation:
+platform:nix:
- changed-files:
- - any-glob-to-all-files: [ runtime/doc/*, "**/*.md" ]
+ - any-glob-to-any-file: [ contrib/flake.lock, contrib/flake.nix ]
-clipboard:
+snippet:
- changed-files:
- - any-glob-to-any-file: [ runtime/autoload/provider/clipboard.vim ]
+ - any-glob-to-any-file: [ runtime/lua/vim/snippet.lua ]
-diff:
+spell:
- changed-files:
- - any-glob-to-any-file: [ src/nvim/diff.* ]
+ - any-glob-to-any-file: [ src/nvim/spell* ]
-build:
+terminal:
- changed-files:
- - any-glob-to-any-file: [ CMakeLists.txt, "**/CMakeLists.txt", "**/Makefile", "**/*.cmake" ]
+ - any-glob-to-any-file: [ src/nvim/terminal.* ]
test:
- changed-files:
- any-glob-to-all-files: [test/**/*]
-ci:
- - changed-files:
- - any-glob-to-any-file: [ .github/actions/**, .github/workflows/**, .github/scripts/** ]
-
-filetype:
+treesitter:
- changed-files:
- - any-glob-to-any-file: [ runtime/lua/vim/filetype.lua, runtime/lua/vim/filetype/detect.lua ]
+ - any-glob-to-any-file: [ src/nvim/lua/treesitter.*, runtime/lua/vim/treesitter.lua, runtime/lua/vim/treesitter/*, runtime/queries/**/* ]
-platform:nix:
+tui:
- changed-files:
- - any-glob-to-any-file: [ contrib/flake.lock, contrib/flake.nix ]
+ - any-glob-to-any-file: [ src/nvim/tui/tui.* ]
diff --git a/.github/scripts/reviewers_add.js b/.github/scripts/reviewers_add.js
index d8319ea56b..a7e0d2e47b 100644
--- a/.github/scripts/reviewers_add.js
+++ b/.github/scripts/reviewers_add.js
@@ -27,10 +27,6 @@ module.exports = async ({ github, context }) => {
reviewers.add("gpanders");
}
- if (labels.includes("dependencies")) {
- reviewers.add("jamessan");
- }
-
if (labels.includes("diagnostic")) {
reviewers.add("gpanders");
}
@@ -39,14 +35,14 @@ module.exports = async ({ github, context }) => {
reviewers.add("lewis6991");
}
- if (labels.includes("distribution")) {
- reviewers.add("jamessan");
- }
-
if (labels.includes("documentation")) {
reviewers.add("clason");
}
+ if (labels.includes("editorconfig")) {
+ reviewers.add("gpanders");
+ }
+
if (labels.includes("extmarks")) {
reviewers.add("bfredl");
}
@@ -54,11 +50,9 @@ module.exports = async ({ github, context }) => {
if (labels.includes("filetype")) {
reviewers.add("clason");
reviewers.add("gpanders");
- reviewers.add("smjonas");
}
if (labels.includes("lsp")) {
- reviewers.add("folke");
reviewers.add("MariaSolOs");
reviewers.add("mfussenegger");
}
@@ -76,6 +70,10 @@ module.exports = async ({ github, context }) => {
reviewers.add("justinmk");
}
+ if (labels.includes("snippet")) {
+ reviewers.add("MariaSolOs");
+ }
+
if (labels.includes("statusline")) {
reviewers.add("famiu");
}
@@ -88,6 +86,7 @@ module.exports = async ({ github, context }) => {
reviewers.add("bfredl");
reviewers.add("clason");
reviewers.add("lewis6991");
+ reviewers.add("wookayin");
}
if (labels.includes("tui")) {