-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Adds PR check that verifies migration guide when flagged as br…
…eaking change (#2141) * create action * check label * check also title * check only title * check migration folder * test add file * use path filter * simplify if condition * Revert "test add file" This reverts commit d0e82c7. * change existing guide * Revert "change existing guide" This reverts commit d56a75c. * message * Revert "Revert "change existing guide"" This reverts commit 193ff9d. * Revert "Revert "Revert "change existing guide""" This reverts commit 60e26d1. * doc * update PR template
- Loading branch information
Showing
3 changed files
with
23 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Check migration guide | ||
|
||
on: | ||
pull_request: | ||
types: [opened, reopened, synchronize, edited] | ||
|
||
jobs: | ||
check: | ||
if: ${{ contains(github.event.pull_request.title, '!') }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 | ||
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 | ||
id: changes | ||
with: | ||
filters: | | ||
guides: | ||
- 'website/docs/guides/**' | ||
- if: ${{ steps.changes.outputs.guides == 'false' }} | ||
run: echo "PR with breaking changes but no migration guide was created or updated" && exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters