Skip to content

Commit

Permalink
spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
milogert committed Jan 13, 2024
1 parent f816efe commit 44a501f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions doc/octo.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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*
Expand Down
8 changes: 4 additions & 4 deletions lua/octo/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 = {
Expand Down Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion lua/octo/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ""
Expand Down

0 comments on commit 44a501f

Please sign in to comment.