We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8937783 commit 7a3e761Copy full SHA for 7a3e761
lua/gitlab/actions/comment.lua
@@ -23,9 +23,10 @@ end
23
-- line in the current MR
24
M.create_comment = function()
25
local has_clean_tree = git.has_clean_tree()
26
- if state.settings.reviewer_settings.diffview.imply_local and not has_clean_tree then
+ local is_modified = vim.api.nvim_buf_get_option(0, "modified")
27
+ if state.settings.reviewer_settings.diffview.imply_local and (is_modified or not has_clean_tree) then
28
u.notify(
- "Cannot leave comments on a dirty tree. \n Please stash all local changes or push them up.",
29
+ "Cannot leave comments on changed files. \n Please stash all local changes or push them to the feature branch.",
30
vim.log.levels.WARN
31
)
32
return
0 commit comments