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 1010 - unlabeled
1111
1212jobs :
13- release-notes-check-labels :
14- name : Check assigned labels .
13+ pull-request-validation :
14+ name : Pull Request validation .
1515 runs-on : ubuntu-latest
1616 steps :
17- - if : github.event.pull_request.labels[0] == null
17+ - name : Validate label.
18+ if : ${{ always() && github.event.pull_request.labels[0] == null }}
1819 run : |
1920 echo "Pull Request should have label assigned."
20- exit 2
21+ exit 1
2122
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-')) }}
2725 run : |
2826 echo "Title should contains Jira ticket."
29- exit 2
27+ exit 1
3028
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, '…')) }}
3631 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