Automatically disable git engine for Dependabot environments by Copilot · Pull Request #1284 · dotnet/Nerdbank.GitVersioning (original) (raw)
AI self-assigned this
- Add GetEffectiveGitEngine method to GitContext that checks DEPENDABOT env var
- Update GetBuildVersion task to use the new logic
- Update nbgv CLI tool (Program.cs) to use the new logic
- Update CloudCommand to use the new logic
- Add comprehensive tests for Dependabot detection
- Update documentation to explain the automatic behavior
Co-authored-by: AArnott 3548+AArnott@users.noreply.github.com
- Move NBGV_GitEngine parsing into GitContext.GetEffectiveGitEngine
- Simplify Program.cs GetEffectiveGitEngine to just call GitContext method
- Update GetBuildVersion to respect MSBuild property over env vars
- Enhance tests to cover all NBGV_GitEngine values (LibGit2, Managed, Disabled)
- All 1105 tests passing
Co-authored-by: AArnott 3548+AArnott@users.noreply.github.com
- Clarify that unrecognized NBGV_GitEngine values are silently ignored
- Document that this maintains backward compatibility
- Explain valid values are LibGit2, Managed, and Disabled (case-sensitive)
Co-authored-by: AArnott 3548+AArnott@users.noreply.github.com
Copilot AI changed the title[WIP] Enhance git versioning for Dependabot integration Automatically disable git engine for Dependabot environments
AArnott marked this pull request as ready for review
AArnott deleted the copilot/enhance-git-engine-deactivation branch
This was referenced
Nov 5, 2025
This was referenced
Mar 31, 2026
This was referenced
Apr 10, 2026
This was referenced
Apr 20, 2026
This was referenced
Apr 27, 2026
craigktreasure pushed a commit to craigktreasure/Treasure.Utils that referenced this pull request
This was referenced
May 4, 2026
This was referenced
Jun 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
[ Show hidden characters]({{ revealButtonHref }})