Skip to content

Fix typos in error messages#2

Open
MichaelMVS wants to merge 1 commit intomobb-dev:mainfrom
MichaelMVS:fix-typos
Open

Fix typos in error messages#2
MichaelMVS wants to merge 1 commit intomobb-dev:mainfrom
MichaelMVS:fix-typos

Conversation

@MichaelMVS
Copy link
Copy Markdown

Fixed two typos in the codebase:

  1. Line 51: Extra closing brace in template literal ${repoUrl}}${repoUrl} - This would have caused a JavaScript syntax error at runtime
  2. Line 114: Duplicate 'the' in error message Can't access the the branchCan't access the branch

These are minimal but concrete fixes that improve code quality.

- Fix extra closing brace in parseRepoUrl template literal
- Fix duplicate 'the' in error message ('the the branch' -> 'the branch')
Copilot AI review requested due to automatic review settings April 14, 2026 08:49
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates user-facing error strings in the GitHub analysis feature to correct minor typos and improve message clarity.

Changes:

  • Fix an extra } character in the “Error parsing repo url …” message.
  • Remove a duplicated word in the “Can’t access the … branch …” error message.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

`Can't access the the branch ${chalk.bold(reference)} on ${chalk.bold(
`Can't access the branch ${chalk.bold(reference)} on ${chalk.bold(
repoUrl
)} make sure it exits.`
Copy link

Copilot AI Apr 14, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The error message still has a typo: "make sure it exits" reads like "exit" rather than "exist". Update it to "make sure it exists" so the guidance is clear to users.

Suggested change
)} make sure it exits.`
)} make sure it exists.`

Copilot uses AI. Check for mistakes.
const [owner, repo] = slug.split('/')
if (!owner || !repo) {
throw new Error(`Error parsing repo url ${repoUrl}}`)
throw new Error(`Error parsing repo url ${repoUrl}`)
Copy link

Copilot AI Apr 14, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR description says the original string "${repoUrl}}" would have caused a JavaScript syntax error, but that extra } was just a literal character after the interpolation and would still parse. Consider adjusting the PR description to reflect that this was a typo in the message, not a runtime syntax error.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants