-
Notifications
You must be signed in to change notification settings - Fork 502
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Internal] PR Requirements: Add PR title requirements to allow change…
…log generation (#1322) * Updating PR template with PR title as changelog To reduce conflicts and changelog mistakes the PR titles will be used as the changelog in the future. This will make is easier for users looking through the history and avoid merge conflicts on the changelog file. This will require the changelog to get generated for each release, but can be done as part of contract validation. * Updated based on feedback * Fixed grammar * More fixes * Adding pr lint action * Try single quotes to fix parse error * Trying to move it to build yaml * Try including all changes * Updating * Reverting changes * updated based on feedback * updating regex * Removing space * Updated based on user suggestion
- Loading branch information
Showing
3 changed files
with
33 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: PR Lint | ||
|
||
on: | ||
pull_request: | ||
types: [opened, edited, reopened] | ||
|
||
jobs: | ||
pr-lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: morrisoncole/pr-lint-action@v1.0.0 | ||
with: | ||
title-regex: '(\[Internal\] )?.{3}.+: (Add|Fix) .{3}.+' | ||
on-failed-regex-comment: "Please follow the required format. [Internal] Category: (Add|Fix) Description" | ||
repo-token: "${{ secrets.GITHUB_TOKEN }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters