From 704765e6203bc35c9ef78fabe6e15980bfa834ec Mon Sep 17 00:00:00 2001 From: Maria Hutt Date: Wed, 8 May 2024 12:21:33 -0700 Subject: [PATCH] refactor(gh-action): add an ignore label to conventional commits (#29475) Issue number: N/A --------- ## What is the current behavior? The conventional commit check occurs to all PRs even for releases. Release PRs do not follow the same structure and causes a block when trying to merge them. ## What is the new behavior? - `release` label has been marked as an `ignoreLabel`, this will let the conventional commit know that the PR has been marked to skip validation. ## Does this introduce a breaking change? - [ ] Yes - [x] No ## Other information N/A --- .github/workflows/conventional-commit.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/conventional-commit.yml b/.github/workflows/conventional-commit.yml index b1ed2422bf..fe310a565a 100644 --- a/.github/workflows/conventional-commit.yml +++ b/.github/workflows/conventional-commit.yml @@ -24,3 +24,9 @@ jobs: # within the message. subjectPatternError: | The subject "{subject}" found in the pull request title "{title}" didn't match the configured pattern. Please ensure that the subject doesn't start with an uppercase character. + # If the PR contains one of these newline-delimited labels, the + # validation is skipped. If you want to rerun the validation when + # labels change, you might want to use the `labeled` and `unlabeled` + # event triggers in your workflow. + ignoreLabels: | + release