From 2b5fde1259027d7960c5d4e6339eeeb578e7e1c0 Mon Sep 17 00:00:00 2001
From: Yury Delendik <ydelendik@mozilla.com>
Date: Fri, 23 Oct 2015 10:56:40 -0500
Subject: [PATCH] Pushing update reason for gh-pages and bower.

e.g. mozilla/pdf.js@eabbfd78d1fd2301c1bf5ac10bd76a5829150574
---
 make.js | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/make.js b/make.js
index ec944f3d8..a2b74be10 100644
--- a/make.js
+++ b/make.js
@@ -265,11 +265,13 @@ target.web = function() {
         GH_PAGES_DIR + '/getting_started/index.html');
     echo('Done building with wintersmith.');
 
+    var reason = process.env['PDFJS_UPDATE_REASON'];
     cd(GH_PAGES_DIR);
     exec('git init');
     exec('git remote add origin ' + REPO);
     exec('git add -A');
-    exec('git commit -am "gh-pages site created via make.js script"');
+    exec('git commit -am "gh-pages site created via make.js script" -m ' +
+         '"PDF.js version ' + VERSION + (reason ? ' - ' + reason : '') + '"');
     exec('git branch -m gh-pages');
 
     echo();
@@ -354,7 +356,8 @@ target.dist = function() {
   echo('### Commiting changes');
 
   cd(DIST_DIR);
-  var message = 'PDF.js version ' + VERSION;
+  var reason = process.env['PDFJS_UPDATE_REASON'];
+  var message = 'PDF.js version ' + VERSION + (reason ? ' - ' + reason : '');
   exec('git add *');
   exec('git commit -am \"' + message + '\"');
   exec('git tag -a v' + VERSION + ' -m \"' + message + '\"');