An EmberCLI Deploy Plugin to populate the context with git metadata about the current revision
This plugin adds info from your git repo to the context.revisionData object.
This data can be used to determine a unique revision key or to save info about
the revision such as the committer, branch name, etc.
This plugin will add the following object to the context.revisionData property
(properties will only be visible if they are available):
{
git: {
branch: 'my-branch',
sha: '1feda252ed5084905eca96aded91365a34a87594',
abbreviatedSha: '1feda25',
tag: 'v1.0',
committer: 'Larry David',
committerDate: '2016-09-28T13:04:57.598Z',
author: 'Larry David',
authorDate: '2016-09-28T13:04:57.598Z',
commitMessage: 'Initial commit.'
}
}A plugin is an addon that can be executed as a part of the ember-cli-deploy pipeline. A plugin will implement one or more of the ember-cli-deploy's pipeline hooks.
For more information on what plugins are and how they work, please refer to the Plugin Documentation.
To get up and running quickly, do the following:
- Install this plugin
$ ember install ember-cli-deploy-git-revision-data- Run the pipeline
$ ember deploy productionRun the following command in your terminal:
ember install ember-cli-deploy-git-revision-dataFor detailed information on what plugin hooks are and how they work, please refer to the Plugin Documentation.
configuresetup
This plugin does not require any custom configuration.
This plugin does not have any prerequisites.
npm test