FEAT: Sync ado with latest github automatically#371
Merged
gargsaumya merged 1 commit intomainfrom Dec 15, 2025
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request introduces an automated Azure DevOps pipeline to synchronize the main branch from the public GitHub repository (microsoft/mssql-python) to the internal Azure DevOps repository on a daily schedule. The pipeline creates timestamped sync branches, performs a hard reset to match GitHub's state exactly, and automatically creates pull requests for review before merging changes into the ADO main branch.
Key Changes:
- Added scheduled pipeline running daily at 5pm IST (11:30 UTC) to automatically sync GitHub changes to Azure DevOps
- Implemented automated PR creation with pre-configured reviewers and auto-complete settings
- Configured branch cleanup to delete sync branches after PR completion
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
471266f to
ea47fc2
Compare
📊 Code Coverage Report
Diff CoverageDiff: main...HEAD, staged and unstaged changesNo 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.pybind.ddbc_bindings.cpp: 66.3%
mssql_python.helpers.py: 67.5%
mssql_python.pybind.connection.connection.cpp: 73.6%
mssql_python.ddbc_bindings.py: 79.6%
mssql_python.connection.py: 83.7%
mssql_python.cursor.py: 84.3%
mssql_python.logging.py: 85.3%🔗 Quick Links
|
sumitmsft
approved these changes
Dec 15, 2025
subrata-ms
approved these changes
Dec 15, 2025
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Work Item / Issue Reference
Summary
This pull request introduces a new Azure DevOps pipeline configuration to automate daily synchronization of the
mainbranch from the public GitHub repository to the internal Azure DevOps repository. The pipeline clones the GitHub repository, creates a timestamped sync branch, resets it to match the GitHubmainexactly, pushes it to Azure DevOps, and opens a pull request for review. This ensures the internal repository stays up-to-date with the public source.Key additions in the new pipeline:
Pipeline Automation for GitHub-to-ADO Sync
OneBranchPipelines/github-ado-sync.ymlto automate daily sync from GitHub to Azure DevOps, scheduled at 5pm IST.main, and resets it to match GitHub'smainbranch exactly.main, including reviewer assignment and clean-up steps.