mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-27 16:51:34 +00:00
chore: Update .github/workflows/semantic-pull-request.yml [skip ci]
This commit is contained in:
committed by
GitHub
parent
1a1635347d
commit
4910160bea
40
.github/workflows/semantic-pull-request.yml
vendored
Normal file
40
.github/workflows/semantic-pull-request.yml
vendored
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
name: "Semantic PR"
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request_target:
|
||||||
|
types:
|
||||||
|
- opened
|
||||||
|
- edited
|
||||||
|
- synchronize
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
main:
|
||||||
|
name: Validate PR title
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: amannn/action-semantic-pull-request@01d5fd8a8ebb9aafe902c40c53f0f4744f7381eb # v5.0.2
|
||||||
|
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
|
Reference in New Issue
Block a user