Add stackoverflow plugin (#159)

This commit is contained in:
Simon Lecoq
2021-02-27 23:24:51 +01:00
committed by GitHub
parent a43f217297
commit cfca5d3892
11 changed files with 563 additions and 3 deletions

View File

@@ -0,0 +1,36 @@
### 🗨️ Stackoverflow plugin
The *stackoverflow* plugin lets you display your metrics, questions and answer from [stackoverflow](https://stackoverflow.com/).
<table>
<td align="center">
<img src="https://github.com/lowlighter/lowlighter/blob/master/metrics.plugin.stackoverflow.svg">
<img width="900" height="1" alt="">
</td>
</table>
<details>
<summary>💬 Get your user id</summary>
Go to [stackoverflow.com](https://stackoverflow.com/) and click on your account profile.
Your user id will be in both url and search bar.
![User id](/.github/readme/imgs/plugin_stackoverflow_user_id.png)
</details>
#### Examples workflows
[➡️ Available options for this plugin](metadata.yml)
```yaml
- uses: lowlighter/metrics@latest
with:
# ... other options
plugin_stackoverflow: yes
plugin_stackoverflow_user: 8332505 # Stackoverflow user id (required)
plugin_stackoverflow_sections: answers-top, questions-recent # Display top answers and recent questions
plugin_stackoverflow_limit: 2 # Display 2 entries per section
plugin_stackoverflow_lines: 4 # Display 4 lines per entry
```