Skip to content

Commit

Permalink
ci: adding workflow for pr conventions (#2089)
Browse files Browse the repository at this point in the history
* ci: adding workflow for pr conventions
  • Loading branch information
hamza-m-masood authored and aabouzaid committed Jul 13, 2024
1 parent 9dd16fc commit 5fa86fd
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/pr-conventions.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Repo - Pull Request Conventions

on:
pull_request:
types: [opened, edited, synchronize, reopened]

jobs:
lint-format:
runs-on: ubuntu-latest

steps:
- uses: amannn/action-semantic-pull-request@v5.5.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
types: |
feat
fix
refactor
test
docs
style
build
ci
chore
chore(deps)
# Configure additional validation for the subject based on a regex.
# Ensures the subject doesn't start with an uppercase character.
subjectPattern: ^(?![A-Z]).+$
# When using "Squash and merge" on a PR with only one commit, GitHub
# will suggest using that commit message instead of the PR title for the
# merge commit, and it's easy to commit this by mistake. Enable this option
# to also validate the commit message for one commit PRs.
validateSingleCommit: true

0 comments on commit 5fa86fd

Please sign in to comment.