Skip to content

Sync eng/common directory with azure-sdk-tools for PR 14293#48362

Open
azure-sdk wants to merge 1 commit intomainfrom
sync-eng/common-benbp/sync-skills-14293
Open

Sync eng/common directory with azure-sdk-tools for PR 14293#48362
azure-sdk wants to merge 1 commit intomainfrom
sync-eng/common-benbp/sync-skills-14293

Conversation

@azure-sdk
Copy link
Collaborator

Sync eng/common directory with azure-sdk-tools for PR Azure/azure-sdk-tools#14293 See eng/common workflow

@azure-sdk azure-sdk requested a review from a team as a code owner March 10, 2026 22:20
@azure-sdk azure-sdk requested review from benbp and Copilot March 10, 2026 22:20
@azure-sdk azure-sdk added EngSys This issue is impacting the engineering system. Central-EngSys This issue is owned by the Engineering System team. labels Mar 10, 2026
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

Syncs eng/common content with the upstream azure-sdk-tools changes (tools PR 14293), updating the enforcement logic and documentation around .github/* sync branches and restricted file patterns.

Changes:

  • Broadened .github sync branch naming expectations (from sync-.github/workflows to sync-.github).
  • Expanded the workflow enforcer’s restricted .github/* paths to include .github/skills/azsdk-common-*/**.
  • Updated enforcement messaging/display name to reflect broader .github scope.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
eng/common/scripts/Delete-RemoteBranches.ps1 Updates guidance comment for .github sync branch regex.
eng/common/pipelines/templates/steps/eng-common-workflow-enforcer.yml Broadens .github sync prefix check and expands restricted .github/* file patterns and messaging.

# We start from the sync PRs, use the branch name to get the PR number of central repo. E.g. sync-eng/common-(<branchName>)-(<PrNumber>). Have group name on PR number.
# For sync-eng/common work, we use regex as "^sync-eng/common.*-(?<PrNumber>\d+).*$".
# For sync-.github/workflows work, we use regex as "^sync-.github/workflows.*-(?<PrNumber>\d+).*$".
# For sync-.github work, we use regex as "^sync-.github.*-(?<PrNumber>\d+).*$".
Copy link

Copilot AI Mar 10, 2026

Choose a reason for hiding this comment

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

The example regex in this comment uses sync-.github, but in regex . matches any character. If this is intended to match the literal .github prefix, the dot should be escaped (e.g., sync-\.github). Otherwise readers copying this will end up matching more branches than intended.

Suggested change
# For sync-.github work, we use regex as "^sync-.github.*-(?<PrNumber>\d+).*$".
# For sync-.github work, we use regex as "^sync-\.github.*-(?<PrNumber>\d+).*$".

Copilot uses AI. Check for mistakes.
{
# This list needs to be kept in sync with the FilePatterns listed in eng/pipelines/eng-workflows-sync.yml
$filePatterns = @(".github/workflows/*event*", ".github/workflows/post-apiview.yml")
# This list needs to be kept in sync with the FilePatterns listed in eng/pipelines/eng-github-config-sync.yml
Copy link

Copilot AI Mar 10, 2026

Choose a reason for hiding this comment

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

This comment references eng/pipelines/eng-github-config-sync.yml, but that file doesn't exist in this repo. This makes the “kept in sync” instruction non-actionable/misleading; please either update the reference to an existing file/path in this repo or link to the corresponding file in azure-sdk-tools (since that’s where the source of truth appears to live).

Suggested change
# This list needs to be kept in sync with the FilePatterns listed in eng/pipelines/eng-github-config-sync.yml
# This list needs to be kept in sync with the FilePatterns listed in
# https://github.com/Azure/azure-sdk-tools/blob/main/eng/pipelines/eng-github-config-sync.yml

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Central-EngSys This issue is owned by the Engineering System team. EngSys This issue is impacting the engineering system.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants