Difference between "updated_at" and "pushed_at" in repositories list response #24442
-
Hi, can I get more detailed info on what’s the difference between these two fields in
How do I push to a repo without updating it as I’ve seen repositories with “updated_at” earlier than “pushed_at”? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @docc46, Welcome to the Github Community Forum!
pushed_at will be updated any time a commit is pushed to any of the repository’s branches. updated_at will be updated any time the repository object is updated, e.g. when the description or the primary language of the repository is updated. The difference is that pushed_at represents the date and time of the last commit, whereas the updated_at represents the date and time of the last change the the repository. A change to the repository might be a commit, but it may also be other things, such as changing the description of the repo, creating wiki pages, etc. In other words, commits are a subset of updates, and the pushed_at timestamp will therefore either be the same as the updated_at timestamp, or it will be an earlier timestamp. (stackoverflow) -Gabriele- Mark helpfull posts with Accept as Solution to help other users locate important info. Don’t forget to give Kudos for great contents! |
Beta Was this translation helpful? Give feedback.
Hi @docc46,
Welcome to the Github Community Forum!
pushed_at will be updated any time a commit is pushed to any of the repository’s branches.
updated_at will be updated any time the repository object is updated, e.g. when the description or the primary language of the repository is updated. The difference is that pushed_at represents the date and time of the last commit, whereas the updated_at represents the date and time of the last change the the repository. A change to the repository might be a commit, but it may also be other things, such as changing the description of the repo, creating wiki pages…