Skip to content

Commit

Permalink
docs: add clarification to delete-branch command
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Nov 11, 2023
1 parent 7973602 commit 1dec798
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,7 @@ Options:
# Default: false
```

Deletes a pacticipant branch. Does not delete the versions or pacts associated with the branch, but does make them inaccessible for verification via consumer versions selectors or WIP pacts.
Deletes a pacticipant branch. Does not delete the versions or pacts/verifications associated with the branch, but does make the pacts inaccessible for verification via consumer versions selectors or WIP pacts.

### Tags

Expand Down
3 changes: 2 additions & 1 deletion lib/pact_broker/client/cli/branch_commands.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ def self.included(thor)
method_option :error_when_not_found, type: :boolean, default: true, desc: "Raise an error if the branch that is to be deleted is not found."
shared_authentication_options

desc "delete-branch", "Deletes a pacticipant branch. Does not delete the versions or pacts associated with the branch, but does make them inaccessible for verification via consumer versions selectors or WIP pacts."
desc "delete-branch", "Deletes a pacticipant branch. Does not delete the versions or pacts/verifications associated with the branch, but does make the pacts inaccessible for verification via consumer versions selectors or WIP pacts."

def delete_branch
require "pact_broker/client/branches/delete_branch"

Expand Down

0 comments on commit 1dec798

Please sign in to comment.