Resources Repository Query Commits
🤬
Query Commits
Query commits of specified project. Will return list of matching commit hashes
Http Method
GET
End Point
/~api/repositories/{projectId}/commits
Placeholder Description Example
{projectId} Project Id 1
Query Parameters
Parameter Description Required Example
query Syntax of this query is the same as query box in commits page No since tag(v4.0.0) until tag(v4.7.0)
count Number of commits to return Yes 100
Response
Operation Successful
Status Code
200
Response Body
Content Type
application/json
Example
[ "string" ]
Operation Failed
Status code
Status code other than 200 indicating the error type
Response Body
Error detail of content type "text/plain"
cURL Example
$ curl -u <login name>:<password or access token> -G https://crash.software/~api/repositories/1/commits --data-urlencode 'query=since tag(v4.0.0) until tag(v4.7.0)' --data-urlencode count=100
Please wait...
Page is in error, reload to recover