Skip to content

Commit 0e4b7e4

Browse files
authored
Merge pull request #8 from link-foundation/issue-7-ece319e73fdb
feat: Add image download and processing support
2 parents dc278ce + 31b1dac commit 0e4b7e4

File tree

3 files changed

+619
-97
lines changed

3 files changed

+619
-97
lines changed

.changeset/feat-image-download.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
'gh-download-pull-request': minor
3+
---
4+
5+
Add image download and processing support
6+
7+
- Download embedded images from PR body, comments, reviews, and review comments
8+
- Support both Markdown (![alt](url)) and HTML (<img src="url">) image references
9+
- Validate downloaded files by checking magic bytes (PNG, JPG, GIF, WebP, BMP, ICO, SVG)
10+
- Detect and skip HTML error pages mistakenly downloaded as images
11+
- Handle GitHub S3 signed URLs and redirects (up to 5 hops)
12+
- Update markdown to reference local image paths
13+
- Add JSON output format (--format json)
14+
- Add new CLI options: --download-images, --include-reviews, --format, --verbose

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gh-download-pull-request",
3-
"version": "0.2.1",
3+
"version": "0.3.0",
44
"description": "Download GitHub pull request and convert it to markdown",
55
"type": "module",
66
"main": "src/gh-download-pull-request.mjs",

0 commit comments

Comments
 (0)