Skip to content

docs: configuring oasdiff with .oasdiff.yaml#115

Merged
reuvenharrison merged 1 commit into
mainfrom
docs/dot-oasdiff-yaml-config
May 10, 2026
Merged

docs: configuring oasdiff with .oasdiff.yaml#115
reuvenharrison merged 1 commit into
mainfrom
docs/dot-oasdiff-yaml-config

Conversation

@reuvenharrison
Copy link
Copy Markdown
Contributor

Summary

Add a "Configuring with .oasdiff.yaml" section to the README, explaining that all four actions (breaking, changelog, diff, pr-comment) automatically pick up .oasdiff.yaml from the checked-out repo root.

What it covers

  • A small example with common keys (fail-on, exclude-elements, err-ignore).
  • Precedence: action with: input > .oasdiff.yaml > built-in defaults.
  • Legacy oasdiff.yaml filename still works as a back-compat fallback; new projects should prefer the dotfile name.
  • OASDIFF_CONFIG env var for configs that live outside the repo root.
  • Cross-link to the oasdiff CONFIG-FILES.md for the full key reference.

Notes the feature is available since action v0.0.47 (which ships oasdiff v1.15.3).

Why now

The action is about to be tagged v0.0.47. The corresponding oasdiff v1.15.3 introduces the .oasdiff.* filename and --config / OASDIFF_CONFIG overrides. Action users currently have no documented path for using a config file with the action.

Add a Configuring section to the README explaining that all four
actions pick up .oasdiff.yaml from the checked-out repo root. Cover:

- the example shape with common keys (fail-on, exclude-elements,
  err-ignore)
- precedence (action input > YAML > defaults)
- legacy oasdiff.yaml fallback
- OASDIFF_CONFIG override for non-default paths
- cross-link to oasdiff/docs/CONFIG-FILES.md for the full reference

Available since action v0.0.47 (oasdiff v1.15.3).
@reuvenharrison reuvenharrison merged commit 6147a58 into main May 10, 2026
36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant