全中文输出 + 积极正向的状态提示
所有 doctor 输出和渠道描述改为中文。 状态提示从'不支持/需要配置'的语气改为'配置一下就能用'。 Before: ⬜ Reddit posts — Need config: reddit_proxy After: ⬜ Reddit 帖子和评论 — 配个代理就能用 Before: ⬜ XiaoHongShu — Need config: xhs_cookie After: ⬜ 小红书笔记 — 导入浏览器 Cookie 就能用
This commit is contained in:
@@ -13,7 +13,7 @@ from typing import List
|
||||
|
||||
class GitHubChannel(Channel):
|
||||
name = "github"
|
||||
description = "GitHub repos and code"
|
||||
description = "GitHub 仓库和代码"
|
||||
backends = ["GitHub API"]
|
||||
tier = 0
|
||||
|
||||
@@ -29,8 +29,8 @@ class GitHubChannel(Channel):
|
||||
def check(self, config=None):
|
||||
token = config.get("github_token") if config else None
|
||||
if token:
|
||||
return "ok", "Full access (authenticated)"
|
||||
return "ok", "Public repos only. Set github_token for private repos + higher rate limits"
|
||||
return "ok", "已认证,可访问私有仓库"
|
||||
return "ok", "公开仓库可用。配置 github_token 可访问私有仓库"
|
||||
|
||||
def can_handle(self, url: str) -> bool:
|
||||
domain = urlparse(url).netloc.lower()
|
||||
|
||||
Reference in New Issue
Block a user