We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1120a1e + d9c8082 commit e2f5657Copy full SHA for e2f5657
1 file changed
.github/workflows/ci.yml
@@ -27,10 +27,12 @@ jobs:
27
28
- name: Validate PR title
29
env:
30
+ BASE_BRANCH: ${{ github.event.pull_request.base.ref }}
31
PR_TITLE: ${{ github.event.pull_request.title }}
32
run: |
- if [[ ! "$PR_TITLE" =~ ^DVLP ]]; then
33
- echo "PR title must start with DVLP."
+ if [[ "$BASE_BRANCH" == "develop" && ! "$PR_TITLE" =~ ^DVLP ]]; then
34
+ echo "PR title must start with DVLP when targeting develop."
35
+ echo "Target branch: $BASE_BRANCH"
36
echo "Actual title: $PR_TITLE"
37
exit 1
38
fi
0 commit comments