Repository navigation
v0.2.0
The pull-request comment now lists the changes, and oasdiff Pro is the action you already run with a token added. Two behaviors of the changelog action change; see "Upgrading" below.
Highlights
The PR comment lists the changes
The comment the breaking and changelog actions post used to be a link to the review. It now says how many changes there are and lists them, most severe first, each with its check id and endpoint. Five rows stay open and up to fifty more collapse under them, so a reviewer reads what changed without leaving the pull request (#214).
⚠️ 3 breaking changes in this pull request
severity change endpoint error removed the success response with the status 200response-success-status-removedPOST /api/v1.0/groups...
Pro on the breaking action
oasdiff Pro used to need the changelog action. With an oasdiff-token, breaking now uploads an authenticated review of the breaking changes, posts the review comment and sets the oasdiff commit status, so upgrading a workflow built on breaking is one input and one permission (#216):
permissions:
contents: read
pull-requests: write
statuses: write
# ...
- uses: oasdiff/oasdiff-action/breaking@v0.2.0
with:
base: 'origin/${{ github.base_ref }}:openapi.yaml'
revision: 'HEAD:openapi.yaml'
oasdiff-token: ${{ secrets.OASDIFF_TOKEN }}If the step also sets fail-on: ERR or WARN, keep it. The job fails until every breaking change is approved and passes on the next run after that, so a job that is a required check keeps blocking the merge (#220).
changelog can fail a job, and annotates
changelog takes fail-on, including INFO and MISSING-VERSION-BUMP (#216), and writes inline annotations on the Files changed tab for changes at error and warning level, as breaking does (#217).
config input
breaking and changelog take config, the path to an oasdiff config file, for a repository that does not keep .oasdiff.yaml at its root (#216).
Upgrading
Both of these affect existing changelog workflows:
- A
fail-onin.oasdiff.yamlis now honored bychangelog. The action used to ignore it there while honoringlevelfrom the same file. A workflow whose config file setsfail-oncan start failing where it used to pass. changelogwrites annotations. Pull requests with error or warning changes get inline annotations they did not get before. Outputs and the report are unchanged.
Fixes
- A comment that cannot be posted says what to change. A job without
permissions: pull-requests: writegets a warning naming the permission. A pull request from a fork, where GitHub makes the token read-only, gets a plain line saying the link is in the job summary, since no permission helps there (#214). - The README documents the inputs once.
breakinglists the ten inputs that describe a run,changelogrefers to that list, and the oasdiff flags are pointed at.oasdiff.yaml. It also gains a section on pull requests from forks, and itsseverity-levelsexample no longer names check ids that oasdiff v1.38.0 retired (#218, #219). breakingandchangelognow run from one script. Theiruses:paths, inputs, outputs and defaults are unchanged (#215).
Known issue
With an oasdiff-token, fail-on: MISSING-VERSION-BUMP is not cleared by approving the changes, but while the review is pending the job's notice says it will be. For that value, the way to clear the failure is a major version increase in info.version. A fix follows.
Full Changelog: v0.1.24...v0.2.0