Skip to content

feat: add err-ignore and warn-ignore to breaking action#82

Merged
reuvenharrison merged 2 commits intomainfrom
feat/err-warn-ignore
Mar 21, 2026
Merged

feat: add err-ignore and warn-ignore to breaking action#82
reuvenharrison merged 2 commits intomainfrom
feat/err-warn-ignore

Conversation

@reuvenharrison
Copy link
Contributor

@reuvenharrison reuvenharrison commented Mar 21, 2026

Closes #66

Exposes --err-ignore and --warn-ignore as inputs on the breaking action, letting users suppress specific false-positive changes by providing a file of regex patterns.

Changes

  • breaking/action.yml: add err-ignore and warn-ignore inputs
  • breaking/entrypoint.sh: pass --err-ignore / --warn-ignore flags when set
  • specs/err-ignore.txt: test fixture — ignores endpoint-deleted
  • .github/workflows/test.yaml: add oasdiff_breaking_err_ignore job that verifies the error is suppressed
  • README.md: add err-ignore and warn-ignore rows to the breaking action table

Test plan

  • CI passes with new oasdiff_breaking_err_ignore test job
  • With err-ignore: specs/err-ignore.txt, a spec pair that normally produces 1 error returns No breaking changes

🤖 Generated with Claude Code

reuvenharrison and others added 2 commits March 21, 2026 15:25
Expose --err-ignore and --warn-ignore CLI flags as action inputs so users
can suppress specific false-positive breaking changes by pattern.

Closes #66

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
MatchIgnore requires the line to contain both 'METHOD /path' and the
localized change text. Update to: 'GET /pets api removed without deprecation'

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@reuvenharrison reuvenharrison merged commit b6a4ed5 into main Mar 21, 2026
24 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.

feat: support --err-ignore and --warn-ignore

1 participant