Skip to content

Sync .github directory with azure-sdk-tools for PR 15134#48819

Open
azure-sdk wants to merge 2 commits intomainfrom
sync-.github-copilot/add-github-action-link-to-comment-15134
Open

Sync .github directory with azure-sdk-tools for PR 15134#48819
azure-sdk wants to merge 2 commits intomainfrom
sync-.github-copilot/add-github-action-link-to-comment-15134

Conversation

@azure-sdk
Copy link
Copy Markdown
Collaborator

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

Copilot AI review requested due to automatic review settings April 15, 2026 21:10
@azure-sdk azure-sdk requested a review from a team as a code owner 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

Synchronizes the post-apiview GitHub Actions workflow with changes from azure-sdk-tools PR 15134, intending to pass the GitHub Actions run URL into the APIView PR comment logic.

Changes:

  • Pass a new -GitHubActionRunUrl argument to Set-ApiViewCommentForRelatedIssues.
  • Add GITHUB_ACTION_RUN_URL environment variable construction for the workflow run URL.

Comment on lines +34 to +37
Set-ApiViewCommentForRelatedIssues -HeadCommitish ${{ github.event.check_run.head_sha }} -AuthToken ${{ secrets.GITHUB_TOKEN }} -GitHubActionRunUrl $env:GITHUB_ACTION_RUN_URL
shell: pwsh
env:
GITHUB_ACTION_RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
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.

Set-ApiViewCommentForRelatedIssues in eng/common/scripts/Helpers/ApiView-Helpers.ps1 only declares parameters HeadCommitish, APIViewHost, and AuthToken (no GitHubActionRunUrl). Passing -GitHubActionRunUrl here will cause the workflow step to fail with an unknown parameter error. Either remove this argument/env var from the workflow, or update ApiView-Helpers.ps1 in this repo to accept/use GitHubActionRunUrl (matching the synced azure-sdk-tools change).

Suggested change
Set-ApiViewCommentForRelatedIssues -HeadCommitish ${{ github.event.check_run.head_sha }} -AuthToken ${{ secrets.GITHUB_TOKEN }} -GitHubActionRunUrl $env:GITHUB_ACTION_RUN_URL
shell: pwsh
env:
GITHUB_ACTION_RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
Set-ApiViewCommentForRelatedIssues -HeadCommitish ${{ github.event.check_run.head_sha }} -AuthToken ${{ secrets.GITHUB_TOKEN }}
shell: pwsh

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