0
votes

I've checked VSTS REST API documentation, but I haven't found a method which allows me to get information about the repository creation date.

Is it possible to get such data via the VSTS API?

2
- you should also post the links of the standard docs, where you have looked. - Sudipta Mondal

2 Answers

0
votes

I don't think it is possible to get the exact date of the moment the operation create repo was completed. However, logically the birthday of the repository is usually considered its first commit date.

If that's what you're looking for, you can achieve your goal with a usual Git command:

git log -1 --reverse --format="format:%ci"
0
votes

You need to check the first commit date for the repository. Check the Get Commits API:

GET https://{accountName}.visualstudio.com/_apis/git/repositories/{project}/commits?api-version=4.1