← 输入框|github.com|刷新
Skip to content

[pull] master from josegonzalez:master - #118

Merged
pull[bot] merged 4 commits into
dumpmemory:masterfrom
josegonzalez:master
Jul 28, 2026
Merged

pull[bot] merged 4 commits into
dumpmemory:masterfrom
josegonzalez:master

Conversation

@pull

@pull pull Bot commented Jul 28, 2026 •

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

Iamrodos and others added 4 commits July 26, 2026 19:15
The issue events endpoint never returns cross-references, so an issue
mentioned from another issue or pull request leaves no trace in the
backup. GitHub only exposes those through the timeline endpoint. Full
backups miss them as well as incremental ones.

Adds --issue-timeline, which stores the timeline under a separate
timeline_data key alongside the unmodified event_data. The two
endpoints are complementary rather than nested: the timeline adds
cross-references, commits and reviews, while events carries
referenced entries the timeline drops, so neither replaces the other.

Timeline entries for comments are filtered out, since --issue-comments
already saves the bodies. Everything else is stored verbatim. The flag
is included in --all.

This makes the data obtainable, but does not change incremental
selection: a cross-reference does not bump the referenced issue's
updated_at, so an incremental run still never lists it. That half of
the issue remains open.

References #168
Cross-references do not change an issue's updated_at, so an incremental
run never lists the issue and never re-fetches its timeline. An issue
can be referenced from another repository years after its last activity
and the backup would never see it.

On incremental runs with --issue-timeline, ask GraphQL for each item's
cross-reference count and newest timestamp, compare both against what is
already saved, and re-fetch the timeline of anything that differs. Items
the since listing did not return are fetched individually. Both values
are needed: the count alone would miss a reference being added and
another deleted between runs, and the timestamp alone would miss a
deletion.

Pull requests are swept too when they are being stored as issues, which
is the case unless --pulls is used. They need their own query because
the issues connection excludes them, and because totalCount ignores the
itemTypes filter on a pull request although it honours it on an issue,
so their cross-references are counted from the nodes instead. Where that
count may have been truncated, the comparison falls back to the
timestamp alone rather than re-fetching on every run.

This costs one rate-limit point per 100 items against the GraphQL quota,
measured at 6 requests for a repository with 528 issues and pull
requests, and stores no new state: the comparison is against the
cross-references already in each item's timeline_data. A GraphQL failure
warns and leaves the rest of the backup unaffected.

Closes #168
Add --issue-timeline flag and refresh timelines when cross-references change (#168)
@pull pull Bot locked and limited conversation to collaborators Jul 28, 2026
@pull pull Bot added the ⤵️ pull label Jul 28, 2026
@pull
pull Bot merged commit 3385c8a into dumpmemory:master Jul 28, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants