Skip to content
This repository has been archived by the owner on Jun 13, 2022. It is now read-only.

Commit

Permalink
Fix new incident creation
Browse files Browse the repository at this point in the history
  • Loading branch information
mrose-sorted committed Nov 16, 2018
1 parent bfd0d30 commit 04bed82
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/@statusfy/core/lib/new-incident.js
Expand Up @@ -2,11 +2,11 @@ const fs = require('fs')
const inquirer = require('inquirer')
const opener = require('opener')

const { logger, fse, frontMatter, slugify, path } = require('@statusfy/common')
const { logger, fse, grayMatter, slugify, path } = require('@statusfy/common')
const loadConfig = require('./config/load')

function generateIncident (data, content, format) {
let matterContent = frontMatter.stringify(content, data, format)
let matterContent = grayMatter.stringify(content, data, format)

if (['json', 'toml'].includes(format)) {
matterContent = matterContent.replace(/^---/, `---${format}`)
Expand All @@ -19,7 +19,7 @@ module.exports = async function newIncident (sourceDir, cliOptions = {}) {
process.env.NODE_ENV = 'development'

// Generate configuration
const config = loadConfig(sourceDir)
const config = loadConfig(sourceDir).config

const questions = [
{
Expand Down

0 comments on commit 04bed82

Please sign in to comment.