让我看看我的github贡献!
show-me的Python项目详细描述
show-me
这是一个简单的工具,可以向您展示github贡献的历史。
$ show-me
Repo | ★ | Total | Pulls | Issues | Commits | Reviews
---------------------------------------+-----+---------+---------+----------+-----------+-----------
packit-service/packit | 20 | 421 | 47 | 58 | 258 | 58
ansible-community/ansible-bender | 105 | 177 | 20 | 33 | 123 | 1
user-cont/release-bot | 36 | 76 | 6 | 21 | 28 | 21
packit-service/ogr | 5 | 68 | 10 | 9 | 32 | 17
user-cont/colin | 30 | 41 | 2 | 1 | 29 | 9
user-cont/conu | 141 | 39 | 3 | 3 | 21 | 12
TomasTomecek/speaks | 2 | 26 | 0 | 1 | 25 | 0
TomasTomecek/dotfiles | 3 | 24 | 0 | 0 | 24 | 0
packit-service/upsint | 1 | 17 | 2 | 6 | 8 | 1
TomasTomecek/sen | 760 | 12 | 1 | 1 | 9 | 1
TomasTomecek/ansible-role-release-bot | 0 | 11 | 0 | 0 | 11 | 0
TomasTomecek/pretty-git-prompt | 33 | 9 | 1 | 1 | 7 | 0
rebase-helper/rebase-helper | 30 | 8 | 1 | 5 | 0 | 2
TomasTomecek/mysterious-keybinds | 0 | 8 | 0 | 0 | 8 | 0
prgcont/workshop-ansible-containers | 4 | 7 | 1 | 0 | 6 | 0
图例(按顺序排列的列):
- github存储库的名称。
- 当前星计数。
- 贡献的总数(请求、问题、提交和审阅的总和)。
- 由您创建的请求数。
- 你创造了多少问题。
- 提交到存储库的提交总数。
- 你做了很多评论。
要求
- Python3.6+
- github api令牌:您可以在settings
page中获取它。
- 通过环境变量
GITHUB_TOKEN
传递给我。
- 通过环境变量
安装
$ pip3 install --user show-me
可以直接从github安装:
$ pip3 install --user git+https://github.com/TomasTomecek/show-me
用法
$ GITHUB_TOKEN=my-token show-me
您可以通过cli选项配置show me:
Usage: show-me [OPTIONS]
Show me my Github contributions!
Options:
-n, --lines INTEGER Print first N lines. [default: 15]
--cache-file-path PATH Path to the cache file. [default:
/home/tt/.cache/show-me.json]
--load-from-cache Don't query Github and load from cache.
--save-to-cache Query Github and save response to a file (to save
time and bandwidth).
--debug Show debug logs.
--start-year INTEGER Start counting the contributions in the selected
year. [default: 2019]
-h, --help Show this message and exit.
玩得开心!