-
Notifications
You must be signed in to change notification settings - Fork 31
FEAT: Sync ado with latest github automatically #371
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this 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 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
|
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.