Skip to content

Conversation

@gargsaumya
Copy link
Contributor

@gargsaumya gargsaumya commented Dec 17, 2025

Work Item / Issue Reference

AB#40703

GitHub Issue: #<ISSUE_NUMBER>


Summary

This pull request updates the GitHub-Azure DevOps sync pipeline to improve handling of the .gdn directory during repository synchronization. The main change ensures that the .gdn directory is preserved when files are removed and checked out from the main branch.

File sync improvements:

  • Modified the git rm -rf . and git checkout github/main -- . commands to exclude the .gdn directory, preventing it from being deleted or overwritten during the sync process.

Copilot AI review requested due to automatic review settings December 17, 2025 12:18
@github-actions github-actions bot added the pr-size: small Minimal code update label Dec 17, 2025
Copy link
Contributor

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 the GitHub-to-Azure DevOps sync pipeline to preserve the .gdn directory during the daily synchronization process. The .gdn directory contains Guardian security scanning baseline and suppression files (.gdnbaselines and .gdnsuppress) that are essential for the OneBranch SDL (Security Development Lifecycle) compliance and should not be synced from GitHub since they are specific to the Azure DevOps environment.

Key Changes:

  • Modified git rm command to exclude .gdn directory from deletion during sync
  • Modified git checkout command to exclude .gdn directory from being overwritten with GitHub content

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

git fetch github main
git rm -rf .
git checkout github/main -- .
git rm -rf . -- :!.gdn
Copy link

Copilot AI Dec 17, 2025

Choose a reason for hiding this comment

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

The double-dash separator -- is in the wrong position for the git rm command. The correct syntax should be git rm -rf -- . :!.gdn with the -- before the pathspecs, not between them. The -- separator tells git that everything after it should be treated as pathspecs, not options. Without proper placement, the command may not correctly interpret :!.gdn as an exclusion pattern.

Suggested change
git rm -rf . -- :!.gdn
git rm -rf -- . :!.gdn

Copilot uses AI. Check for mistakes.
@github-actions
Copy link

📊 Code Coverage Report

🔥 Diff Coverage

100%


🎯 Overall Coverage

76%


📈 Total Lines Covered: 5379 out of 7037
📁 Project: mssql-python


Diff Coverage

Diff: main...HEAD, staged and unstaged changes

No lines with coverage information in this diff.


📋 Files Needing Attention

📉 Files with overall lowest coverage (click to expand)
mssql_python.pybind.logger_bridge.hpp: 58.8%
mssql_python.pybind.logger_bridge.cpp: 59.2%
mssql_python.row.py: 66.2%
mssql_python.helpers.py: 67.5%
mssql_python.pybind.ddbc_bindings.cpp: 69.3%
mssql_python.pybind.connection.connection.cpp: 73.6%
mssql_python.ddbc_bindings.py: 79.6%
mssql_python.connection.py: 83.9%
mssql_python.cursor.py: 84.4%
mssql_python.__init__.py: 84.9%

🔗 Quick Links

⚙️ Build Summary 📋 Coverage Details

View Azure DevOps Build

Browse Full Coverage Report

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-size: small Minimal code update

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants