Skip to content

Sync eng/common directory with azure-sdk-tools for PR 10857 #6624

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

Merged

Conversation

azure-sdk
Copy link
Collaborator

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

@azure-sdk azure-sdk requested a review from a team as a code owner June 12, 2025 00:58
@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 Jun 12, 2025
Copy link
Contributor

@Copilot 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 syncs the eng/common directory with updates from azure-sdk-tools, introducing changes to parameter handling in API call scripts.

  • Updated Search-GitHubIssues to accept an additional AuthToken parameter and construct the Invoke-RestMethod call using a parameters hashtable.
  • Modified the ApiView-Helpers script to pass the new AuthToken parameter when fetching GitHub issues.

Reviewed Changes

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

File Description
eng/common/scripts/Invoke-GitHubAPI.ps1 Added AuthToken parameter and refactored REST API call to include conditional header initialization.
eng/common/scripts/Helpers/ApiView-Helpers.ps1 Updated function call to Search-GitHubIssues to include the AuthToken parameter.
Comments suppressed due to low confidence (2)

eng/common/scripts/Invoke-GitHubAPI.ps1:564

  • [nitpick] Consider adding parameter attributes and inline documentation for $AuthToken to clarify its expected type and usage.
$AuthToken

eng/common/scripts/Helpers/ApiView-Helpers.ps1:135

  • [nitpick] Ensure that the corresponding help text or documentation is updated to reflect the newly required AuthToken parameter.
$issuesForCommit = Search-GitHubIssues -CommitHash $HeadCommitish -AuthToken $AuthToken

@chidozieononiwu chidozieononiwu merged commit 257e9f4 into main Jun 12, 2025
27 of 44 checks passed
@chidozieononiwu chidozieononiwu deleted the sync-eng/common-UserAuthTokenForSearchAPI-10857 branch June 12, 2025 02:55
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.

2 participants