diff --git a/build/controllers/ReleaseController.php b/build/controllers/ReleaseController.php index 80319833b9..ef49be84f5 100644 --- a/build/controllers/ReleaseController.php +++ b/build/controllers/ReleaseController.php @@ -529,6 +529,12 @@ class ReleaseController extends Controller $this->stdout("\n\nThe following steps are left for you to do manually:\n\n"); $nextVersion2 = $this->getNextVersions($nextVersion, self::PATCH); // TODO support other versions $this->stdout("- wait for your changes to be propagated to the repo and create a tag $version on https://github.com/yiisoft/yii2-framework\n\n"); + $this->stdout(" git clone git@github.com:yiisoft/yii2-framework.git\n"); + $this->stdout(" cd yii2-framework/\n"); + $this->stdout(" export RELEASECOMMIT=$(git log --oneline |grep $version |grep -Po \"^[0-9a-f]+\")\n"); + $this->stdout(" git tag -s $version -m \"version $version\" \$RELEASECOMMIT\n"); + $this->stdout(" git tag --verify $version\n"); + $this->stdout(" git push --tags\n\n"); $this->stdout("- close the $version milestone on github and open new ones for {$nextVersion['framework']} and {$nextVersion2['framework']}: https://github.com/yiisoft/yii2/milestones\n"); $this->stdout("- create a release on github.\n"); $this->stdout("- release news and announcement.\n"); diff --git a/framework/validators/UniqueValidator.php b/framework/validators/UniqueValidator.php index 344b8c18d2..2b15821fb1 100644 --- a/framework/validators/UniqueValidator.php +++ b/framework/validators/UniqueValidator.php @@ -63,7 +63,9 @@ class UniqueValidator extends Validator */ public $filter; /** - * @var string the user-defined error message. When validating single attribute, it may contain + * @var string the user-defined error message. + * + * When validating single attribute, it may contain * the following placeholders which will be replaced accordingly by the validator: * * - `{attribute}`: the label of the attribute being validated