✨ feat: support timeline --before/--after filters#41
✨ feat: support timeline --before/--after filters#41SigureMo merged 3 commits intoShigureLab:mainfrom
--before/--after filters#41Conversation
Co-authored-by: Codex <codex@openai.com>
|
已自查,验证命令已在 PR 描述中列出。@SigureMo 麻烦 review~ |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: bd0c1cdf2f
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
--before/--after filters
SigureMo
left a comment
There was a problem hiding this comment.
@ShigureNyako 展示下最新的 gh-llm 的输出效果,主要展示和之前的 diff,比如用当前 PR
|
按你的建议,我用当前 PR #41 贴一下最新 1. 首次读取命令: uv run gh-llm pr view 41 --repo ShigureLab/gh-llm --show meta,timeline输出摘录: 这里和之前最主要的差异是:现在直接在 frontmatter 里给出 2. 增量读取命令: uv run gh-llm pr view 41 --repo ShigureLab/gh-llm --page-size 10 --after 2026-04-08T03:26:48Z --show meta,timeline输出摘录: 也就是后续可以直接拿上一次输出里的
另外我刚顺手把 bot 提到的一个缺陷也一起修了:过滤模式下 |
ShigureNyako
left a comment
There was a problem hiding this comment.
独立复查结论:这版没有再看到阻塞问题。
我重点复查了:
--after/--before的时间窗口解析与过滤方向- frontmatter 里的
fetched_at/timeline_after/timeline_before/ filtered vs unfiltered 计数 - filtered 场景下
timeline-expand/details-expand与--expand的一致性 - 新增测试是否覆盖增量读取、filtered 分页、非法时间范围和 expand 回归
当前实现与测试是一致的,后续补丁也已经把 bot 提到的 filtered --expand 问题修掉;我这边没有发现新的 blocking issue。
验证结果:uv run pytest、uv run ruff check、uv run pyright。
注:我尝试直接提交 APPROVE,但 GitHub 不允许作者 approve 自己的 PR,所以这里用 COMMENT 记录自审结论。
Summary
Closes #40.
为 PR / issue 的 timeline 阅读增加
--after/--before时间窗口过滤,支持后续按fetched_at做增量读取。Changes
pr view/pr timeline-expand/issue view/issue timeline-expand增加 RFC3339 / ISO 8601 风格的--after/--beforefetched_at,过滤时额外输出timeline_after/timeline_before/timeline_events_unfiltered--after从 timeline 尾部向前抓取,--before从头部向后抓取skills/github-conversation/SKILL.md,补充增量读取工作流Validation
uv run pytestuv run ruff checkuv run pyrightuv run gh-llm issue view 40 --repo ShigureLab/gh-llm --show meta,descriptionuv run gh-llm issue view 40 --repo ShigureLab/gh-llm --page-size 10 --after 2026-04-08T02:30:00Z@SigureMo 麻烦 review~