Skip to content

Commit

Permalink
remove deprecated branch.unprotect() method in community.general.gitl…
Browse files Browse the repository at this point in the history
…ab_branch (#4496)

* remove deprecated branch.protect method

* add changelog fragment

* Update changelogs/fragments/4496-remove-deprecated-method-in-gitlab-branch-module.yml

Co-authored-by: Felix Fontein <[email protected]>

Co-authored-by: Felix Fontein <[email protected]>
  • Loading branch information
ethinx and felixfontein authored Apr 19, 2022
1 parent 9e537d4 commit a8abb1a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bugfixes:
- git_branch - remove deprecated and unnecessary branch ``unprotect`` method (https://github.com/ansible-collections/community.general/pull/4496).
1 change: 0 additions & 1 deletion plugins/modules/source_control/gitlab/gitlab_branch.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ def create_branch(self, branch, ref_branch):
return self.project.branches.create({'branch': branch, 'ref': ref_branch})

def delete_branch(self, branch):
branch.unprotect()
return branch.delete()


Expand Down

0 comments on commit a8abb1a

Please sign in to comment.