Repository navigation
chore(ONE-575): hub 项目数据 post → someday(YAML / OG 图 / meta 缓存) - #13
Merged
Merged
Conversation
🚀 Deploying Preview to Cloudflare 🚀Preview URL: https://agent-mary-64970eb9ffd4-workerhub.pama.workers.dev (commit 6bd3004)This URL reflects your latest Preview deploymentPreview Deployments by commit
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改名子单 B(ONE-575):hub 项目数据 post → someday(简单档)
改动(3 类,4 个文件,+9/−9)
src/data/projects/post.yaml→someday.yamlslug: post→someday;repo: WorkerHub/post→WorkerHub/somedayhomepage→https://someday.oneboy.appdocs_url/deploy.guide_url的WorkerHub/post#部署→WorkerHub/someday#部署name: 石笺与其余字段(tagline / features / tags / category 等)不动public/og/github/workerhub-post.png→workerhub-someday.png,并把内容重新抓取(旧图内嵌文字是WorkerHub/post,只改名会留下可见残留)。重新抓取走仓库自带脚本scripts/fetch-og-images.ts(HUB_OG_FORCE=1,源opengraph.githubassets.com/1/WorkerHub/someday),不是手工替换的图。src/data/cache/github-meta.json:删掉WorkerHub/post条目,换成WorkerHub/someday条目——数据来自scripts/fetch-github-meta.ts的真实抓取(GitHub API 返回的 pushedAt / stars / forks / license),未伪造。其余仓库条目的fetchedAt抖动已回退,保持改动最小。参考先例
src/data/projects/hop.yaml(原名 shortlink)的写法;未动 hub 其他项目条目、部署配置与构建流程。自测
pnpm fetch:meta:数据校验通过(11 个项目),11/11 抓取成功,无 404pnpm build:通过,产出 24 页,含/p/someday/,dist/p/post/已不存在pnpm lint:types(astro check):0 errors / 0 warnings / 0 hints;pnpm lint:format:All matched files use Prettier code stylepnpm test:127 pass / 0 fail / 1 skippeddist全量 grepWorkerHub/post、post.oneboy.app、/p/post、workerhub-post.png:0 命中/p/someday/输出https://someday.oneboy.app、https://github.com/WorkerHub/someday、.../someday#部署、https://hub.oneboy.app/og/github/workerhub-someday.png;sitemap.xml含someday/https://someday.oneboy.app200、https://github.com/WorkerHub/someday200、旧地址WorkerHub/post301→ someday(GitHub 自动跳转)已知非功能残留(本单范围外,供评审判断)
tests/submission-checks.test.ts里两处slug: 'post' / repo: 'WorkerHub/post' / homepage: 'https://post.oneboy.app'是 link-check 单测的合成夹具(不读数据文件、不上页面、不产生链接),本单按其「不改代码」的范围未动;如需一并清掉可另开一行改动。