@buildinternet/uploads 0.37.1 → 0.37.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/github.js +2 -5
  2. package/package.json +1 -1
package/dist/github.js CHANGED
@@ -460,8 +460,6 @@ export function attachmentsCommentBody(items, galleries = [], marker = ATTACHMEN
460
460
  }
461
461
  lines.push("");
462
462
  }
463
- if (sorted.length > 0 || sortedGalleries.length === 0)
464
- lines.push("### 📎 Attachments", "");
465
463
  const isImageAt = sorted.map((item) => {
466
464
  const name = item.key.slice(item.key.lastIndexOf("/") + 1);
467
465
  const src = item.embedUrl ?? item.url;
@@ -564,9 +562,8 @@ export function attachmentsCommentBody(items, galleries = [], marker = ATTACHMEN
564
562
  }
565
563
  // Emptied state: a PR/issue whose attachments and galleries were all removed
566
564
  // still keeps its managed comment (a later push can repopulate it) — show a
567
- // neutral resting state under the heading rather than a bare heading. Only
568
- // the truly-empty case (no attachments, no galleries); a galleries-only
569
- // comment has no Attachments heading and must not get this line.
565
+ // neutral resting state rather than a bare footer. Only the truly-empty case
566
+ // (no attachments, no galleries); a galleries-only comment must not get this.
570
567
  if (sorted.length === 0 && sortedGalleries.length === 0) {
571
568
  lines.push("_No attachments are currently associated with this pull request._", "");
572
569
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@buildinternet/uploads",
3
- "version": "0.37.1",
3
+ "version": "0.37.2",
4
4
  "description": "CLI and client for uploads.sh — workspace-scoped image hosting for GitHub embeds",
5
5
  "type": "module",
6
6
  "sideEffects": false,