Skip to content

Commit

Permalink
fix: Add consumer version selectors for deployedOrReleased, deployed,…
Browse files Browse the repository at this point in the history
… released and environment (#715)
  • Loading branch information
TimothyJones committed Sep 6, 2021
1 parent adece58 commit 1bf3b22
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -276,9 +276,14 @@ ConsumerVersionSelector {
tag?: string;
latest?: boolean;
consumer?: string;
deployedOrReleased?: boolean;
deployed?: boolean;
released?: boolean;
environment?: string;
fallbackTag?: string;
}
```

See the [Pact Broker documentation on selectors](https://docs.pact.io/pact_broker/advanced_topics/consumer_version_selectors) for more information.

### Pact Broker Publishing
Expand Down
9 changes: 6 additions & 3 deletions src/verifier/types.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
import { LogLevel } from '../logger/types';

export interface ConsumerVersionSelector {
pacticipant?: string;
tag?: string;
version?: string;
latest?: boolean;
all?: boolean;
consumer?: string;
deployedOrReleased?: boolean;
deployed?: boolean;
released?: boolean;
environment?: string;
fallbackTag?: string;
}

export interface VerifierOptions {
Expand Down

0 comments on commit 1bf3b22

Please sign in to comment.