Repository navigation
Initial Release
Release Notes: PR Image Width Adjuster v1.0.0
๐ Initial Release
We're excited to introduce the PR Image Width Adjuster GitHub Action! This action automatically converts markdown images in pull request descriptions to HTML <img> tags with specified width attributes, providing better control over image display without physically resizing images.
โจ Features
- Markdown to HTML conversion: Automatically detects markdown image syntax (
) in PR descriptions and converts them to HTML<img>tags - Width control: Adds a configurable width attribute to all images (defaults to 300px)
- Alt text preservation: Maintains the original alt text from markdown images
- Zero image manipulation: Controls display size without downloading or modifying the original images
- Lightweight: Minimal dependencies, fast execution
๐ ๏ธ Configuration Options
token: GitHub token for API access (Required)width: Target width for images in pixels (Optional, defaults to 300)
๐ Usage Example
name: Adjust Image Widths
on:
pull_request:
types: [opened, edited, synchronize]
jobs:
adjust-image-widths:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Adjust image widths in PR description
uses: your-username/pr-image-width-adjuster@v1.0.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
width: 500 # Optional, defaults to 300px๐งช Testing
This release includes comprehensive test coverage to ensure reliable operation in various scenarios.
๐ฎ Future Plans
- Support for additional image formats
- Option to specify different widths for different image types
- Support for other HTML attributes
We welcome your feedback and contributions!