Skip to content

Commit

Permalink
switch between the finders
Browse files Browse the repository at this point in the history
  • Loading branch information
wd60622 committed Sep 8, 2024
1 parent 1edf111 commit e467c19
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lua/octo/pickers/telescope/provider.lua
Original file line number Diff line number Diff line change
Expand Up @@ -824,12 +824,14 @@ local function get_user_requester()
end

local function get_mentionable_users()
local query = graphql "mentionable_users_query"
local repo = utils.get_remote_name()
local owner, name = utils.split_repo(repo)
local query = graphql("mentionable_users_query", owner, name, { escape = true })
local output = gh.run {
args = { "api", "graphql", "--paginate", "-f", string.format("query=%s", query) },
mode = "sync",
}
if output then
if not output then
return {}
end

Expand All @@ -839,10 +841,10 @@ local function get_mentionable_users()

for _, resp in ipairs(responses) do
for _, user in ipairs(resp.data.repository.mentionableUsers.nodes) do
users[user.login] = {
table.insert(users, {
id = user.id,
login = user.login,
}
})
end
end

Expand Down

0 comments on commit e467c19

Please sign in to comment.