- CONVENTIONS 1.9.0:规则新增 boundaries/failure_cases 可选字段(失败定边界, 经验细化为变体而非推翻);新增 R11 自动执行规则失效时必须记录失败案例; 模块状态表补 abandoned 定义(何时更新蓝图章节早已引用但表中缺失) - 状态词汇统一:github-auth/github-publish 的 deprecated(未定义状态)→ abandoned, BlueprintModal 状态色表补 abandoned 渲染 - 文档防腐:CLAUDE.md 技术栈改为 Gitea(GitHub 已退役);cicd-workflow 模块 加改造中指针(单一事实来源指向 gitea-integration 的 Gitea Actions 卡) - 蓝图:R2 卡完成解锁(分发随下次发版生效)
27 lines
767 B
Markdown
27 lines
767 B
Markdown
---
|
||
id: github-auth
|
||
name: GitHub OAuth
|
||
status: abandoned
|
||
progress: 100
|
||
---
|
||
|
||
> ❄️ **已冻结(2026-06-19)**:全面统一自建 Gitea,弃用 GitHub。
|
||
> 🗑️ **已退役(2026-07-02)**:代码全部移除(github.rs 删除、登录门槛拆除、OAuth 命令下线),详见 github-decommission 模块。本文件仅作历史记录。
|
||
|
||
## 概述
|
||
GitHub OAuth Device Flow 认证,获取 token 后支持 API 操作和 Git 推送。
|
||
|
||
## 任务卡
|
||
|
||
### ✅ OAuth Device Flow
|
||
- status: done
|
||
- files: src-tauri/src/commands/github.rs, src/components/auth/
|
||
|
||
启动 OAuth 流程、轮询 token、保存账户信息。
|
||
|
||
### ✅ Token 管理
|
||
- status: done
|
||
- files: src-tauri/src/commands/github.rs
|
||
|
||
保存、读取、清除 GitHub token,支持登出。
|