Add AGENTS.md guidance to avoid committing unrelated go.mod/go.sum files - #6663
Conversation
Co-authored-by: JeffreyCA <9157833+JeffreyCA@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
This PR updates AGENTS.md to guide automated agents (like CodeQL-based workflows) to avoid committing unrelated go.mod/go.sum changes when working in the azd repo.
Changes:
- Added a new “Avoiding Unrelated go.mod/go.sum Changes” section to
cli/azd/AGENTS.md. - Clarified scope rules distinguishing azd core (
cli/azd/excludingextensions/) from individual extensions undercli/azd/extensions/<extension-name>/. - Added guidance to unstage unrelated
go.mod/go.sumfiles before committing, though without the concretegit restore --staged ...command mentioned in the PR description.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
/check-enforcer override |
Azure Dev CLI Install InstructionsInstall scriptsMacOS/Linux
bash: pwsh: WindowsPowerShell install MSI install Standalone Binary
MSI
Documentationlearn.microsoft.com documentationtitle: Azure Developer CLI reference
|
CodeQL runs
go mod tidyacross all Go modules, causing the coding agent to commit unrelatedgo.mod/go.sumchanges fromcli/azd/extensions/even when the task only involves azd core.Changes
cli/azd/AGENTS.mdcli/azd/go.modandcli/azd/go.sumgo.mod/go.sumfor the specific extensionOriginal prompt
💡 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.