Skip to content

Releases: TrianaLab/pacto-actions

v1.8.2

Choose a tag to compare

@github-actions github-actions released this 30 Jun 10:38
3ae2660

What's Changed

  • build(deps): bump actions/cache from 5.0.3 to 5.0.5 by @dependabot[bot] in #15
  • build(deps): bump actions/checkout from 6.0.2 to 6.0.3 by @dependabot[bot] in #16
  • build(deps): bump actions/checkout from 6.0.3 to 7.0.0 by @dependabot[bot] in #17
  • build(deps): bump actions/cache from 5.0.5 to 6.0.0 by @dependabot[bot] in #18
  • fix(setup): handle pacto v2 multiline version output + suppress update checks by @edu-diaz in #19

New Contributors

Full Changelog: v1...v1.8.2

v1.8.1

Choose a tag to compare

@github-actions github-actions released this 30 Apr 09:54
5a210e8

What's Changed

  • fix: avoid unbound array expansion on macOS bash 3 by @edu-diaz in #14
  • fix: add CI, dependabot, and auto-release workflows by @edu-diaz in #13

Full Changelog: v1...v1.8.1

v1.8.0

Choose a tag to compare

@edu-diaz edu-diaz released this 30 Apr 07:35
702bc7d

What's New

Collapsible large tables in PR comments

Markdown tables longer than 15 lines posted by the diff and doc commands as PR comments are now wrapped in a <details> block, so big contracts no longer produce huge unscrollable comments.

  • Small tables render inline as before.
  • Tables inside fenced code blocks are left untouched.
  • Only applies to markdown output — text and json diff output are unaffected.

v1.7.0

Choose a tag to compare

@edu-diaz edu-diaz released this 20 Mar 11:53
a29304c

What's New

Override support for all commands

Added values and set inputs for validate, diff, doc, and push commands. Added diff-specific old-values, old-set, new-values, new-set inputs for applying overrides to each side independently.

This enables breaking change simulation without file edits:

- uses: trianalab/pacto-actions@v1
  with:
    command: diff
    old: oci://ghcr.io/my-org/my-service
    new: ./pactos/my-service
    new-set: |
      service.version=2.0.0
      interfaces[0].port=9090

New inputs

Input Commands Description
values validate, diff, doc, push Values file(s) to merge into the contract
set validate, diff, doc, push Set contract values inline
old-values diff Values file(s) for the old contract
old-set diff Inline overrides for the old contract
new-values diff Values file(s) for the new contract
new-set diff Inline overrides for the new contract

v1.6.0

Choose a tag to compare

@edu-diaz edu-diaz released this 18 Mar 19:43
7d24c6b

What's Changed

  • Use official install script from pacto repo for the setup command

v1.5.0

Choose a tag to compare

@edu-diaz edu-diaz released this 12 Mar 16:57
cbb0e88

What's New

  • Markdown output format for diff: Added markdown as a supported output-format option for the diff command. When used, step summaries and PR comments render the diff output as native markdown instead of wrapping it in code fences.

Usage

- uses: trianalab/pacto-actions@v1
  with:
    command: diff
    old: oci://ghcr.io/my-org/my-service:v1.0.0
    new: ./pactos/my-service
    output-format: markdown

v1.4.0

Choose a tag to compare

@edu-diaz edu-diaz released this 10 Mar 14:34
fdf82a1

What's New

  • validate command: Check contracts against the Pacto specification with structural, cross-field, and semantic rules

Usage

- uses: trianalab/pacto-actions@v1
  with:
    command: validate
    path: ./pactos/my-service

v1.3.0

Choose a tag to compare

@edu-diaz edu-diaz released this 10 Mar 13:24
137afc1

What's New

  • Diff PR comments: The diff command now supports comment-on-pr: 'true' to post diff results as a PR comment with breaking change status indicator (⚠️ / ✅)
  • Reliable diff comments: Diff comments are posted even when fail-on-breaking: true causes the step to fail, using always()
  • Unique PR comment markers: Comment markers now include the contract path/ref, so multiple invocations for different services produce independent comments instead of overwriting each other
  • Updated examples: README examples use tag-less OCI refs for automatic semver resolution

v1.2.1

Choose a tag to compare

@edu-diaz edu-diaz released this 10 Mar 08:37
62196cb

What's New

  • Automatic GH_TOKEN for all commands: The github-token input (defaults to GITHUB_TOKEN) is now passed as GH_TOKEN to all commands (diff, doc, push), removing the need for manual env configuration. Can be overridden via the github-token input.

v1.2.0

Choose a tag to compare

@edu-diaz edu-diaz released this 10 Mar 07:43
93cf402

What's New

  • OCI bundle caching: Persist ~/.cache/pacto/oci/ across workflow runs using actions/cache@v4, enabled by default. Speeds up repeated operations against the same OCI references.
  • New cache input (default: true) to control caching. Set to false to bypass caching (equivalent to pacto --no-cache).