Skip to content

Commit

Permalink
Add --message parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
rebeccahum committed Dec 4, 2023
1 parent fa897de commit 5ccaf67
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/bin/vip-deploy-app.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,10 @@ const examples = [
usage: 'vip deploy app @mysite.develop file.zip',
description: 'Deploy the given ZIP file to your site',
},
{
usage: 'vip deploy app @mysite.develop file.zip --message "This is a commit message"',
description: 'Deploy the given ZIP file to your site',
},
];

const promptToContinue = async ( { launched, formattedEnvironment, track, domain } ) => {
Expand Down Expand Up @@ -165,6 +169,7 @@ void command( {
requiredArgs: 1,
} )
.examples( examples )
.option( 'message', 'Custom message for deploy' )
.argv( process.argv, async ( arg, opts ) => {
const { app, env } = opts;
const { id: envId, appId } = env;
Expand All @@ -188,6 +193,7 @@ void command( {
const domain = env?.primaryDomain?.name ? env.primaryDomain.name : `#${ env.id }`;
const formattedEnvironment = formatEnvironment( opts.env.type );
const launched = opts.env.launched;
const message = opts.message;

// PROMPT TO PROCEED WITH THE DEPLOY
await promptToContinue( {
Expand Down Expand Up @@ -286,6 +292,7 @@ Processing the file for deployment to your environment...
environmentId: env.id,
basename,
md5,
message,
};

debug( { basename, md5, result, startDeployVariables } );
Expand Down

0 comments on commit 5ccaf67

Please sign in to comment.