Skip to content

Files

Latest commit

 

History

History
56 lines (41 loc) · 1.93 KB

README.md

File metadata and controls

56 lines (41 loc) · 1.93 KB

🗨️ Stackoverflow plugin

The stackoverflow plugin lets you display your metrics, questions and answer from stackoverflow.

💬 Get your user id

Go to stackoverflow.com and click on your account profile.

Your user id will be in both url and search bar.

User id

➡️ Available options

Option Type (format) [default] {allowed values} Description
plugin_stackoverflow boolean [no] Stackoverflow metrics
plugin_stackoverflow_user number [0] Stackoverflow user id
plugin_stackoverflow_sections array (comma-separated) [answers-top, questions-recent] {"answers-top", "answers-recent", "questions-top", "questions-recent"} Sections to display
plugin_stackoverflow_limit number [2] {1 ≤ 𝑥 ≤ 30} Maximum number of entries to display per section
plugin_stackoverflow_lines number [4] {0 ≤ 𝑥} Maximum number of lines to display per question or answer
plugin_stackoverflow_lines_snippet number [2] {0 ≤ 𝑥} Maximum number of lines to display per code snippet

→ Full specification

ℹ️ Examples workflows

name: Top answers from stackoverflow
uses: lowlighter/metrics@latest
with:
  filename: metrics.plugin.stackoverflow.svg
  token: ${{ secrets.METRICS_TOKEN }}
  base: ''
  plugin_stackoverflow: 'yes'
  plugin_stackoverflow_user: 1
  plugin_stackoverflow_sections: answers-top
  plugin_stackoverflow_limit: 2