Corrects request endpoint (#1650)

* Fixes typo in repo endpoint

* Update CHANGELOG.md

* Fix the test to mock the correct endpoint

Co-authored-by: Joel Speed <Joel.speed@hotmail.co.uk>
This commit is contained in:
adamsong
2022-05-25 20:05:12 +01:00
committed by GitHub
co-authored by Joel Speed
parent c6a98369a0
commit fc686ae95c
3 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -312,7 +312,7 @@ func (p *GitHubProvider) hasRepo(ctx context.Context, accessToken string) (bool,
endpoint := &url.URL{
Scheme: p.ValidateURL.Scheme,
Host: p.ValidateURL.Host,
Path: path.Join(p.ValidateURL.Path, "/repo/", p.Repo),
Path: path.Join(p.ValidateURL.Path, "/repos/", p.Repo),
}
var repo repository