Files
metrics/source/plugins/stackoverflow

🗨️ 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

TypeDescription
plugin_stackoverflow

Stackoverflow metrics

type: boolean
default: no
plugin_stackoverflow_user

Stackoverflow user id

type: number
default: 0
plugin_stackoverflow_sections

Sections to display

type: array (comma-separated)
default: answers-top, questions-recent
allowed values:
  • answers-top
  • answers-recent
  • questions-top
  • questions-recent
plugin_stackoverflow_limit

Maximum number of entries to display per section

type: number (1 ≤ 𝑥 ≤ 30)
default: 2
plugin_stackoverflow_lines

Maximum number of lines to display per question or answer

type: number (0 ≤ 𝑥)
default: 4
plugin_stackoverflow_lines_snippet

Maximum number of lines to display per code snippet

type: number (0 ≤ 𝑥)
default: 2

→ 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