This repository has been archived by the owner on Jul 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Update .github/workflows/semantic-pull-request.yml [skip ci]
- Loading branch information
Showing
1 changed file
with
2 additions
and
30 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,4 +1,4 @@ | ||
name: "Semantic PR" | ||
name: Semantic PR | ||
|
||
on: | ||
pull_request_target: | ||
|
@@ -9,32 +9,4 @@ on: | |
|
||
jobs: | ||
main: | ||
name: Validate PR title | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: amannn/action-semantic-pull-request@b6bca70dcd3e56e896605356ce09b76f7e1e0d39 # v5.1.0 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
# Configure which types are allowed (newline delimited). | ||
types: | | ||
feat | ||
fix | ||
chore | ||
docs | ||
deps | ||
test | ||
refactor | ||
ci | ||
requireScope: false | ||
|
||
- name: Check PR title length | ||
env: | ||
TITLE: ${{ github.event.pull_request.title }} | ||
run: | | ||
title_length=${#TITLE} | ||
if [ $title_length -gt 72 ] | ||
then | ||
echo "PR title is too long (greater than 72 characters)" | ||
exit 1 | ||
fi | ||
uses: pl-strflt/.github/.github/workflows/[email protected] |