Skip to content

Conversation

@EricSoder
Copy link

@EricSoder EricSoder commented Nov 21, 2025

  • Did you write/update appropriate tests
  • Release notes updated (if appropriate)
  • Appropriate logging output
  • Issue linked
  • Docs updated (or issue created)
  • New package licenses are added to ThirdPartyNotices.txt (if applicable)

Linked issue: #1453

Copilot AI review requested due to automatic review settings November 21, 2025 11:57
Copilot finished reviewing on behalf of EricSoder November 21, 2025 11:59
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 PR removes the GitHub organization name validation check from the ADO service endpoint lookup logic. Previously, the code would match service endpoints by both type (GitHub or GitHubProximaPipelines) and organization name. Now it only matches by type, allowing any GitHub service connection to be found regardless of the organization name configured in the endpoint.

Key Changes

  • Removed the organization name check from GetTeamProjectGithubAppId method, simplifying the endpoint lookup to only verify the endpoint type

@github-actions
Copy link

github-actions bot commented Nov 21, 2025

Unit Test Results

  1 files    1 suites   10m 23s ⏱️
949 tests 949 ✅ 0 💤 0 ❌
950 runs  950 ✅ 0 💤 0 ❌

Results for commit d5b7bed.

♻️ This comment has been updated with latest results.

@EricSoder EricSoder requested a review from Copilot November 21, 2025 12:06
Copilot finished reviewing on behalf of EricSoder November 21, 2025 12:09
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

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

@EricSoder EricSoder changed the title Remove check for GitHub organization name Refine GitHub endpoint filtering logic Nov 21, 2025
@EricSoder EricSoder requested a review from Copilot November 21, 2025 12:23
Copilot finished reviewing on behalf of EricSoder November 21, 2025 12:25
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

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comment on lines +206 to +209
(((string)x["type"]).Equals("GitHub", StringComparison.OrdinalIgnoreCase) &&
((string)x["name"]).Equals(githubOrg, StringComparison.OrdinalIgnoreCase)) ||
(((string)x["type"]).Equals("GitHubProximaPipelines", StringComparison.OrdinalIgnoreCase) &&
((string)x["name"]).Equals(teamProject, StringComparison.OrdinalIgnoreCase)));
Copy link

Copilot AI Nov 21, 2025

Choose a reason for hiding this comment

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

[nitpick] This logic change refines how GitHubProximaPipelines endpoints are matched and appears to be a bug fix (matching against teamProject instead of githubOrg). According to the coding guidelines (item 5), changes that impact users such as bug fixes should have a bullet point added to RELEASENOTES.md with a user-friendly description. Consider adding a note about this fix.

Copilot uses AI. Check for mistakes.
Copy link
Author

Choose a reason for hiding this comment

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

@copilot open a new pull request to apply changes based on this feedback

@github-actions
Copy link

Code Coverage

Package Line Rate Branch Rate Complexity Health
ado2gh 72% 70% 712
Octoshift 83% 72% 1718
bbs2gh 83% 77% 653
gei 81% 72% 574
Summary 81% (7696 / 9559) 73% (1815 / 2495) 3657

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant