File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -14,20 +14,17 @@ jobs:
14
14
name : Pull Request validation.
15
15
runs-on : ubuntu-latest
16
16
steps :
17
- - name : Validate label.
17
+ - name : Pull Request should have a label assigned .
18
18
if : ${{ always() && github.event.pull_request.labels[0] == null }}
19
19
run : |
20
- echo "Pull Request should have label assigned."
21
20
exit 1
22
21
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-')) }}
25
24
run : |
26
- echo "Title should contain Jira ticket."
27
25
exit 1
28
26
29
27
- 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, '� ')) }}
31
29
run : |
32
- echo "Title should not end with a period or ellipses."
33
30
exit 1
You can’t perform that action at this time.
0 commit comments