Skip to content

Enhance SVG Generator CLI and Action with Argument Parsing and Extended Options#414

Open
Erik-Donath wants to merge 15 commits intoryo-ma:masterfrom
Erik-Donath:feature/generate-svg
Open

Enhance SVG Generator CLI and Action with Argument Parsing and Extended Options#414
Erik-Donath wants to merge 15 commits intoryo-ma:masterfrom
Erik-Donath:feature/generate-svg

Conversation

@Erik-Donath
Copy link
Copy Markdown
Contributor

Description

This PR refactors and extends the GitHub Profile Trophy generator to provide a more flexible and user-friendly CLI interface, along with updated GitHub Action support and documentation.

Additions / Changes

  • render_svg.ts: Added Arg Parsing; Fixed Bug where a Directory was created when only a file name (without ./) was provided; Improved error handling
  • action.yml: Updated to align with the new argument parsing
  • README.md: Added Dokumentation on how to use the script and action.

Arguments

  -f,  --file FILE          Output file (default: ./trophy.svg)
  -t,  --theme THEME        Theme name (default: default)
  -c,  --cols N             Max Columns (-1=auto, default: -1)
  -r,  --rows N             Max Rows (default: 10)
  -s,  --panel-size N       Panel size (default: 115)
  -mw, --margin-width N     Margin Width size (default: 10)
  -mh, --margin-height N    Margin Height size (default: 10)
  --no-background           Disable background
  --no-frame                Disable frame
  -h,  --help               Show this help

@vercel
Copy link
Copy Markdown

vercel bot commented Jan 29, 2026

@Erik-Donath is attempting to deploy a commit to the ryo-ma's Team Team on Vercel.

A member of the Team first needs to authorize it.

@Erik-Donath
Copy link
Copy Markdown
Contributor Author

Please change the action in README to: github.com/ryo-ma/github-profile-trophy@master. Thanks!

@ryo-ma
Copy link
Copy Markdown
Owner

ryo-ma commented Mar 3, 2026

PR is conflicting. Please rebase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants