Skip to content

Commit

Permalink
Update Bug ID check logic (youtube#408)
Browse files Browse the repository at this point in the history
* Update Bug ID check logic

Check PR description/title for bug id which gets derived from the first commit message.

b/283308580

---------

Co-authored-by: Andrew Savage <[email protected]>
  • Loading branch information
isarkis and andrewsavage1 committed Jul 21, 2023
1 parent 9f57b0b commit f791217
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,7 @@ jobs:
# v2
uses: gsactions/commit-message-checker@16fa2d5de096ae0d35626443bcd24f1e756cafee
with:
excludeTitle: true
excludeDescription: true
checkAllCommitMessages: true
accessToken: ${{ secrets.GITHUB_TOKEN }}
pattern: '^b\/\d+$'
pattern: 'b\/\d+'
flags: 'gm'
error: 'Commit message should include at least one bug ID on a separate line (e.g. b/12345).'
error: 'PR title or description should include at least one bug ID.'

0 comments on commit f791217

Please sign in to comment.