Skip to content

ci: add apidiff workflow to detect breaking changes#362

Open
aojea wants to merge 1 commit into
google:mainfrom
aojea:apidiff
Open

ci: add apidiff workflow to detect breaking changes#362
aojea wants to merge 1 commit into
google:mainfrom
aojea:apidiff

Conversation

@aojea

@aojea aojea commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Adds a GitHub Actions job to compare the module API of a PR branch against the target branch. The job uses apidiff in module mode to detect incompatible changes or removed packages. Intentional breaking changes can be allowed by adding the 'breaking change allowed' label to the PR (this label needs to be created)

Adds a GitHub Actions job to compare the module API of a PR branch against the target branch.
The job uses `apidiff` in module mode to detect incompatible changes or removed packages.
Intentional breaking changes can be allowed by adding the 'breaking change allowed' label to the PR.
@aojea

aojea commented Jul 22, 2026

Copy link
Copy Markdown
Contributor Author

/assign @stapelberg

apidiff:
runs-on: ubuntu-latest
# Run only on pull requests, and skip if the PR has the 'breaking change allowed' label.
if: ${{ github.base_ref && !contains(github.event.pull_request.labels.*.name, 'breaking change allowed') }}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the label needs to be created to avoid having to override the job

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