diff --git a/doc/octo.txt b/doc/octo.txt index a7c0b67e4..b91557750 100644 --- a/doc/octo.txt +++ b/doc/octo.txt @@ -340,8 +340,8 @@ I can't see my v2 projects in issues and/or pull requests!~ Alternatively if you want to be able to modify projects (i.e. add/remove cards) you need to add the `project` scope to your token instead. - If you don't care about projects v2 you can supress the warning by setting - `supress_missing_scope.project_v2 = true` in your Octo config. + If you don't care about projects v2 you can suppress the warning by setting + `suppress_missing_scope.project_v2 = true` in your Octo config. CREDITS *octo-credits* diff --git a/lua/octo/config.lua b/lua/octo/config.lua index ae0367787..5ec2ed063 100644 --- a/lua/octo/config.lua +++ b/lua/octo/config.lua @@ -64,7 +64,7 @@ local M = {} ---@field gh_env table ---@field timeout number ---@field default_to_projects_v2 boolean ----@field supress_missing_scope OctoMissingScopeConfig +---@field suppress_missing_scope OctoMissingScopeConfig ---@field ui OctoConfigUi ---@field issues OctoConfigIssues ---@field pull_requests OctoConfigPR @@ -104,7 +104,7 @@ function M.get_default_values() gh_env = {}, timeout = 5000, default_to_projects_v2 = false, - supress_missing_scope = { + suppress_missing_scope = { projects_v2 = false, }, ui = { @@ -371,8 +371,8 @@ function M.validate_config() validate_type(config.snippet_context_lines, "snippet_context_lines", "number") validate_type(config.timeout, "timeout", "number") validate_type(config.default_to_projects_v2, "default_to_projects_v2", "boolean") - if validate_type(config.supress_missing_scope, "supress_missing_scope", "table") then - validate_type(config.supress_missing_scope.projects_v2, "supress_missing_scope.projects_v2", "boolean") + if validate_type(config.suppress_missing_scope, "supress_missing_scope", "table") then + validate_type(config.suppress_missing_scope.projects_v2, "supress_missing_scope.projects_v2", "boolean") end validate_type(config.gh_env, "gh_env", "table") validate_type(config.reaction_viewer_hint_icon, "reaction_viewer_hint_icon", "string") diff --git a/lua/octo/init.lua b/lua/octo/init.lua index 96f93505f..b25ed5fc4 100644 --- a/lua/octo/init.lua +++ b/lua/octo/init.lua @@ -93,7 +93,7 @@ function M.load(repo, kind, number, cb) 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 + if not config.values.suppress_missing_scope.projects_v2 then utils.info "Cannot request projects v2, missing scope 'read:project'" end pv2_fragment = ""