-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into severin/update-rust
- Loading branch information
Showing
61 changed files
with
3,278 additions
and
2,049 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
name: Check PR title | ||
on: | ||
pull_request_target: | ||
pull_request: | ||
types: | ||
- opened | ||
- reopened | ||
|
@@ -9,13 +9,22 @@ on: | |
|
||
jobs: | ||
check: | ||
name: conventional-pr-title:required | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: dfinity/[email protected] | ||
with: | ||
success-state: Title follows the specification. | ||
failure-state: Title does not follow the specification. | ||
context-name: conventional-pr-title | ||
preset: conventional-changelog-angular@latest | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# Conventional commit patterns: | ||
# verb: description | ||
# verb!: description of breaking change | ||
# verb(scope): Description of change to $scope | ||
# verb(scope)!: Description of breaking change to $scope | ||
# verb: feat, fix, ... | ||
# scope: refers to the part of code being changed. E.g. " (accounts)" or " (accounts,canisters)" | ||
# !: Indicates that the PR contains a breaking change. | ||
- run: | | ||
if [[ "${{ github.event.pull_request.title }}" =~ ^(feat|fix|chore|build|ci|docs|style|refactor|perf|test)(\([-a-zA-Z0-9,]+\))?\!?\: ]]; then | ||
echo pass | ||
else | ||
echo "PR title does not match conventions" | ||
echo "PR title: ${{ github.event.pull_request.title }}" | ||
exit 1 | ||
fi |
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
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
Oops, something went wrong.