From f7912171f8025c60f341f6b501e12dc69179c93f Mon Sep 17 00:00:00 2001 From: Igor Sarkisov Date: Fri, 21 Jul 2023 15:42:43 -0700 Subject: [PATCH] Update Bug ID check logic (#408) * 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 --- .github/workflows/lint.yaml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 6a138cbea435f..5baaaba68323d 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -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.'