Skip to content

Commit b4cd2c1

Browse files
DEV: Get validator workflow to work (#163)
Apparently the `paths` filter can be unreliable for `pull_request_target` so let's just remove it. We can validate the json on every pr. Not a problem.
1 parent 0ca7d34 commit b4cd2c1

File tree

2 files changed

+34
-2
lines changed

2 files changed

+34
-2
lines changed

.github/workflows/validate_pr.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ name: Validate PR Documentation
33
on:
44
pull_request_target:
55
types: [opened, synchronize, reopened]
6-
paths:
7-
- 'openapi.json'
86

97
jobs:
108
validate-openapi:

lefthook.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# EXAMPLE USAGE
2+
# Refer for explanation to following link:
3+
# https://github.com/evilmartians/lefthook/blob/master/docs/full_guide.md
4+
#
5+
# pre-push:
6+
# commands:
7+
# packages-audit:
8+
# tags: frontend security
9+
# run: yarn audit
10+
# gems-audit:
11+
# tags: backend security
12+
# run: bundle audit
13+
#
14+
# pre-commit:
15+
# parallel: true
16+
# commands:
17+
# eslint:
18+
# glob: "*.{js,ts}"
19+
# run: yarn eslint {staged_files}
20+
# rubocop:
21+
# tags: backend style
22+
# glob: "*.rb"
23+
# exclude: "application.rb|routes.rb"
24+
# run: bundle exec rubocop --force-exclusion {all_files}
25+
# govet:
26+
# tags: backend style
27+
# files: git ls-files -m
28+
# glob: "*.go"
29+
# run: go vet {files}
30+
# scripts:
31+
# "hello.js":
32+
# runner: node
33+
# "any.go":
34+
# runner: go run

0 commit comments

Comments
 (0)