Skip to content
Closed
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions src/Octoshift/Services/AdoApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -201,12 +201,13 @@ private async Task<string> GetTeamProjectGithubAppId(string org, string githubOr
{
var url = $"{_adoBaseUrl}/{org.EscapeDataString()}/{teamProject.EscapeDataString()}/_apis/serviceendpoint/endpoints?api-version=6.0-preview.4";
var response = await _client.GetWithPagingAsync(url);

var endpoint = response.FirstOrDefault(x =>
(((string)x["type"]).Equals("GitHub", StringComparison.OrdinalIgnoreCase) ||
((string)x["type"]).Equals("GitHubProximaPipelines", StringComparison.OrdinalIgnoreCase)) &&
((string)x["name"]).Equals(githubOrg, StringComparison.OrdinalIgnoreCase));

(((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)));
Comment on lines +206 to +209
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
Collaborator 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

Copy link
Collaborator

Choose a reason for hiding this comment

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

@EricSoder can you add release notes


return endpoint != null ? (string)endpoint["id"] : null;
}

Expand Down
Loading