Skip to content

Commit 8a3f00e

Browse files
committed
PR
1 parent a72617c commit 8a3f00e

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.github/workflows/pr.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,17 @@ jobs:
1414
name: Pull Request validation.
1515
runs-on: ubuntu-latest
1616
steps:
17-
- name: Validate label.
17+
- name: Pull Request should have a label assigned.
1818
if: ${{ always() && github.event.pull_request.labels[0] == null }}
1919
run: |
20-
echo "Pull Request should have label assigned."
2120
exit 1
2221
23-
- name: Title should contain Jira ticket.
24-
if: ${{ always() && !(contains(github.event.pull_request.title, 'CSHARP-')) }}
22+
- name: Title should mention Jira ticket.
23+
if: ${{ always() && !(startsWith(github.event.pull_request.title, 'CSHARP-')) }}
2524
run: |
26-
echo "Title should contain Jira ticket."
2725
exit 1
2826
2927
- name: Title should not end with period or elipses
30-
if: ${{ always() && (endsWith(github.event.pull_request.title, '.') || endsWith(github.event.pull_request.title, '')) }}
28+
if: ${{ always() && (endsWith(github.event.pull_request.title, '.') || endsWith(github.event.pull_request.title, '')) }}
3129
run: |
32-
echo "Title should not end with a period or ellipses."
3330
exit 1

0 commit comments

Comments
 (0)