From 14469c491bc99c563cc63b2db63a4a3bae0f2a2c Mon Sep 17 00:00:00 2001 From: Niranjan Jayakar Date: Thu, 4 Mar 2021 16:06:16 +0000 Subject: [PATCH 1/2] chore: PR linter GH action should run on edits and label adjusts Currently, PR linter only runs when the PR is opened. This naturally means that when the title, description or labels (that it complains about) is fixed, it does not re-run and confirm that it passes. Adjust the action so it also runs when the PR labels, title or descriptions are modified. --- .github/workflows/pr-linter.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr-linter.yml b/.github/workflows/pr-linter.yml index bb8c6dd66943b..efbfff66fe21e 100644 --- a/.github/workflows/pr-linter.yml +++ b/.github/workflows/pr-linter.yml @@ -2,7 +2,10 @@ # https://github.com/actions/toolkit/blob/master/packages/github/src/context.ts name: PR Linter -on: pull_request +on: + pull_request + types: [labeled, unlabeled, edited, opened, synchronize, reopened] + jobs: validate-pr: From 62c219eb9fcd89e110d21cbcbe1e3ad49f5f3822 Mon Sep 17 00:00:00 2001 From: Niranjan Jayakar Date: Fri, 5 Mar 2021 14:22:23 +0000 Subject: [PATCH 2/2] fix list --- .github/workflows/pr-linter.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pr-linter.yml b/.github/workflows/pr-linter.yml index efbfff66fe21e..5702b254d4a0b 100644 --- a/.github/workflows/pr-linter.yml +++ b/.github/workflows/pr-linter.yml @@ -3,9 +3,14 @@ name: PR Linter on: - pull_request - types: [labeled, unlabeled, edited, opened, synchronize, reopened] - + pull_request: + types: + - labeled + - unlabeled + - edited + - opened + - synchronize + - reopened jobs: validate-pr: