Skip to content

refactor(objects): remove deprecated branch protect methods #1598

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

Merged
merged 1 commit into from
Oct 6, 2021

Conversation

nejch
Copy link
Member

@nejch nejch commented Sep 11, 2021

BREAKING CHANGE: remove deprecated branch protect methods in favor of
the more complete Protected branches API.

Closes #821.

@max-wittig WDYT about removing this completely? Then people will stop getting confused about the two APIs like in #1355 and #821. The endpoint still technically works, but the GitLab API docs removed it ages ago and they point to the dedicated protected branches API now (https://docs.gitlab.com/ee/api/branches.html#protect-repository-branch).

Last time we kept a deprecated endpoint (release via tags API) it bit us because GitLab then "silently" removed it. Just adding this to the list of breaking changes as the next scheduled job will trigger 3.0.0.

BREAKING CHANGE: remove deprecated branch protect methods in favor of
the more complete protected branches API.
@nejch nejch mentioned this pull request Sep 11, 2021
15 tasks
@nejch nejch assigned JohnVillalovos and unassigned max-wittig Oct 6, 2021
@JohnVillalovos JohnVillalovos enabled auto-merge (rebase) October 6, 2021 19:08
@JohnVillalovos JohnVillalovos merged commit 9656a16 into master Oct 6, 2021
@JohnVillalovos JohnVillalovos deleted the refactor/remove-deprecated-branch-protect branch October 6, 2021 19:09
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.

Additional branch.protect() fields
3 participants