Skip to content

Commit

Permalink
feat(workflow): add validate pull request title
Browse files Browse the repository at this point in the history
  • Loading branch information
robocopklaus committed Jul 25, 2024
1 parent 25f778b commit 78bf484
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
27 changes: 27 additions & 0 deletions .github/workflows/validate-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
name: Validate Pull Request

on:
pull_request_target:
types:
- opened
- edited
- synchronize
- reopened
workflow_call:

jobs:
validate_pr_title:
name: Validate Pull Request Title
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Validate PR Title with Conventional Commit
uses: CondeNast/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
commitTitleMatch: "false"
5 changes: 5 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"recommendations": [
"github.vscode-github-actions"
]
}

0 comments on commit 78bf484

Please sign in to comment.