mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-07 12:26:18 +00:00
[bug] Fix API URLs for GitHub Enterprise Server (#2626)
* Fix API URLs for GHES Fix leading slashes causing API calls to fail when used with GitHub Enterprise. * Fix tests Fix tests that should have been updated in the previous commit. Co-authored-by: Keegan Campbell <me@kfcampbell.com>
This commit is contained in:
@@ -382,7 +382,7 @@ namespace Octokit.Tests.Reactive
|
||||
|
||||
client.GetReviewHistory("fake", "repo", 123);
|
||||
|
||||
connection.Connection.Received().Get<List<EnvironmentApprovals>>(Arg.Is<Uri>(u => u.ToString() == "/repos/fake/repo/actions/runs/123/approvals"),
|
||||
connection.Connection.Received().Get<List<EnvironmentApprovals>>(Arg.Is<Uri>(u => u.ToString() == "repos/fake/repo/actions/runs/123/approvals"),
|
||||
null);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user