Skip to content

Enhance repo hygiene analysis: rename button, add docs links, and Ask Copilot to Improve#314

Merged
rajbos merged 5 commits intomainfrom
copilot/add-env-example-and-editorconfig
Mar 1, 2026
Merged

Enhance repo hygiene analysis: rename button, add docs links, and Ask Copilot to Improve#314
rajbos merged 5 commits intomainfrom
copilot/add-env-example-and-editorconfig

Conversation

Copy link
Contributor

Copilot AI commented Feb 28, 2026

The repo hygiene analysis panel lacked context on why checks matter and had no quick path to act on findings.

Changes

Button rename

  • "Analyse Repository""Analyze Repo for Best Practices" to clarify intent upfront

Per-check documentation links

Each check row now renders a 📖 View documentation link pointing to the relevant official resource:

Check ID Docs
git-repo, gitignore, env-example, commit-messages, ci-config, devcontainer, dockerfile, license docs.github.com
conventional-commits conventionalcommits.org
type-safety typescriptlang.org
editorconfig editorconfig.org
scripts npmjs.com (package.json scripts)
task-runner GNU Make manual
version-pinning nvm .nvmrc docs

"Ask Copilot to Improve" button

When failed/warning checks are present, a 🤖 Ask Copilot to Improve button appears after the recommendations section. It synthesizes all failing checks into a structured prompt and opens Copilot Chat pre-filled (not auto-submitted):

// webview → extension
vscode.postMessage({ command: 'openCopilotChatWithPrompt', prompt });

// extension.ts — new handler
case 'openCopilotChatWithPrompt':
    await vscode.commands.executeCommand('workbench.action.chat.open', message.prompt);
    break;

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

…nd Ask Copilot button

- Rename 'Analyse Repository' button to 'Analyze Repo for Best Practices'
- Add documentation links for each check in the analysis results panel
- Add 'Ask Copilot to Improve' button after recommendations that opens
  Copilot Chat with a pre-filled prompt listing failed/warning checks
- Handle openCopilotChatWithPrompt message in extension.ts

Co-authored-by: rajbos <6085745+rajbos@users.noreply.github.com>
Copilot AI changed the title [WIP] Add .env.example and .editorconfig files Enhance repo hygiene analysis: rename button, add docs links, and Ask Copilot to Improve Feb 28, 2026
@rajbos rajbos marked this pull request as ready for review March 1, 2026 11:33
@rajbos rajbos enabled auto-merge March 1, 2026 11:33
@rajbos rajbos merged commit 9e43916 into main Mar 1, 2026
12 checks passed
@rajbos rajbos deleted the copilot/add-env-example-and-editorconfig branch March 1, 2026 11:34
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