filter
default
Find commits that match the specified query.
Changed onpost/filter/commits
Request
- Base URL{{ server_url }}/v1
- Auth
- HTTP bearer
- or API key in header X-API-Key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"account": 1,
"date_from": "2020-01-23",
"date_to": "2020-05-23",
"in": [
"{1}",
"github.com/athenianco/athenian-webapp"
],
"property": "bypassing_prs"
}Response
Commits that satisfy the specified filters grouped by date.
Example response
{
"include": {
"users": {
"github.com/gkwillie": {
"avatar": "https://avatars0.githubusercontent.com/u/60340680?v=4"
}
}
},
"data": [
{
"repository": "github.com/athenianco/athenian-api",
"hash": "79f0bccb856b35ef08ec93da2ff5585da4d2e50e",
"author": {
"login": "github.com/gkwillie",
"name": "Groundskeeper Willie",
"email": "bot@athenian.co",
"timestamp": "2020-02-25T14:27:21Z",
"timezone": 1
},
"committer": {
"login": "github.com/gkwillie",
"name": "Groundskeeper Willie",
"email": "bot@athenian.co",
"timestamp": "2020-02-25T14:27:21Z",
"timezone": 1
},
"message": "Bump version: 0.0.42 → 0.0.43",
"size_added": 1,
"size_removed": 1,
"files_changed": 1
},
{
"repository": "github.com/athenianco/athenian-api",
"hash": "0d13a3e021fe4219915ba97ea07e465e429a621f",
"author": {
"login": "github.com/gkwillie",
"name": "Groundskeeper Willie",
"email": "bot@athenian.co",
"timestamp": "2020-03-20T10:06:49Z",
"timezone": 1
},
"committer": {
"login": "github.com/gkwillie",
"name": "Groundskeeper Willie",
"email": "bot@athenian.co",
"timestamp": "2020-03-20T10:06:49Z",
"timezone": 1
},
"message": "Bump version: 0.0.78 → 0.0.79",
"size_added": 1,
"size_removed": 1,
"files_changed": 1
}
]
}Changes
- breaking
the
///////response property's maxLength was unset from100for the response status - breaking
the
///////response property's minLength was decreased from1to0for the response status - info
the
///////response's property pattern^([^'\s]| ){1,100}$was added for the status
- breaking