Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get last commit date of a file with github api

The normal GET /repos/:owner/:repo/contents/:path doesn't contain any information about date.

like image 746
nichijou Avatar asked Nov 18 '22 08:11

nichijou


1 Answers

Edit:

  1. In order to find the date of specific file look here - https://api.github.com/repos/:owner/:repo/commits?path=PATH_TO_FILE

you can see here the date of the commit which is the date when the file uploaded to git.

  1. check this path - https://api.github.com/repos/:owner/:repo/commits

inside you can see both commit date and the files of the commit

enter image description here

like image 172
Tal Folkman Avatar answered Dec 05 '22 19:12

Tal Folkman