Skip to content

Commit

Permalink
[CI] Filter what types of pull requests get yamllint (#6306) (#8794)
Browse files Browse the repository at this point in the history
Cherry-pick from Master branch, this PR fixes incorrect process of our yamllint config file by Github (in which it treats it as a workflow description).

Signed-off-by: Scott Harrison Moeller <smoeller@fb.com>

Co-authored-by: Scott Harrison Moeller <smoeller@fb.com>

Co-authored-by: Scott Harrison Moeller <smoeller@fb.com>
  • Loading branch information
electronjoe and Scott Harrison Moeller committed Aug 30, 2021
1 parent a4ad8b0 commit 039908b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
File renamed without changes.
12 changes: 9 additions & 3 deletions .github/workflows/yamlint.yml
@@ -1,6 +1,12 @@
---
name: reviewdog
on: [pull_request] # yamllint disable-line rule:truthy
name: YAML linting by Reviewdog
on: # yamllint disable-line rule:truthy
pull_request:
types:
- opened
- reopened
- synchronize

jobs:
yamllint:
name: runner / yamllint
Expand All @@ -14,4 +20,4 @@ jobs:
level: warning
filter_mode: added # Any added or changed content.
reporter: github-pr-review # Comments on PR with review comments.
yamllint_flags: "-d .github/workflows/yamllint_config.yml ."
yamllint_flags: "-d .github/workflows/config/yamllint_config.yml ."

0 comments on commit 039908b

Please sign in to comment.