diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index da5e377b59c..c8ff4249f47 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -3,7 +3,14 @@ "image": "mcr.microsoft.com/devcontainers/go:1-bookworm", "customizations": { "vscode": { - "extensions": ["golang.go", "GitHub.copilot-chat", "GitHub.copilot", "github.vscode-github-actions", "astro-build.astro-vscode", "DavidAnson.vscode-markdownlint"] + "extensions": [ + "golang.go", + "GitHub.copilot-chat", + "GitHub.copilot", + "github.vscode-github-actions", + "astro-build.astro-vscode", + "DavidAnson.vscode-markdownlint" + ] }, "codespaces": { "repositories": { diff --git a/.github/workflows/dictation-prompt.lock.yml b/.github/workflows/dictation-prompt.lock.yml index 55e4004b979..e16ade3faab 100644 --- a/.github/workflows/dictation-prompt.lock.yml +++ b/.github/workflows/dictation-prompt.lock.yml @@ -29,7 +29,6 @@ name: "Dictation Prompt Generator" "on": schedule: - cron: "0 6 * * 0" - # Friendly format: weekly on wednesday at 12:00 workflow_dispatch: permissions: {} diff --git a/actions/setup/js/check_permissions_utils.cjs b/actions/setup/js/check_permissions_utils.cjs index 083b4b05665..754aa74691d 100644 --- a/actions/setup/js/check_permissions_utils.cjs +++ b/actions/setup/js/check_permissions_utils.cjs @@ -53,16 +53,19 @@ async function checkBotStatus(actor, owner, repo) { return { isBot: true, isActive: true }; } catch (botError) { // If we get a 404, the bot is not installed/active on this repository + // @ts-expect-error - Error handling with optional chaining if (botError?.status === 404) { core.warning(`Bot '${actor}' is not active/installed on ${owner}/${repo}`); return { isBot: true, isActive: false }; } // For other errors, we'll treat as inactive to be safe + // @ts-expect-error - Error handling with optional chaining const errorMessage = botError?.message ?? String(botError); core.warning(`Failed to check bot status: ${errorMessage}`); return { isBot: true, isActive: false, error: errorMessage }; } } catch (error) { + // @ts-expect-error - Error handling with optional chaining const errorMessage = error?.message ?? String(error); core.warning(`Error checking bot status: ${errorMessage}`); return { isBot: false, isActive: false, error: errorMessage }; @@ -102,6 +105,7 @@ async function checkRepositoryPermission(actor, owner, repo, requiredPermissions core.warning(`User permission '${permission}' does not meet requirements: ${requiredPermissions.join(", ")}`); return { authorized: false, permission }; } catch (repoError) { + // @ts-expect-error - Error handling with optional chaining const errorMessage = repoError?.message ?? String(repoError); core.warning(`Repository permission check failed: ${errorMessage}`); return { authorized: false, error: errorMessage };