diff --git a/aio/aio-builds-setup/dockerbuild/scripts-js/lib/upload-server/upload-server-factory.ts b/aio/aio-builds-setup/dockerbuild/scripts-js/lib/upload-server/upload-server-factory.ts index 7f174be45a..cace76d61f 100644 --- a/aio/aio-builds-setup/dockerbuild/scripts-js/lib/upload-server/upload-server-factory.ts +++ b/aio/aio-builds-setup/dockerbuild/scripts-js/lib/upload-server/upload-server-factory.ts @@ -58,7 +58,7 @@ class UploadServerFactory { const githubPullRequests = new GithubPullRequests(githubToken, repoSlug); buildCreator.on(CreatedBuildEvent.type, ({pr, sha}: CreatedBuildEvent) => { - const body = `The angular.io preview for ${sha.slice(0, 7)} is available [here][1].\n\n` + + const body = `The angular.io preview for ${sha} is available [here][1].\n\n` + `[1]: https://pr${pr}-${sha}.${domainName}/`; githubPullRequests.addComment(pr, body); diff --git a/aio/aio-builds-setup/dockerbuild/scripts-js/test/upload-server/upload-server-factory.spec.ts b/aio/aio-builds-setup/dockerbuild/scripts-js/test/upload-server/upload-server-factory.spec.ts index 3784b747a2..276c328210 100644 --- a/aio/aio-builds-setup/dockerbuild/scripts-js/test/upload-server/upload-server-factory.spec.ts +++ b/aio/aio-builds-setup/dockerbuild/scripts-js/test/upload-server/upload-server-factory.spec.ts @@ -143,7 +143,7 @@ describe('uploadServerFactory', () => { it('should post a comment on GitHub on \'build.created\'', () => { const prsAddCommentSpy = spyOn(GithubPullRequests.prototype, 'addComment'); - const commentBody = 'The angular.io preview for 1234567 is available [here][1].\n\n' + + const commentBody = 'The angular.io preview for 1234567890 is available [here][1].\n\n' + '[1]: https://pr42-1234567890.domain.name/'; buildCreator.emit(CreatedBuildEvent.type, {pr: 42, sha: '1234567890'});