GitHub Action
Report Breaking Changes
This GitHub action automatically detects breaking changes by scanning the messages of commits pushed to your repository for conventional commit syntax. For each commit that signals a breaking change, its message content will be posted as a comment on a preselected/predetermined GitHub issue and/or discussion (whose number is specified via the action's inputs). The action will error if neither an issue or discussion is specified, although both may be specified. The order of commits are preserved and are reflected in the order of the comments. Such a discussion or issue not only serves as a central, autonomous, chronological log of breaking changes, but also as a source of breaking change notifications for users who subscribe to the issue/discussion.
- name: Report Breaking Changes
uses: tmillr/breaking-change@v1
# Only trigger step on push events occurring on your release branch
if: ${{ github.event_name == 'push' && github.ref_name == 'main' }}
with:
# The token to be used for posting the comments
token: ${{ github.token }}
# Issue and/or discussion number where breaking changes should be reported
issueNumber: 1
discussionNumber: 2
Key | Description | Required | Default |
---|---|---|---|
token |
The token used for posting the comments (e.g. github.token). | true |
|
issueNumber |
(integer) Issue to comment on for each breaking change commit found. May be combined with discussionNumber. | false |
|
discussionNumber |
(integer) Discussion to comment on for each breaking change commit found. May be combined with issueNumber. | false |
|
headerLevel |
(integer) Header level for the commit message title/subject (1-6, or false to disable header styling of commit title). | false |
3 |
Key | Description |
---|---|
found |
(boolean) Whether a breaking change was detected. |
- Lock the issue/discussion used for reporting breaking changes (only allow maintainers etc. to comment).
-
Using the issue/discussion method alone, it may not be clear or obvious which reported breaking changes belong to which versions/releases of the software.
-
Only detects conventional commits.