Skip to content

Commit

Permalink
Add the ability to add deploy messages
Browse files Browse the repository at this point in the history
  • Loading branch information
bcomnes committed Sep 17, 2018
1 parent e6899b4 commit 4baee0e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
"lodash.snakecase": "^4.1.1",
"log-symbols": "^2.2.0",
"make-dir": "^1.3.0",
"netlify": "^2.0.1-beta.3",
"netlify": "^2.0.1-beta.4",
"node-fetch": "^2.2.0",
"ora": "^3.0.0",
"p-wait-for": "^2.0.0",
Expand Down
7 changes: 6 additions & 1 deletion src/commands/deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ ${chalk.cyanBright.bold('netlify deploy --dir your-build-directory --prod')}
tomlPath: configPath,
fnDir: resolvedFunctionsPath,
statusCb: deployProgressCb(),
draft: !deployToProduction
draft: !deployToProduction,
message: flags.message
})
} catch (e) {
this.error(e)
Expand Down Expand Up @@ -162,6 +163,10 @@ DeployCommand.flags = {
char: 'o',
description: 'Open site after deploy',
default: false
}),
message: flags.string({
char: 'm',
description: 'A short message to include in the deploy log'
})
}

Expand Down

0 comments on commit 4baee0e

Please sign in to comment.