akamai / cli-property-manager

Use this Property Manager CLI to automate Akamai property changes and deployments across many environments.
Apache License 2.0
29 stars 22 forks source link

Add Optional --notes parameter to promote subcommand #1

Closed TraGicCode closed 6 years ago

TraGicCode commented 6 years ago

Instead of putting 'Akamai PD Activation' it would be awesome to have an optional parameter to allow for the user to put their own custom notes. This would allow a CI/CD server to put something such as:

  1. The Commit message.
  2. The SHA of the commit.
jumenzel commented 6 years ago

That should be easy to add. Thank you for the feedback.

humanshield314 commented 6 years ago

Yes, you can do the promote command with a -m option with a message:

Usage: promote|pm [options] [targetEnvironment]

Promote (activate) an environment. This command also executes the merge and save commands mentioned above by default.

Options:

-p, --pipeline [pipelineName]  pipeline name
-n, --network <network>        Network, either 'production' or 'staging', can be abbreviated to 'p' or 's'
-e, --emails [emails]          Comma separated list of email addresses. Optional if default emails were previously set with set-default
-m, --message [message]        Promotion message passed to activation backend
-w, --wait-for-activate        Return after promotion of an environment is active.
--force                        Force promotion if previous environment aren't promoted or even saved.
-h, --help                     output usage information
TraGicCode commented 5 years ago

This is great stuff. Thanks