Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b94be17

Browse files
committed
test again if comment works from travis
1 parent 2c69ae1 commit b94be17

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

scripts/now.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -104,17 +104,17 @@ function deploy(context, sha) {
104104

105105
child.on('close', () => {
106106
const target_url = alias || getUrl(stdout);
107+
console.log(`PR: ${process.env.TRAVIS_PULL_REQUEST}`);
107108
if (ghPR) {
108-
const comment = `
109-
Δ Now ${context} deployment complete
110-
Staging URL : ${target_url}
111-
Note: This is autogenerated through Travis build
112-
`;
109+
const comment = `(Note: This is autogenerated through Travis build) New Staging URL : ${target_url}`;
110+
console.log(comment);
113111
ghPR.createComment(
114112
{
115113
body: comment,
116114
},
117-
noop,
115+
(err, res) => {
116+
console.log(err, res);
117+
},
118118
);
119119
} else {
120120
console.log('No PR found');

0 commit comments

Comments
 (0)