Skip to content

Commit fe96e5a

Browse files
authored
Merge pull request #4 from socialvibe/DSOS-370-enable-MM-pr-title
DSOS-370: enable mm pr title
2 parents 0203db6 + 2ef771c commit fe96e5a

3 files changed

Lines changed: 27 additions & 1 deletion

File tree

.github/workflows/pr_jira_ticket.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
permissions:
1414
pull-requests: read
1515
steps:
16-
- uses: deepakputhraya/action-pr-title@master
16+
- uses: deepakputhraya/action-pr-title@v1.0.2
1717
with:
1818
regex: '^[A-Z]{2,8}-\d{2,8}(:?\s|$)'
1919
prefix_case_sensitive: false # title prefix are case insensitive
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#
2+
# pr_jira_ticket_mm.yml
3+
#
4+
5+
name: pr-jira-ticket-mm
6+
on:
7+
pull_request:
8+
types: [opened, edited, synchronize, reopened]
9+
10+
jobs:
11+
check-pr-title:
12+
runs-on: ubuntu-latest
13+
permissions:
14+
pull-requests: read
15+
steps:
16+
- uses: deepakputhraya/action-pr-title@v1.0.2
17+
with:
18+
regex: '[A-Z]{2,8}-\d{2,8}(?=\s|$|[\.,:;!?)]|\b)'
19+
prefix_case_sensitive: false # title prefix are case insensitive
20+
min_length: 5 # Min length of the title
21+
max_length: 80 # Max length of the title
22+
verbal_description: 'The PR title must contain a valid JIRA project ticket ID, followed by a dash and a number. For example, a valid title would be MMCAMP-1234: Fix a critical issue or fix(MMCAMP-123).'
23+
github_token: ${{ github.token }}

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# CHANGELOG
22

3+
## 2025-05-13
4+
- DSOS-370: Added MM PR title check
5+
36
## 2025-01-15
47
- None: Added PR title check

0 commit comments

Comments
 (0)