Skip to content

Commit

Permalink
linty
Browse files Browse the repository at this point in the history
  • Loading branch information
milogert committed Jan 13, 2024
1 parent dd1000a commit f816efe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lua/octo/gh/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function M.setup()
job:sync()
local stdout = table.concat(job:result(), "\n")
local all_scopes = string.match(stdout, "- Token scopes: (.*)")
local split = vim.split(all_scopes, ', ')
local split = vim.split(all_scopes, ", ")

for idx, split_scope in ipairs(split) do
M.scopes[idx] = string.gsub(split_scope, "'", "")
Expand Down
6 changes: 3 additions & 3 deletions lua/octo/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -90,16 +90,16 @@ function M.load(repo, kind, number, cb)
local query, key

local pv2_fragment
if gh.has_scope({"read:project", "project"}) then
if gh.has_scope { "read:project", "project" } then
pv2_fragment = fragments.projects_v2_fragment
else
if not config.values.supress_missing_scope.projects_v2 then
utils.info("Cannot request projects v2, missing scope 'read:project'")
utils.info "Cannot request projects v2, missing scope 'read:project'"
end
pv2_fragment = ""
end

print('fragment', pv2_fragment)
print("fragment", pv2_fragment)

if kind == "pull" then
query = graphql("pull_request_query", owner, name, number, pv2_fragment)
Expand Down

0 comments on commit f816efe

Please sign in to comment.