Skip to content

Conversation

@gargsaumya
Copy link
Contributor

@gargsaumya gargsaumya commented Dec 15, 2025

Work Item / Issue Reference

AB#40703

GitHub Issue: #<ISSUE_NUMBER>


Summary

This pull request introduces a new Azure DevOps pipeline configuration to automate daily synchronization of the main branch 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 GitHub main exactly, 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

  • Added a new pipeline file OneBranchPipelines/github-ado-sync.yml to automate daily sync from GitHub to Azure DevOps, scheduled at 5pm IST.
  • The pipeline clones the public GitHub repository, creates a timestamped sync branch based on the latest Azure DevOps main, and resets it to match GitHub's main branch exactly.
  • Automates pushing the sync branch to Azure DevOps and creates a pull request targeting main, including reviewer assignment and clean-up steps.

Copilot AI review requested due to automatic review settings December 15, 2025 05:07
@github-actions github-actions bot added the pr-size: medium Moderate update size label Dec 15, 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 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.

@github-actions
Copy link

📊 Code Coverage Report

🔥 Diff Coverage

100%


🎯 Overall Coverage

75%


📈 Total Lines Covered: 5255 out of 7003
📁 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.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

⚙️ Build Summary 📋 Coverage Details

View Azure DevOps Build

Browse Full Coverage Report

@subrata-ms subrata-ms self-requested a review December 15, 2025 06:23
@gargsaumya gargsaumya merged commit a3fde2c into main Dec 15, 2025
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-size: medium Moderate update size

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants