FollowTheProcess/pytoil

[BUG] Repo info returns incorrect "updated at" timestamp

FollowTheProcess opened this issue · 0 comments

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Pytoil currently uses the "updatedAt" graphql field to populate the same field on repo info, show remote etc. This shows when the git object was last updated.

However, a more accurate field to choose would be "pushedAt" as this will bring back the timestamp at which the main branch was changed, which is probably what the user wants when looking for "updated at".

Currently pytoil shows out of date change timestamp info.

Expected Behavior

If you push to main (or merge a PR in), repo info should show the timestamp of the push not when the underlying git object was updated (which can be several hours out of date)

Steps To Reproduce

Change a repo and do pytoil info on it, you won't see the changed timestamp.

Environment

- OS:MacOs
- Python: 3.10.2
- pytoil: 0.26.0

Anything else?

No response