Skip to content

Commit

Permalink
2024-03-25 - Github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
markbattistella committed Mar 25, 2024
1 parent 6481548 commit 8fbc8cc
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/pr-title-checker-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"LABEL": {
"name": "PR title not in correct format",
"color": "EEEEEE"
},
"CHECKS": {
"prefixes": [],
"regexp": "^(19|20)\\d{2}(\/|-)(0[1-9]|1[1,2])(\/|-)(0[1-9]|[12][0-9]|3[01])",
"regexpFlags": "",
"ignoreLabels": [
"ignore-title"
]
},
"MESSAGES": {
"success": "All OK",
"failure": "Failing CI test",
"notice": ""
}
}
17 changes: 17 additions & 0 deletions .github/workflows/pr-title-checker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Check the PR title in standard format

on:
workflow_dispatch:
pull_request:

jobs:

pr-title-validator:
name: Validate PR title
runs-on: ubuntu-latest
steps:
- uses: thehanimo/pr-title-checker@v1.4.1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
configuration_path: .github/pr-title-checker-config.json

0 comments on commit 8fbc8cc

Please sign in to comment.