question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add branch support for publishPacts

See original GitHub issue

Checklist

Before making a feature request, I have:

Feature description

As described in the pact documentation, we’re using branch to replace tag. But I can’t find how to set branch options when using publishPacts

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
TimothyJonescommented, Dec 14, 2021

All of the pact broker commands listed there should work in your npm script:

"pact:publish": "pact-broker publish ./pacts --consumer-app-version $(however-you-get-your-version) --branch $(however-you-get-your-branch)"
0reactions
TimothyJonescommented, Sep 20, 2022

The PR is above, #355

Read more comments on GitHub >

github_iconTop Results From Across the Web

Branches | Pact Docs
Adding explict support for branches allows the Pact Broker to provide simpler documentation, better messaging and sensible defaults.
Read more >
Add support for publishing verification results with branches
I have one question regarding our process described below and implementation of this issue: Generate pact.json from maven; Publish pacts using ...
Read more >
Pact Contracts in Deployment Pipelines | by Tom Muc
Branch development. It's a good practice to publish Pacts from your feature branches when developing the consumer code. This allows the provider ...
Read more >
@pact-foundation/pact - npm
The Pact family of frameworks provide support for Consumer Driven Contracts ... To use the library on your tests, add the pact dependency:....
Read more >
pact: pact maven plugin support record-deployment/releases?
There are no plans to add this command to the maven library. Our long term plan is to keep/move as much as possible...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found