xanzy / go-gitlab

GitLab Go SDK
Apache License 2.0
2.37k stars 941 forks source link

Adds `mirror_branch_regex` option for project push and pull mirrors #1833

Closed anguswilliams closed 10 months ago

anguswilliams commented 10 months ago

Allows the mirror_branch_regex option to be set on project push and pull mirrors. Note that mirror_branch_regex can only be set after a project is created for pull mirrors, so I've only set it in the EditProjectOptions struct. It also isn't retured when getting a projects details.

Closes #1832

https://gitlab.com/gitlab-org/gitlab/-/merge_requests/102608 https://docs.gitlab.com/ee/api/remote_mirrors.html#create-a-pull-mirror

anguswilliams commented 10 months ago

@svanharmelen would you mind reviewing this please :)