diff --git a/.github/workflows/pr_jira_ticket.yml b/.github/workflows/pr_jira_ticket.yml index f89c6b5..f001df2 100644 --- a/.github/workflows/pr_jira_ticket.yml +++ b/.github/workflows/pr_jira_ticket.yml @@ -13,7 +13,7 @@ jobs: permissions: pull-requests: read steps: - - uses: deepakputhraya/action-pr-title@master + - uses: deepakputhraya/action-pr-title@v1.0.2 with: regex: '^[A-Z]{2,8}-\d{2,8}(:?\s|$)' prefix_case_sensitive: false # title prefix are case insensitive diff --git a/.github/workflows/pr_jira_ticket_mm.yml b/.github/workflows/pr_jira_ticket_mm.yml new file mode 100644 index 0000000..d15afd8 --- /dev/null +++ b/.github/workflows/pr_jira_ticket_mm.yml @@ -0,0 +1,23 @@ +# +# pr_jira_ticket_mm.yml +# + +name: pr-jira-ticket-mm +on: + pull_request: + types: [opened, edited, synchronize, reopened] + +jobs: + check-pr-title: + runs-on: ubuntu-latest + permissions: + pull-requests: read + steps: + - uses: deepakputhraya/action-pr-title@v1.0.2 + with: + regex: '[A-Z]{2,8}-\d{2,8}(?=\s|$|[\.,:;!?)]|\b)' + prefix_case_sensitive: false # title prefix are case insensitive + min_length: 5 # Min length of the title + max_length: 80 # Max length of the title + 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).' + github_token: ${{ github.token }} diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..504b692 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,7 @@ +# CHANGELOG + +## 2025-05-13 +- DSOS-370: Added MM PR title check + +## 2025-01-15 +- None: Added PR title check \ No newline at end of file diff --git a/README.md b/README.md index 005eea5..5af1f55 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,3 @@ # workflows + Repository to host company workflows