Skip to content

Commit

Permalink
push diff validate pr yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Bhavyajain21 committed Mar 19, 2024
1 parent c56e339 commit 696fe76
Showing 1 changed file with 19 additions and 10 deletions.
29 changes: 19 additions & 10 deletions .github/workflows/validate-pr-title.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,23 @@
# This workflow validates pull request titles against Commitlint rules.
name: Validate PR Title
name: "Lint PR"

on:
pull_request:
pull_request:
types:
- opened
- edited
- synchronize
pull_request_target:
types:
- opened
- edited
- synchronize

jobs:
validate-title:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dreampulse/action-lint-pull-request-title@v3 # Action for title validation
with:
config: '.commitlintrc.js'
lint-pr:
name: Validate PR title
runs-on: ubuntu-latest
steps:
- name: Lint PR
uses: amannn/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 696fe76

Please sign in to comment.