Skip to content

Commit

Permalink
👷 Check PR title
Browse files Browse the repository at this point in the history
Make sure that PR's to the main branch have a version number as title.
  • Loading branch information
ThierryO committed Dec 9, 2024
1 parent c3b5ae4 commit 7c92e6d
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/pr_title.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: 'PR Title Checker'
on:
pull_request:
types: [edited, opened, synchronize, reopened]
branches:
- main
- master

jobs:
title-check:
runs-on: ubuntu-latest
steps:
- uses: naveenk1223/action-pr-title@master
with:
regex: 'Version [0-9]+\.[0-9]+(\.[0-9]+)?$' # Regex the title should match.
allowed_prefixes: ':bookmark:' # title should start with the given prefix
prefix_case_sensitive: true # title prefix are case insensitive
min_length: 11 # Min length of the title
max_length: -1 # Max length of the title
name: Check PR title

0 comments on commit 7c92e6d

Please sign in to comment.