mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-08-11 17:50:58 +00:00
replace parser with actions/workflow-parser
This commit is contained in:
parent
f6be37b2a2
commit
d956aff028
41 changed files with 12740 additions and 633 deletions
15
vendor/github.com/actions/workflow-parser/parser/opts.go
generated
vendored
Normal file
15
vendor/github.com/actions/workflow-parser/parser/opts.go
generated
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
package parser
|
||||
|
||||
type OptionFunc func(*parseState)
|
||||
|
||||
func WithSuppressWarnings() OptionFunc {
|
||||
return func(ps *parseState) {
|
||||
ps.suppressSeverity = WARNING
|
||||
}
|
||||
}
|
||||
|
||||
func WithSuppressErrors() OptionFunc {
|
||||
return func(ps *parseState) {
|
||||
ps.suppressSeverity = ERROR
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue