Closed oba11 closed 2 years ago
Hi @oba11 , could you try using GetReposGitRefByOwnerByRepoByRef
instead?
By looking inside the go-github GetRef()
definitions, looks like it's requesting "repos/%v/%v/git/ref/%v"
. This URL doesn't match PostReposGitRefsByOwnerByRepo
but it should work with GetReposGitRefByOwnerByRepoByRef
.
:+1:
@migueleliasweb my apologies, it was a typo which I've corrected. I tried it with GetReposGitRefByOwnerByRepoByRef
but didn't seem to work
I will have a better look soon, @oba11 .
Thank you @migueleliasweb 🙏
Hi @oba11 , could you check for me if your problem is similar to this one? https://github.com/migueleliasweb/go-github-mock/issues/26#issuecomment-1080465128
@migueleliasweb yes you are right, I just tested https://github.com/migueleliasweb/go-github-mock@allow-extended-last-parameters and it works. Thanks alot
Closing in favour of https://github.com/migueleliasweb/go-github-mock/issues/26
Thank you
I tried mocking
Git.GetRef
but unable to make it workI tried similar mock with
c.Git.CreateRef
and works fine. Anything I'm doing wrong that should be changed?