File tree Expand file tree Collapse file tree 1 file changed +12
-17
lines changed Expand file tree Collapse file tree 1 file changed +12
-17
lines changed Original file line number Diff line number Diff line change 10
10
- unlabeled
11
11
12
12
jobs :
13
- release-notes-check-labels :
14
- name : Check assigned labels .
13
+ pull-request-validation :
14
+ name : Pull Request validation .
15
15
runs-on : ubuntu-latest
16
16
steps :
17
- - if : github.event.pull_request.labels[0] == null
17
+ - name : Validate label.
18
+ if : ${{ always() && github.event.pull_request.labels[0] == null }}
18
19
run : |
19
20
echo "Pull Request should have label assigned."
20
- exit 2
21
+ exit 1
21
22
22
- release-notes-check-jira-ticket :
23
- name : Check title to contains Jira ticket.
24
- runs-on : ubuntu-latest
25
- steps :
26
- - if : ${{ !(contains(github.event.pull_request.title, 'CSHARP-')) }}
23
+ - name : Title should contain Jira ticket.
24
+ if : ${{ always() && !(contains(github.event.pull_request.title, 'CSHARP-')) }}
27
25
run : |
28
26
echo "Title should contains Jira ticket."
29
- exit 2
27
+ exit 1
30
28
31
- release-notes-check-title :
32
- name : Title should not ends with period or elipses
33
- runs-on : ubuntu-latest
34
- steps :
35
- - if : ${{ endsWith(github.event.pull_request.title, '.') || endsWith(github.event.pull_request.title, '…') }}
29
+ - name : Title should not end with period or elipses
30
+ if : ${{ always() && (endsWith(github.event.pull_request.title, '.') || endsWith(github.event.pull_request.title, '…')) }}
36
31
run : |
37
- echo "Title should not ends with period or elipses ."
38
- exit 2
32
+ echo "Title should not end with a period or ellipses ."
33
+ exit 1
You can’t perform that action at this time.
0 commit comments