src/lib/autorelease-yml.js
/**
     * check format of autorelease.yml
     * @public
     */
check format of autorelease.yml
@public
check format of autorelease . yml @public
checkFormat() {
        if (!this.__data) throw new Error('Yaml has not been loaded.')
        Object.keys(this.__data).forEach(name => {
            if (! this.rootFieldNames.includes(name)) {
                throw new Error(`Unknown field: "${name}"`)
            }
        })
        const { hooks, config, circle } = this.__data
        if (hooks) this.checkHooksFormat(hooks)
        if (config) this.checkConfigFormat(config)
        if (circle) this.checkCircleFormat(circle)
    }
checkFormat ( ) { if ( ! this . __data ) throw new Error ( 'Yaml has not been loaded.' ) Object . keys ( this . __data ) . forEach ( name => { if ( ! this . rootFieldNames . includes ( name ) ) { throw new Error ( ` ${ name } ` ) } } ) const { hooks , config , circle } = this . __data if ( hooks ) this . checkHooksFormat ( hooks ) if ( config ) this . checkConfigFormat ( config ) if ( circle ) this . checkCircleFormat ( circle ) }
check format of autorelease.yml
 @public
check format of autorelease . yml @public