Jx3 unable to create repo on gitlab using go-scm
Closed this issue · 6 comments
@jstrachan and the team of jx3 have finished migration of jx promote
and jx project
last week using go-scm
for all git repository operations. But when I used the lasted jx-cli to run jx project quickstart --git-user myusername --git-token mytoken --git-kind gitlab --pr-poll-timeout 30m0s
, it failed with this error message error: failed to create git repository myusername/projectname: json: cannot unmarshal array into Go value of type gitlab.gl_namespace
.
I also have encountered this error: error: failed to validate options: failed to create ScmClient: failed to find git token: could not find git token for git server mygitlaburl
when I randomly tried jx project spring --git-kind gitlab
.
I would be very grateful if anyone can take a look at this issue.
is it any format issue in this function? https://github.com/jenkins-x/go-scm/blob/master/scm/driver/gitlab/gitlab.go#L120
Hi, maintainers! I made a pr #192 to solve this issue, if anyone would love take a look and give it test.
Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale
.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close
.
Provide feedback via https://jenkins-x.io/community.
/lifecycle stale
Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten
.
Rotten issues close after an additional 30d of inactivity.
If this issue is safe to close now please do so with /close
.
Provide feedback via https://jenkins-x.io/community.
/lifecycle rotten
Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen
.
Mark the issue as fresh with /remove-lifecycle rotten
.
Provide feedback via https://jenkins-x.io/community.
/close
@jenkins-x-bot: Closing this issue.
In response to this:
Rotten issues close after 30d of inactivity.
Reopen the issue with/reopen
.
Mark the issue as fresh with/remove-lifecycle rotten
.
Provide feedback via https://jenkins-x.io/community.
/close
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the jenkins-x/lighthouse repository.