-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We want to use a PR title to enforce cleaner PR titles
- Loading branch information
Showing
1 changed file
with
18 additions
and
0 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,18 @@ | ||
name: Lint PR Title | ||
# Prevent writing to the repository using the CI token. | ||
# Ref: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#permissions | ||
permissions: | ||
pull-requests: read | ||
on: | ||
pull_request: | ||
# By default, a workflow only runs when a pull_request's activity type is opened, | ||
# synchronize, or reopened. We explicity override here so that PR titles are | ||
# re-linted when the PR text content is edited. | ||
types: | ||
- opened | ||
- edited | ||
- reopened | ||
- synchronize | ||
jobs: | ||
lint: | ||
uses: bufbuild/base-workflows/.github/workflows/pr-title.yaml@main |