-
Notifications
You must be signed in to change notification settings - Fork 952
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add more GitHub import API support #1942
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You missed a copy/paste change with this one and I also have a question about the type you added. Rest looks great again 👍🏻
types.go
Outdated
const ( | ||
Optimistic ImportTimeoutStrategy = "optimistic" | ||
Pessimistic ImportTimeoutStrategy = "pessimistic" | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see any code using this type. If that is correct, why did you add it and/or should it be deleted instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You were right, it wasn't being used. I was originally planning to add the BitBucket import API endpoints as well, which was using this type but the API documentation in GitLab was incomplete so I decided to take it out for now. I missed this type though, good catch, thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @heidiberry 👍🏻
Adds the Import API endpoints for cancelling a GitHub import and importing GitHub gists into personal GitLab snippets.