mirror of
https://github.com/BillyOutlast/Gazelle-Porn.git
synced 2026-02-04 02:51:19 +01:00
17 lines
468 B
JavaScript
17 lines
468 B
JavaScript
const { danger, warn, fail } = require('danger')
|
|
const load = require('@commitlint/load').default
|
|
const lint = require('@commitlint/lint').default
|
|
|
|
async function main() {
|
|
const options = await load({ extends: ['@commitlint/config-conventional'] })
|
|
const report = await lint(danger.gitlab.mr.title, options.rules)
|
|
for (const error of report.errors) {
|
|
fail(error.message)
|
|
}
|
|
for (const warning of report.warnings) {
|
|
warn(warning.message)
|
|
}
|
|
}
|
|
|
|
main()
|