diff --git a/server/ai/prompts.go b/server/ai/prompts.go index 97e71933..95902405 100644 --- a/server/ai/prompts.go +++ b/server/ai/prompts.go @@ -17,7 +17,7 @@ const PromptExtension = "tmpl" const SystemSubTemplateName = ".system" const UserSubTemplateName = ".user" -// Conviance vars for the filenames in ai/prompts/ +// Convenience vars for the filenames in ai/prompts/ const ( PromptSummarizeThread = "summarize_thread" PromptDirectMessageQuestion = "direct_message_question" diff --git a/server/built_in_tools.go b/server/built_in_tools.go index b6eabe78..49c38204 100644 --- a/server/built_in_tools.go +++ b/server/built_in_tools.go @@ -150,12 +150,12 @@ func (p *Plugin) toolGetGithubIssue(context ai.ConversationContext, argsGetter a return "invalid parameters to function", fmt.Errorf("failed to get arguments for tool GetGithubIssues: %w", err) } - // Fail for over lengh repo ownder or name. + // Fail for over length repo owner or name. if len(args.RepoOwner) > 39 || len(args.RepoName) > 100 { return "invalid parameters to function", errors.New("invalid repo owner or repo name") } - // Fail if repo ownder or repo name contain invalid characters. + // Fail if repo owner or repo name contain invalid characters. if !validGithubRepoName.MatchString(args.RepoOwner) || !validGithubRepoName.MatchString(args.RepoName) { return "invalid parameters to function", errors.New("invalid repo owner or repo name") } @@ -407,7 +407,7 @@ func (p *Plugin) getBuiltInTools(isDM bool) []ai.Tool { Resolver: p.toolResolveLookupMattermostUser, }) - // Github plugin tools + // GitHub plugin tools status, err := p.pluginAPI.Plugin.GetPluginStatus("github") if err != nil && !errors.Is(err, pluginapi.ErrNotFound) { p.API.LogError("failed to get github plugin status", "error", err.Error()) diff --git a/server/enterprise/license.go b/server/enterprise/license.go index 1be0baf4..e90c61dc 100644 --- a/server/enterprise/license.go +++ b/server/enterprise/license.go @@ -34,7 +34,7 @@ func (e *LicenseChecker) isAtLeastE10Licensed() bool { //nolint:unused return pluginapi.IsE10LicensedOrDevelopment(config, license) } -// isMultiLLMLicensed returns true when the server either has a multi-LLM license or is configured for development. +// IsMultiLLMLicensed returns true when the server either has a multi-LLM license or is configured for development. func (e *LicenseChecker) IsMultiLLMLicensed() bool { return e.isAtLeastE20Licensed() } diff --git a/server/metrics/server.go b/server/metrics/server.go index 3e38030e..66b5e4f9 100644 --- a/server/metrics/server.go +++ b/server/metrics/server.go @@ -32,7 +32,7 @@ func (h *Server) Run() error { return errors.Wrap(h.Server.ListenAndServe(), "prometheus ListenAndServe") } -// Shutdown will shutdown the prometheus server. +// Shutdown will shut down the prometheus server. func (h *Server) Shutdown() error { return errors.Wrap(h.Server.Close(), "prometheus Close") } diff --git a/webapp/src/index.tsx b/webapp/src/index.tsx index 1bf1c8aa..7e42dccc 100644 --- a/webapp/src/index.tsx +++ b/webapp/src/index.tsx @@ -21,7 +21,7 @@ import {setOpenRHSAction} from './redux_actions'; import {BotUsername, TelemetryEvents, TelemetrySources} from './constants'; import PostEventListener from './websocket'; import {BotsHandler, setupRedux} from './redux'; -import UnreadsSumarize from './components/unreads_summarize'; +import UnreadsSummarize from './components/unreads_summarize'; import {PostbackPost} from './components/postback_post'; type WebappStore = Store>> @@ -157,7 +157,7 @@ export default class Plugin { } if (registry.registerNewMessagesSeparatorActionComponent) { - registry.registerNewMessagesSeparatorActionComponent(UnreadsSumarize); + registry.registerNewMessagesSeparatorActionComponent(UnreadsSummarize); } } } diff --git a/webapp/src/redux.tsx b/webapp/src/redux.tsx index c061c0d0..6c8915d7 100644 --- a/webapp/src/redux.tsx +++ b/webapp/src/redux.tsx @@ -23,7 +23,7 @@ export async function setupRedux(registry: any, store: WebappStore) { handler: makeCallsPostButtonClickedHandler(store.dispatch), }); - // This is a workaround for a bug where the the RHS was inaccessable to + // This is a workaround for a bug where the RHS was inaccessible to // users that where not system admins. This is unable to be fixed properly // because the Webapp does not export the AdvancedCreateComment directly. // #120 filed to remove this workaround.