Skip to content

Latest commit

 

History

History
130 lines (125 loc) · 3.82 KB

README.md

File metadata and controls

130 lines (125 loc) · 3.82 KB

🗨️ StackOverflow plugin

This plugin displays stats, questions and answer from stackoverflow.

Supported features
→ Full specification
📗 Classic template
👤 Users 👥 Organizations
No tokens are required for this plugin

➡️ Available options

TypeDescription
plugin_stackoverflow

Enable stackoverflow plugin

type: boolean
default: no
plugin_stackoverflow_user

Stackoverflow user id

⏯️ Cannot be preset
type: number
default: 0
plugin_stackoverflow_sections

Displayed sections

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

Display limit (per section)

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

Display limit for questions and answers

Code snippets count as a single line and must be configured with plugin_stackoverflow_lines_snippet instead

type: number (0 ≤ 𝑥)
zero behaviour: disable
default: 4
plugin_stackoverflow_lines_snippet

Display limit for code snippets

type: number (0 ≤ 𝑥)
zero behaviour: disable
default: 2

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