-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CI] Recheck the title format when user updates the title (#3403)
* [CI] recheck the title format when user updates the title * fix presubmit error Co-authored-by: Ailing <[email protected]>
- Loading branch information
Showing
2 changed files
with
22 additions
and
17 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
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,22 @@ | ||
name: Presubmit Title Checks | ||
on: | ||
pull_request: | ||
types: [opened, synchronize, reopened, edited] | ||
|
||
jobs: | ||
title_format: | ||
name: Check PR Title | ||
if: ${{ github.event.pull_request }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
|
||
- name: Run PR Title Checker | ||
run: | | ||
pip install semver GitPython | ||
python misc/ci_check_pr_title.py "$PR_TITLE" | ||
env: | ||
PR_TITLE: ${{ github.event.pull_request.title }} |