Skip to content

Commit cc79cc7

Browse files
authored
feat: Add GitHub annotations for breaking changes to a package's API (#298)
* feat: Add GitHub annotations for breaking changes to a package's API * docs: Update changelog with info about the GitHub annotations added to the API check workflow
1 parent 64f0c12 commit cc79cc7

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/_reusable-check-api-for-breaking-changes.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ jobs:
2525
run: |
2626
pip install --upgrade .
2727
pip install griffe
28+
- name: Post breaking changes as GitHub annotations
29+
continue-on-error: true
30+
run: |
31+
griffe check --format=github --against="$(git rev-parse origin/main)" --search=src "$PACKAGE_NAME"
2832
- name: Check API for breaking changes
2933
continue-on-error: true
3034
run: |

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ Things to be included in the next release go here.
2222

2323
- Bumped dependency versions.
2424

25+
### Added
26+
27+
- Added GitHub annotations to the `check-api-for-breaking-changes` workflow to enable better visibility into any breaking changes detected.
28+
2529
---
2630

2731
## v1.5.3 (2024-12-04)

0 commit comments

Comments
 (0)