Skip to content

Order versions by push date instead of committer date - #3

Merged
kurtmc merged 1 commit into
masterfrom
fix/order-versions-by-push-date
Oct 8, 2026
Merged

kurtmc merged 1 commit into
masterfrom
fix/order-versions-by-push-date

Conversation

@kurtmc

@kurtmc kurtmc commented Oct 7, 2026

Copy link
Copy Markdown

GitHub's GraphQL API no longer populates Commit.pushedDate (deprecated,
"Removal on 2023-07-01 UTC"), so Age() has been falling back to the
committer date. Concourse only schedules a version: every input ranked
above the newest version the job has already built, and a rebased commit
keeps an old committer date, so pushes of rebased stacks were ranked below
the cursor and never built.

Take the push time from the repository activity API instead, looking up
only pull requests updated since the last version. A push the repository
has not recorded yet is left for the next check so a version's date never
changes; forks fall back to the committer date. A version that only names
a pull request (fly check-resource --from pr:N) now produces just that
pull request's tip rather than every open pull request.

The README's pre-existing markdownlint violations (heading levels, a pipe
inside a table cell, a bare "here" link) are fixed so the edit can pass
the lint hook.

Testing

go vet ./... and go test ./... pass.

GitHub's GraphQL API no longer populates Commit.pushedDate (deprecated,
"Removal on 2023-07-01 UTC"), so Age() has been falling back to the
committer date. Concourse only schedules a `version: every` input ranked
above the newest version the job has already built, and a rebased commit
keeps an old committer date, so pushes of rebased stacks were ranked below
the cursor and never built.

Take the push time from the repository activity API instead, looking up
only pull requests updated since the last version. A push the repository
has not recorded yet is left for the next check so a version's date never
changes; forks fall back to the committer date. A version that only names
a pull request (fly check-resource --from pr:N) now produces just that
pull request's tip rather than every open pull request.

The README's pre-existing markdownlint violations (heading levels, a pipe
inside a table cell, a bare "here" link) are fixed so the edit can pass
the lint hook.

Co-Authored-By: clank-halter[bot] <2696940+clank-halter[bot]@users.noreply.github.com>
Clank-Job-Id: 62103f95-6af0-4f16-9d96-36e5cac5a5c4
@kurtmc
kurtmc marked this pull request as ready for review October 8, 2026 00:00
@kurtmc
kurtmc merged commit 134d9c9 into master Oct 8, 2026
2 checks passed
@kurtmc
kurtmc deleted the fix/order-versions-by-push-date branch October 8, 2026 00:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant