Skip to content

Commit

Permalink
chore: linter action should run on edits and label adjusts (#13398)
Browse files Browse the repository at this point in the history
Currently, the 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.
  • Loading branch information
Niranjan Jayakar committed Mar 5, 2021
1 parent 2672a55 commit 8e612ca
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/pr-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,15 @@
# 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:
Expand Down

0 comments on commit 8e612ca

Please sign in to comment.