diff --git a/README.md b/README.md index 91a4dff..78c2097 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,7 @@ Example "magento_connect":{ "license_uri":"http://www.gnu.org/licenses/gpl-3.0.html", "summary":"", + "notes":"", "channel":"community", "php_min":"5.3.0", "php_max":"6.0.0", @@ -100,6 +101,9 @@ URI for a copy of the license text. If no value is provided the URI will default ### magento_connect summary A brief summary of your module. If no value is provided then the `description` will be used. +### magento_connect notes +Notes related to the current release. + ### magento_connect channel Which channel should be used in magento connect. diff --git a/example/composer.json b/example/composer.json index 81f5edc..d2956dc 100644 --- a/example/composer.json +++ b/example/composer.json @@ -24,6 +24,8 @@ "php_min":"5.3.0", "php_max":"6.0.0", "stability":"beta", + "summary":"", + "notes":"", "content":[ { "type":"magecommunity", diff --git a/src/shell/packager.php b/src/shell/packager.php index 0e368f4..06ab7e6 100644 --- a/src/shell/packager.php +++ b/src/shell/packager.php @@ -59,6 +59,7 @@ public function run() $this->_pathToComposerJson = $this->getArg('composer'); $name = $this->getModuleName(); $this->getConfig()->setData('name', $name); + $this->getConfig()->setData('notes', $this->getNotes()); $this->getConfig()->setData('channel', $this->getChannel()); $this->getConfig()->setData('license', $this->getLicense()); $this->getConfig()->setData('license_uri', $this->getLicenseUri()); @@ -248,6 +249,16 @@ public function getDescription() return $this->getComposerJson()->description; } + /** + * Get notes for the project. + * + * @return mixed + */ + public function getNotes() + { + return $this->getComposerJson()->extra->magento_connect->notes; + } + /** * Get the stability out of composer. *