Skip to content

Commit ec559a0

Browse files
marcoww6meta-codesync[bot]
authored andcommitted
Add the pastry link to the SC step
Summary: Add the link to the SC step so people don't need to read the logs Reviewed By: SamChou19815 Differential Revision: D96834403 fbshipit-source-id: bd93dd9cda24052138add540978e024c87ce5f73
1 parent 25d0c4a commit ec559a0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tools/hermes-parser/js/scripts/verify-prettier-build.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ if sl status "$MINIFIED_PRETTIER_PLUGIN" | grep -q .; then
4949
echo "Uploading diff to pastry for easier viewing..."
5050
# Authenticate as Flow Bot for pastry access in CI environments
5151
jf arcrc --service-user 499706368 2>/dev/null || true
52-
if PASTRY_URL=$(echo "$DIFF_OUTPUT" | pastry 2>/dev/null); then
52+
if PASTRY_OUTPUT=$(echo "$DIFF_OUTPUT" | pastry 2>/dev/null); then
53+
PASTRY_ID=$(echo "$PASTRY_OUTPUT" | grep -oE 'P[0-9]+' | head -1)
54+
PASTRY_URL="https://www.internalfb.com/phabricator/paste/view/${PASTRY_ID}"
5355
echo "View the full diff at: $PASTRY_URL"
5456
else
5557
echo "(pastry upload failed — requires jf auth or a service user)"

0 commit comments

Comments
 (0)