Skip to content

ci: label breaking api changes from committed diffs#2265

Merged
zeitlinger merged 2 commits into
mainfrom
ci/detect-breaking-api-change-label
Jul 2, 2026
Merged

ci: label breaking api changes from committed diffs#2265
zeitlinger merged 2 commits into
mainfrom
ci/detect-breaking-api-change-label

Conversation

@zeitlinger

Copy link
Copy Markdown
Member

Summary

  • detect breaking markers in committed docs/apidiffs/current_vs_latest/ files
  • add the breaking-api-change label when committed API diffs contain ***!, ---!, or +++! markers
  • update the API-change PR comment and stability docs to describe the breaking-label flow

Why

The committed API diff files are the review artifact. Labeling PRs with breaking-api-change makes breaking changes visible in the PR UI without requiring a separate acceptance label.

Testing

  • mise run lint:fix

Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR enhances the API-diff review workflow by detecting “breaking change” markers inside committed API diff artifacts under docs/apidiffs/current_vs_latest/ and surfacing them via an additional PR label, plus documenting the behavior in the stability docs.

Changes:

  • Add breaking-api-change label automation when committed API diff files contain ***!, ---!, or +++! markers.
  • Update the API-change PR comment body to distinguish breaking vs non-breaking API diff changes.
  • Document the breaking-label flow in internal stability documentation.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
docs/content/internals/stability.md Documents the additional breaking-api-change label behavior for API diffs.
.github/workflows/detect-api-changes.yml Implements breaking-marker scanning in committed API diffs and applies/removes the new label accordingly.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/detect-api-changes.yml
Comment thread docs/content/internals/stability.md Outdated
Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
@zeitlinger zeitlinger merged commit 52124a3 into main Jul 2, 2026
17 checks passed
@zeitlinger zeitlinger deleted the ci/detect-breaking-api-change-label branch July 2, 2026 10:08
zeitlinger added a commit that referenced this pull request Jul 2, 2026
Blocked by #2265 - to make
sure that breaking api change is correctly flagged

## Summary
- deprecate the `OpenTelemetryExporter(MetricReader)` constructor
instead of treating it as stable API
- make the builder entry points the stable surface for
`OpenTelemetryExporter`
- grandfather the already-accepted constructor removal in the API diff
workflow so unrelated PRs stop inheriting the failure on `main`

## Testing
- mise run lint:fix
- mise run build
- ./mvnw -B verify -pl
prometheus-metrics-exporter-opentelemetry,prometheus-metrics-exporter-opentelemetry-shaded
-am -P 'api-diff,!examples-and-integration-tests' -DskipTests
-Dcoverage.skip=true -Dcheckstyle.skip=true -Dwarnings=-nowarn
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.

3 participants