Skip to content

Commit 39a03c0

Browse files
authored
fix: upload-action pr comment uses consistent spacing (#206)
1 parent ecfb9e0 commit 39a03c0

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

upload-action/src/comments/comment.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ import { getOutputSummary } from '../outputs.js'
1414
*/
1515
const generateCommentBody = (context, status) => {
1616
return `<!-- filecoin-pin-upload-action -->
17-
${getOutputSummary(context, status)}
18-
<a href="${getWorkflowRunUrl()}">More details</a>`
17+
${getOutputSummary(context, status)}
18+
19+
<a href="${getWorkflowRunUrl()}">More details</a>`
1920
}
2021

2122
/**

upload-action/src/outputs.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ export function getOutputSummary(context, status) {
119119
'## Filecoin Pin Upload',
120120
'',
121121
'**IPFS Artifacts:**',
122+
'',
122123
`* IPFS Root CID: ${ipfsRootCid}`,
123124
`* Centralized IPFS HTTP Gateway Preview: ${centralizedIpfsGatewayPreview}`,
124125
`* In-Browser IPFS HTTP Gateway Preview: ${inBrowserIpfsGatewayPreview}`,
@@ -127,13 +128,15 @@ export function getOutputSummary(context, status) {
127128
`* CAR file size: ${formatSize(carSize)}`,
128129
'',
129130
'**Onchain verification:**',
131+
'',
130132
`* Network: ${network}`,
131133
`* Data Set ID: [${dataSetId}](https://pdp.vxb.ai/${network || 'mainnet'}/dataset/${dataSetId})`,
132134
`* Piece CID: [${pieceCid}](https://pdp.vxb.ai/${network || 'mainnet'}/piece/${pieceCid})`,
133135
`* Provider: [${provider?.name || 'Unknown'} (ID ${provider?.id || 'Unknown'})](https://pdp.vxb.ai/${network || 'mainnet'}/providers/${providerAddress})`,
134136
`* Piece download direct from provider: ${previewUrl}`,
135137
'',
136138
'**Payment:**',
139+
'',
137140
`* Current Filecoin Pay balance: ${formatUSDFC(ethers.parseUnits(paymentStatus.filecoinPayBalance, 18))} USDFC`,
138141
`* Amount deposited to Filecoin Pay by this workflow: ${formatUSDFC(ethers.parseUnits(paymentStatus.depositedThisRun, 18))} USDFC`,
139142
`* Data Set Storage runway: ${paymentStatus.storageRunway}`,

0 commit comments

Comments
 (0)