Release 2.5.1 (#271)
* feat: Support for custom authentication provider functions (#270) * feat: Support for adding "draft" notes to the review, and publishing them, either individually or all at once. Addresses feature request #223. * feat: Lets users select + checkout a merge request directly within Neovim, without exiting to the terminal * fix: Checks that the remote feature branch exists and is up-to-date before creating a MR, starting a review, or opening the MR summary (#278) * docs: We require some state from Diffview, this shows how to load that state prior to installing w/ Packer. Fixes #94. This is a #MINOR release. --------- Co-authored-by: Jakub F. Bortlík <jakub.bortlik@proton.me> Co-authored-by: sunfuze <sunfuze.1989@gmail.com> Co-authored-by: Patrick Pichler <mail@patrickpichler.dev>
This commit is contained in:
committed by
GitHub
parent
f10c4ebb8f
commit
cf6ccddce3
@@ -1,4 +1,5 @@
|
||||
local u = require("gitlab.utils")
|
||||
local common = require("gitlab.actions.common")
|
||||
local state = require("gitlab.state")
|
||||
|
||||
local M = {
|
||||
@@ -70,15 +71,15 @@ M.init_popup = function(tree, bufnr)
|
||||
vim.api.nvim_create_autocmd({ "CursorHold" }, {
|
||||
callback = function()
|
||||
local node = tree:get_node()
|
||||
if node == nil or not require("gitlab.actions.discussions").is_node_note(node) then
|
||||
if node == nil or not common.is_node_note(node) then
|
||||
return
|
||||
end
|
||||
|
||||
local note_node = require("gitlab.actions.discussions").get_note_node(tree, node)
|
||||
local root_node = require("gitlab.actions.discussions").get_root_node(tree, node)
|
||||
local note_node = common.get_note_node(tree, node)
|
||||
local root_node = common.get_root_node(tree, node)
|
||||
local note_id_str = tostring(note_node.is_root and root_node.root_note_id or note_node.id)
|
||||
local emojis = state.DISCUSSION_DATA.emojis
|
||||
|
||||
local emojis = require("gitlab.actions.discussions").emojis
|
||||
local note_emojis = emojis[note_id_str]
|
||||
if note_emojis == nil then
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user