Install
openclaw skills install @zhaoxinghua09-cell/github-workflow-integrationGitHub 工作流集成 — 纯 stdlib CLI 包装 GitHub REST API:开 PR / 列 PR / 查 commit status / Git Data API 推文件(blob→tree→commit→ref)。令牌从环境变量 GITHUB_TOKEN 读取,零存储零打印。当你想脚本化"提 PR / 推文件到远端分支 / 查 CI 状态"又不想装 git+gh 时使用;触发词:github-pr、开 PR、推送文件、commit status、CI 状态查询。
openclaw skills install @zhaoxinghua09-cell/github-workflow-integrationgithub-workflow-integration v1.0.0 · LGD-Powered dev-productivity family · zero-dependency
The official gh CLI is heavy, git push fails on 401/proxy/timeout, and wrapping the GitHub REST API yourself means copy-pasting urllib boilerplate every time. This skill is the thin, stdlib-only wrapper you can drop into any Python 3.8+ environment: open a PR, list open PRs, read a commit's combined status, or push a single file via the Git Data API (blob→tree→commit→ref) — without installing git, gh, or any third-party package.
client_id, no token exchange.repo scope → copy.GITHUB_TOKEN at call time. It is never written to disk, never logged, never echoed in output.GITHUB_TOKEN is unset, the tool exits rc=2 with minting instructions — it does not open a browser, does not pretend to be authenticated, and does not ship a half-working integration.--dry-run to preview the request shape before firing the real call.# mint a PAT on github.com first, then:
export GITHUB_TOKEN=ghp_xxx
python scripts/gh_workflow.py pr list --repo owner/repo
python scripts/gh_workflow.py pr create --repo owner/repo --title "Fix bug" --head fix --base main --body "details"
python scripts/gh_workflow.py status --repo owner/repo --ref main
python scripts/gh_workflow.py push-file --repo owner/repo --path ./local.txt --message "add local.txt" --branch main
# preview without sending anything:
python scripts/gh_workflow.py pr create --repo owner/repo --title "x" --head feature --base main --dry-run
GITHUB_TOKEN in the environment. If not, give the minting link and stop — do not call the API.pr create, push-file), prefer --dry-run first and show the user the target repo/branch/message for confirmation.repo scope; 404 means the repo name or branch is wrong.$ python scripts/gh_workflow.py pr list --repo owner/repo
#12 [open] Fix login timeout (main <- fix-login)
#11 [open] Bump deps (main <- chore/bump)
This is a minimum wrapper around four GitHub REST endpoints. It does not handle merge, review comments, releases, workflows dispatch, or GitHub App installation. If you need those, extend the call() helper — the auth and error-shaping are already done.
Dev-productivity aid. A write operation changes remote state; confirm target repo/branch/message with the user before dropping --dry-run.
github-workflow-integration v1.0.0 · LGD-Powered 开发效率家族 · 零依赖
官方 gh CLI 重;git push 在 401/代理/超时上反复翻车;自己包 GitHub REST API 每次都要抄一遍 urllib 样板。本技能是一层薄的、纯 stdlib 包装,丢进任意 Python 3.8+ 环境就能用:开 PR、列 PR、读 commit 的 combined status、用 Git Data API(blob→tree→commit→ref)推单文件——不装 git、不装 gh、不装任何第三方包。
client_id、没有 token 交换。repo 权限生成。GITHUB_TOKEN 读取,不落盘、不写日志、不回显。GITHUB_TOKEN 未设置时工具退出 rc=2 并打印生成指引——不自动开浏览器、不假装已认证、不交付半成品集成。--dry-run 预览请求形状再真发。# 先去 github.com 生成 PAT,然后:
export GITHUB_TOKEN=ghp_xxx
python scripts/gh_workflow.py pr list --repo owner/repo
python scripts/gh_workflow.py pr create --repo owner/repo --title "Fix bug" --head fix --base main --body "details"
python scripts/gh_workflow.py status --repo owner/repo --ref main
python scripts/gh_workflow.py push-file --repo owner/repo --path ./local.txt --message "add local.txt" --branch main
# 只演练不真发:
python scripts/gh_workflow.py pr create --repo owner/repo --title "x" --head feature --base main --dry-run
GITHUB_TOKEN。没有就给生成指引并停下——不调 API。pr create、push-file)先 --dry-run,把目标 repo/branch/message 给用户确认。repo scope;404 = repo 名或分支名错。$ python scripts/gh_workflow.py pr list --repo owner/repo
#12 [open] Fix login timeout (main <- fix-login)
#11 [open] Bump deps (main <- chore/bump)
这是四个 GitHub REST 端点的最小包装。不处理 merge、review 评论、release、workflow dispatch、GitHub App 安装。需要这些就扩 call() 助手——认证和错误整形已经做好。
本工具为开发效率辅助。写操作会改远端状态;去掉 --dry-run 前请与用户确认目标 repo/branch/message。