[Internal] PR Lint: Fixes to use new title regex (#1699)

* Update PR lint rules

* Set the PR Lint version
This commit is contained in:
j82w 2020-07-14 13:51:25 -07:00 коммит произвёл GitHub
Родитель f3bb918aff
Коммит ffb7b26a90
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 13 добавлений и 38 удалений

14
.github/workflows/prlint.yml поставляемый
Просмотреть файл

@ -8,14 +8,14 @@ jobs:
pr-lint:
runs-on: ubuntu-latest
steps:
- uses: morrisoncole/pr-lint-action@master
- uses: morrisoncole/pr-lint-action@v1.1.1
with:
title-regex: '(\[Internal\]|\[v4\] )?.{3}.+: (Add|Fix|Refactor) .{3}.+'
title-regex: '(\[Internal\]|\[v4\] )?.{3}.+: (Adds|Fixes|Refactors) .{3}.+'
on-failed-regex-comment: >
Please follow the required format: \"[Internal] Category: (Add|Fix|Refactor) Description\"<br /><br />
Please follow the required format: \"[Internal] Category: (Adds|Fixes|Refactors) Description\"<br /><br />
Examples:<br />
Diagnostics: Add GetElapsedClientLatency to CosmosDiagnostics<br/>
PartitionKey: Fix null reference when using default(PartitionKey)<br/>
[v4] Client Encryption: Refactor code to external project<br/>
[Internal] Query: Add code generator for CosmosNumbers for easy additions in the future.<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/>
repo-token: "${{ secrets.GITHUB_TOKEN }}"

Просмотреть файл

@ -1,43 +1,18 @@
# Pull Request Template
## Pull Request Title
1. Changelog will be generated from PR titles.
2. PR titles will be formatted with the following layout.
1. Internal is optional and represents changes with no public facing changes such as test only changes
2. Category represents the area of the change like batch, changefeed, point operation, or query
3. Add or Fix identifies if a new feature is being added or if a bug is being fixed
4. Description is a user friendly explanation of the change
### Format
`[Internal] Category: (Add|Fix) Description`
### Example
`Diagnostics: Add GetElapsedClientLatency to CosmosDiagnostics`<br/>
`PartitionKey: Fix null reference when using default(PartitionKey)`<br/>
`[Internal] Query: Add code generator for CosmosNumbers for easy additions in the future.`<br/>
## Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Please include a summary of the change and which issue is fixed. Include samples if adding new API, and include relevant motivation and context. List any dependencies that are required for this change.
## Type of change
Please delete options that are not relevant.
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
- [ ] This change requires a documentation update
- [] Bug fix (non-breaking change which fixes an issue)
- [] New feature (non-breaking change which adds functionality)
- [] Breaking change (fix or feature that would cause existing functionality to not work as expected)
- [] This change requires a documentation update
## Closing issues
Put closes #XXXX in your comment to auto-close the issue that your PR fixes (if such).
## Assignee
Please add yourself as the assignee
## Projects
Please add relevant projects so this issue can be properly tracked.
To automatically close an issue: closes #IssueNumber