Skip to content
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 support for ci_default_git_depth #799

Merged
merged 1 commit into from Mar 13, 2020
Merged

Add support for ci_default_git_depth #799

merged 1 commit into from Mar 13, 2020

Conversation

tanordheim
Copy link
Contributor

@tanordheim tanordheim commented Mar 13, 2020

GitLab started exposing a ci_default_git_depth attribute for projects via their API a few months back (this MR), which maps to the "Git shallow clone"-settings under the CI/CD configuration for the project.

This PR adds support for that field when retrieving projects and when updating projects - I've tested that this works as expected on a local project here. I haven't added support for this to project creation as I'm not sure it even is exposed via the API and it wasn't part of the functionality I needed for my project here. If you'd like to add this as well, let me know and I can do a quick test of it before this gets merged.

Thanks!

Copy link
Member

@svanharmelen svanharmelen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @tanordheim! LGTM!

@svanharmelen svanharmelen merged commit e1bb384 into xanzy:master Mar 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants