lowlighter / metrics

📊 An infographics generator with 30+ plugins and 300+ options to display stats about your GitHub account and render them as SVG, Markdown, PDF or JSON!
https://metrics.lecoq.io
MIT License
13.46k stars 1.67k forks source link

chess user name included in the plugin example #1641

Open mari-muthu-k opened 3 weeks ago

mari-muthu-k commented 3 weeks ago

Description

This PR update includes the addition of the plugin_chess_user parameter to specify the Lichess username for which the most recent game should be fetched.

Changes

Details

The plugin_chess_user parameter was added because the Lichess API endpoint for retrieving the latest game requires a user identifier. This change ensures that the workflow correctly fetches the most recent game for the specified user.

Example Configuration

name: Last chess game from lichess.org
uses: lowlighter/metrics@latest
with:
  filename: metrics.plugin.chess.svg
  token: NOT_NEEDED
  base: ""
  plugin_chess: yes
  plugin_chess_user: ${{ secrets.CHESS_USER }}
  plugin_chess_token: ${{ secrets.CHESS_TOKEN }}
  plugin_chess_platform: lichess.org

Testing