Skip to content

Commit a60ab3a

Browse files
authored
fix: pr title action key (#3483)
1 parent b0d2e27 commit a60ab3a

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/pr-title-jira-key-lint.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ jobs:
1919
const prTitle = context.payload.pull_request.title;
2020
console.log(`PR Title: ${prTitle}`);
2121
22-
// Regex to match Jira issue keys (CDP-123 format)
23-
// Supports conventional commits format: type(CDP-123): description
22+
// Regex to match Jira issue keys (CM-123 format)
23+
// Supports conventional commits format: type(CM-123): description
2424
const jiraKeyRegex = /\b[A-Z]+-\d+\b/;
2525
2626
if (!jiraKeyRegex.test(prTitle)) {
@@ -29,11 +29,11 @@ jobs:
2929
Your PR title doesn't contain a Jira issue key. Consider adding it for better traceability.
3030
3131
**Example:**
32-
- \`feat: add user authentication (CDP-123)\`
32+
- \`feat: add user authentication (CM-123)\`
3333
- \`feat: add user authentication (IN-123)\`
3434
3535
**Projects:**
36-
- CDP: Community Data Platform
36+
- CM: Community Data Platform
3737
- IN: Insights
3838
3939
Please add a Jira issue key to your PR title.`;

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ Leverage the JIRA MCP server for efficient ticket management during development.
175175

176176
**Ticket Linking:**
177177
- When possible reference JIRA tickets in commit messages and PR titles
178-
- Use format: `type(TICKET-KEY): conventional commit message`
178+
- Use format: `type: conventional commit message (TICKET-KEY)`
179179
- This enables automatic linking between code changes and tickets
180180

181181
##### AI Development Guidelines

0 commit comments

Comments
 (0)