From d5c274d19d59e1bb6d14d185d3d89e8775c97f18 Mon Sep 17 00:00:00 2001 From: Julio Alves Date: Tue, 14 Jan 2025 19:15:50 +0000 Subject: [PATCH 1/3] added changelog --- CHANGELOG.md | 4 ++++ README.md | 1 + 2 files changed, 5 insertions(+) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..b96e2a4 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,4 @@ +# CHANGELOG + +## 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 From 01218253d86782ca62f83278124d04d74b0557c5 Mon Sep 17 00:00:00 2001 From: Julio Alves Date: Mon, 12 May 2025 23:54:45 +0100 Subject: [PATCH 2/3] feat: added mm pr jira ticket action workflow --- .github/workflows/pr_jira_ticket.yml | 2 +- .github/workflows/pr_jira_ticket_mm.yml | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/pr_jira_ticket_mm.yml 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 }} From 2ef771c33a53b905cf39806eb672b57815d0bb8b Mon Sep 17 00:00:00 2001 From: Julio Alves Date: Tue, 13 May 2025 00:04:00 +0100 Subject: [PATCH 3/3] --amend --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b96e2a4..504b692 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +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