mirror of
https://github.com/dorny/paths-filter.git
synced 2025-06-08 00:59:04 +00:00
Export changed files grouped by change status (#23)
This commit is contained in:
parent
1ff702da35
commit
f34047f516
5 changed files with 130 additions and 32 deletions
|
@ -35,6 +35,10 @@ export default class Filter {
|
|||
|
||||
// Load rules from YAML string
|
||||
load(yaml: string): void {
|
||||
if (!yaml) {
|
||||
return
|
||||
}
|
||||
|
||||
const doc = jsyaml.safeLoad(yaml) as FilterYaml
|
||||
if (typeof doc !== 'object') {
|
||||
this.throwInvalidFormatError('Root element is not an object')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue