mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
committed by
Facebook GitHub Bot
parent
91adb761cf
commit
046a7d2286
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user