forked from mongodb/mongo-csharp-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (27 loc) · 834 Bytes
/
pr.yml
File metadata and controls
31 lines (27 loc) · 834 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Pull Request validation
on:
pull_request:
types:
- opened
- reopened
- edited
- labeled
- unlabeled
- synchronize
jobs:
pull-request-validation:
name: Pull Request validation.
runs-on: ubuntu-latest
steps:
- name: Pull Request should have a label assigned.
if: ${{ always() && github.event.pull_request.labels[0] == null }}
run: |
exit 1
- name: Title should start with a Jira ticket.
if: ${{ always() && !(startsWith(github.event.pull_request.title, 'CSHARP-')) }}
run: |
exit 1
- name: Title should not end with period or ellipses.
if: ${{ always() && (endsWith(github.event.pull_request.title, '.') || endsWith(github.event.pull_request.title, '…')) }}
run: |
exit 1