Skip to content

docs: document oasdiff.yaml config-file support in free actions#110

Merged
reuvenharrison merged 1 commit intomainfrom
docs/oasdiff-yaml-config
May 8, 2026
Merged

docs: document oasdiff.yaml config-file support in free actions#110
reuvenharrison merged 1 commit intomainfrom
docs/oasdiff-yaml-config

Conversation

@reuvenharrison
Copy link
Copy Markdown
Contributor

Summary

Documents that the free actions (diff, breaking, changelog) inherit oasdiff.yaml from the repo root automatically — no extra wiring needed.

Why

The free actions are CLI wrappers. The CLI already looks up oasdiff.yaml from cwd, and GitHub Actions sets the runner cwd to $GITHUB_WORKSPACE (the checked-out repo root). So dropping oasdiff.yaml at the repo root just works — but nothing in the README told users that.

What's in the diff

A new "Configuring with oasdiff.yaml" section under "Free actions" with:

  • A runnable YAML example using only documented flags
  • A pointer to CONFIG-FILES.md for the full reference
  • The precedence rule (action inputs: override config-file values)
  • A footnote about the only known limitation: boolean flags can be enabled but not disabled via action input — to override a YAML composed: true to false, edit the YAML

Test plan

  • Read the rendered README on GitHub
  • Verify the cross-link to CONFIG-FILES.md resolves

The free actions (diff, breaking, changelog) are CLI wrappers; the
underlying CLI already looks up oasdiff.yaml from cwd, and GitHub
Actions sets the runner cwd to $GITHUB_WORKSPACE. So drop oasdiff.yaml
at the repo root and the actions pick it up automatically.

Adds a "Configuring with oasdiff.yaml" section under Free actions with
a runnable example, the precedence rule (action inputs override YAML),
and the boolean-only-enable-via-input limitation as a footnote.
@reuvenharrison reuvenharrison merged commit 36d231a into main May 8, 2026
24 checks passed
reuvenharrison added a commit that referenced this pull request May 8, 2026
…ng (#111)

Three follow-up tweaks to #110:

- Add a Contents TOC at the top so readers can jump to the right
  section in a now-sizeable README.
- Move the "Configuring with oasdiff.yaml" subsection from the start
  of "Free actions" to the end, so readers see the three actions
  first and discover the shared config option after.
- Fix wording in the Limitation note: the previous version said
  "boolean flags can only be enabled through an action input" but
  also "passing composed: 'false' has no effect", which is contra-
  dictory. The new wording — "action inputs can only turn a boolean
  flag on, not off" — describes what the entrypoint actually does.
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