Skip to content

Sync eng/common directory with azure-sdk-tools for PR 15134#48820

Open
azure-sdk wants to merge 5 commits intomainfrom
sync-eng/common-copilot/add-github-action-link-to-comment-15134
Open

Sync eng/common directory with azure-sdk-tools for PR 15134#48820
azure-sdk wants to merge 5 commits intomainfrom
sync-eng/common-copilot/add-github-action-link-to-comment-15134

Conversation

@azure-sdk
Copy link
Copy Markdown
Collaborator

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

@azure-sdk azure-sdk requested a review from a team as a code owner April 15, 2026 21:10
Copilot AI review requested due to automatic review settings April 15, 2026 21:10
@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 Apr 15, 2026
Copy link
Copy Markdown
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 with azure-sdk-tools PR 15134 by enhancing the APIView PR comment generation to optionally include a link back to the GitHub Actions run that produced the comment.

Changes:

  • Added an optional GitHubActionRunUrl parameter to APIView comment helper functions.
  • Appended a footer to the generated PR comment that links to the triggering workflow run when the URL is provided.

$AuthToken,
[string]$GitHubActionRunUrl = ""
)
. ${PSScriptRoot}\..\common.ps1
Copy link

Copilot AI Apr 15, 2026

Choose a reason for hiding this comment

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

GitHubActionRunUrl is added to support a workflow-run link in the generated PR comment, but in this repo the only invocation of Set-ApiViewCommentForRelatedIssues (in .github/workflows/post-apiview.yml) doesn’t pass this parameter. As a result, the new footer will never be emitted. Consider wiring the workflow to pass the current run URL (or remove the parameter/footer if it’s not intended to be used here).

Suggested change
. ${PSScriptRoot}\..\common.ps1
. ${PSScriptRoot}\..\common.ps1
if ([string]::IsNullOrWhiteSpace($GitHubActionRunUrl)) {
$githubServerUrl = $env:GITHUB_SERVER_URL
$githubRepository = $env:GITHUB_REPOSITORY
$githubRunId = $env:GITHUB_RUN_ID
if (-not [string]::IsNullOrWhiteSpace($githubServerUrl) `
-and -not [string]::IsNullOrWhiteSpace($githubRepository) `
-and -not [string]::IsNullOrWhiteSpace($githubRunId)) {
$GitHubActionRunUrl = "$githubServerUrl/$githubRepository/actions/runs/$githubRunId"
}
}

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.

4 participants