Skip to content

Commit e35f50a

Browse files
committed
PR
1 parent 315df97 commit e35f50a

File tree

1 file changed

+12
-17
lines changed

1 file changed

+12
-17
lines changed

.github/workflows/pr.yml

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,29 +10,24 @@ on:
1010
- unlabeled
1111

1212
jobs:
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

0 commit comments

Comments
 (0)