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

feat: add support for delete-branch command #151

Merged
merged 5 commits into from
Nov 11, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
docs: add clarification to delete-branch command
bethesque committed Nov 11, 2023
commit 1dec7988965cdd302bf035ab50520a5f0ce60e41
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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

3 changes: 2 additions & 1 deletion lib/pact_broker/client/cli/branch_commands.rb
Original file line number Diff line number Diff line change
@@ -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"