本地快速浏览 Github issue/pr,查看新增 comment/issue/pr/response
Project description
local-github
本地快速浏览 Github issue/pr,查看新增 comment/issue/pr
这个项目的起因是在网页端浏览 Github repo 的 issue/pr 之间切换比较慢,因为每次都要重新发起请求。而且作为一个非 member 也不想时时刻刻 watch 新增 issue/pr/comment 收到一堆邮件,但又想知道有哪些内容更新了,谁新增了回复,谁提交了新的 issue/pr,哪些 issue/pr 的 状态更改了,所以诞生了这个项目
基本思路是通过 Github API 获取开源仓库的所有issue/pr信息保存到本地 json,然后本地生成静态页面浏览。考虑到绝大部分项目的 update 没有那么频繁,所以这种把数据拉到本地查看的方案也还好。这个项目的页面完全仿照 Github 的页面,几乎可以说 1:1 复刻,然后去掉了一些不重要的组件。
Quick start
pip install local_github
Shell completion
pip install local_github 会安装 bash / zsh 补全脚本到当前 Python prefix 的标准目录:
share/bash-completion/completions/local-githubshare/zsh/site-functions/_local-github
补全脚本会从当前目录向上查找 docs/repos/<owner>/<repo>,输入下面命令后按 Tab 可以补全本地已有仓库:
local-github sync <Tab>
如果 docs/ 不在当前项目目录下,可以指定:
export LOCAL_GITHUB_DOCS_REPOS=/path/to/docs/repos
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file local_github-0.1.3.tar.gz.
File metadata
- Download URL: local_github-0.1.3.tar.gz
- Upload date:
- Size: 32.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.3.4 CPython/3.12.4 Linux/6.6.0vtism+
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b415c1275e0d3063a7c73c2b03d6fd5852b18af2364148d320b3c1da7f483160
|
|
| MD5 |
93545b8472d992863de536e4d2abfec3
|
|
| BLAKE2b-256 |
ac4827aa1186248495931ba0a50fd9b2e131d3f9c084585283c367c4403478d4
|
File details
Details for the file local_github-0.1.3-py3-none-any.whl.
File metadata
- Download URL: local_github-0.1.3-py3-none-any.whl
- Upload date:
- Size: 36.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.3.4 CPython/3.12.4 Linux/6.6.0vtism+
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ea9a7167059f83b26371db0545f5447bee678d4026b6de4066ccee9dc07d2854
|
|
| MD5 |
f9f4f7185376e920307e138d988d0af8
|
|
| BLAKE2b-256 |
65cb2e00fc5d1e991237be07cd1ce6a9cdf41e43f9037fb0e55246138d331537
|