-
Notifications
You must be signed in to change notification settings - Fork 496
28 lines (26 loc) · 1.18 KB
/
prlint.yml
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
name: PR Lint
on:
pull_request:
types: [opened, edited, reopened]
jobs:
pr-lint:
permissions:
checks: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: morrisoncole/[email protected]
with:
title-regex: '(\[Internal\]|\[v4\] )?.{3}.+: (Adds|Fixes|Refactors|Removes) .{3}.+'
repo-token: "${{ secrets.GITHUB_TOKEN }}"
on-failed-regex-fail-action: true
on-failed-regex-request-changes: false
on-failed-regex-create-review: true
on-failed-regex-comment: >
Please follow the required format: \"[Internal] Category: (Adds|Fixes|Refactors|Removes) Description\"<br /><br />
Internal should be used for PRs that have no customer impact. This flag is used to help generate the changelog to know which PRs should be included.
Examples:<br />
Diagnostics: Adds GetElapsedClientLatency to CosmosDiagnostics<br/>
PartitionKey: Fixes null reference when using default(PartitionKey)<br/>
[v4] Client Encryption: Refactors code to external project<br/>
[Internal] Query: Adds code generator for CosmosNumbers for easy additions in the future.<br/>