Fix artifacts link

Summary: Changelog: [Internal] - Fix artifacts link in PR commitly comment

Reviewed By: hramos

Differential Revision: D31624488

fbshipit-source-id: cef7c79f1f8d290aa9541c3c955c9a68dc5fd643
This commit is contained in:
Luna Wei
2021-10-13 15:05:46 -07:00
committed by Facebook GitHub Bot
parent 91adb761cf
commit 046a7d2286
+3 -2
View File
@@ -30,12 +30,13 @@ const {createOrUpdateComment} = require('./make-comment');
* @param {string} commitSha github sha of PR
*/
function postArtifactLink(buildUrl, commitSha) {
const artifactLink = buildUrl + '/artifacts';
// build url link is redirected by CircleCI so appending `/artifacts` doesn't work
const artifactLink = buildUrl;
const comment = [
`PR build artifact${
commitSha != null ? ` for ${commitSha}` : ''
} is ready.`,
`To use, download tarball from [this CircleCI job](${artifactLink}) then run \`yarn add <path to tarball>\` in your React Native project.`,
`To use, download tarball from "Artifacts" tab in [this CircleCI job](${artifactLink}) then run \`yarn add <path to tarball>\` in your React Native project.`,
].join('\n');
createOrUpdateComment(comment);
}