-
Notifications
You must be signed in to change notification settings - Fork 123
Refine GitHub endpoint filtering logic #1458
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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
GetTeamProjectGithubAppIdmethod, simplifying the endpoint lookup to only verify the endpoint type
Unit Test Results 1 files 1 suites 10m 23s ⏱️ Results for commit d5b7bed. ♻️ This comment has been updated with latest results. |
Co-authored-by: Copilot <[email protected]>
There was a problem hiding this 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.
There was a problem hiding this 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.
| (((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))); |
Copilot
AI
Nov 21, 2025
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
ThirdPartyNotices.txt(if applicable)Linked issue: #1453