Skip to content

Commit fe7992f

Browse files
authored
feat(PAR-2522): support ci prefix in PR title (#92)
1 parent 82f8310 commit fe7992f

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/actions/validate-pr/validate_pr.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ function compare_versions() {
6464
}
6565

6666

67-
SEMANTIC_PREFIXES="^(feat|fix|chore|docs|style|refactor|perf|test)[(:]"
67+
SEMANTIC_PREFIXES="^(feat|fix|chore|ci|docs|style|refactor|perf|test)[(:]"
6868
JIRA_TICKET="([A-Z]+-[0-9]+)"
6969
VERSION_REGEX="^v([0-9]+)\.([0-9]+)\.([0-9]+)$"
7070

@@ -78,7 +78,7 @@ if [[ "$TARGET_BRANCH" == "develop" ]] || [[ "$TARGET_BRANCH" =~ ^release/v ]] |
7878
Details:
7979
- Current title: $PR_TITLE
8080
Action: Update the PR title to start with a valid semantic prefix
81-
Valid prefixes: feat:, fix:, chore:, docs:, style:, refactor:, perf:, test:
81+
Valid prefixes: feat:, fix:, chore:, ci:, docs:, style:, refactor:, perf:, test:
8282
Example: feat: Add new feature (ABC-123)
8383
Note: You must push a new commit to update this validation result"
8484
exit 1

.github/actions/validate-pr/validate_pr_test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ expect "$ACTUAL" "Error: Invalid PR title format
4141
Details:
4242
- Current title: This is a PR title (ISSUE-1234)
4343
Action: Update the PR title to start with a valid semantic prefix
44-
Valid prefixes: feat:, fix:, chore:, docs:, style:, refactor:, perf:, test:
44+
Valid prefixes: feat:, fix:, chore:, ci:, docs:, style:, refactor:, perf:, test:
4545
Example: feat: Add new feature (ABC-123)
4646
Note: You must push a new commit to update this validation result"
4747

0 commit comments

Comments
 (0)