Skip to content

Commit

Permalink
Fix artifacts link
Browse files Browse the repository at this point in the history
Summary: Changelog: [Internal] - Fix artifacts link in PR commitly comment

Reviewed By: hramos

Differential Revision: D31624488

fbshipit-source-id: cef7c79f1f8d290aa9541c3c955c9a68dc5fd643
  • Loading branch information
Luna Wei authored and facebook-github-bot committed Oct 13, 2021
1 parent 91adb76 commit 046a7d2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bots/post-artifacts-link.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 046a7d2

Please sign in to comment.