Variables
Const RulesProviders
RulesProviders: any = RulesValues.map(rule => ({provide: rule,useClass: rule as any,}))
Const RulesValues
Rules
Values: Rule[] = Object.values(require('./index')).map(rule => rule as Rule,)
Const RunnablesProviders
RunnablesProviders: any = RunnablesValues.map(runnable => ({provide: runnable,useClass: runnable as any,}))
Const RunnablesValues
Runnables
Values: Runnable[] = Object.values(require('./index')).map(runnable => runnable as Runnable,)
Const analytics
analytics: Visitor = ua(process.env.ANALYTICS_ID)
Let app
app: TestingModule
Const cron1
cron1
: CronInterface[] = [{filename: 'cron-1-1.rulesrc',projectURL: 'https://github.com/zenika-open-source/hygie',},{filename: 'cron-1-2.rulesrc',projectURL: 'https://github.com/zenika-open-source/hygie',},{filename: 'cron-1-3.rulesrc',projectURL: 'https://github.com/zenika-open-source/hygie',},]
Const cron2
cron2
: CronInterface[] = [{filename: ['cron-2-1-1.rulesrc','cron-2-1-2.rulesrc','cron-2-1-3.rulesrc',],projectURL: 'https://github.com/zenika-open-source/hygie',},{filename: 'cron-2-2.rulesrc',projectURL: 'https://github.com/zenika-open-source/hygie',},{filename: 'cron-2-3.rulesrc',projectURL: 'https://github.com/zenika-open-source/hygie',},]
Const fs
fs: any = require('fs-extra')
Const githubService
github
Service: GithubService = new GithubService(new HttpService())
Const gitlabService
gitlab
Service: GitlabService = new GitlabService(new HttpService())
Const isProduction
isProduction: boolean = process.env.NODE_ENV === 'production'
Const logger
logger: Logger = createLogger({level: 'debug',format: loggerFormat,transports: [new transports.Console()],})
Const loggerConstFormat
loggerConstFormat: Format = (loggerFormat = format.combine(format.printf(info => {let project = '';let location = '';let date = '';if (verboseLogger && info.project !== undefined) {project = `[${info.project}]`;}if (verboseLogger && info.location !== undefined) {location = `[${info.location}]`;}if (!isProduction) {date = `[${info.timestamp}]`;}return `[${info.level}]${date}${project}${location}: ${info.message}`;}),))
Let loggerFormat
loggerFormat: any
Const path
path: any = require('path')
Const verboseLogger
verboseLogger: boolean = process.env.VERBOSE_LOGGER === 'true'
Const webhook
webhook
: Webhook = new Webhook(gitlabService, githubService)
All Github Events supported by our API