-
Notifications
You must be signed in to change notification settings - Fork 0
Public API
This document is a draft of our public API. Please refer to issue #4 for general discussion, or to issues #1, #2 and #3 for discussions of specific features provided by the API.
The public API is read-only, so the only HTTP verb supported is GET
; everything else results in 400 Bad Request
.
Empty fields might be omitted.
/organizations/codingteam/news
Optional parameters:
-
since
Accepts a date in ISO 8601 format (
YYYY-MM-DDTHH:MM:SSZ
). Only events that occurred on this or later date will be returned. -
until
Accepts a date in ISO 8601 format (
YYYY-MM-DDTHH:MM:SSZ
). Only events that occurred on this or earlier date will be returned.
Body:
[ { "subject": "issue"
, "action": "assigned|unassigned|labeled|unlabeled|opened|closed|reopened|commented_on"
, "issue_url": "https://github.com/orgs/codingteam/world-domination/issues/1"
, "issue_title": "An awful lot of the code is still unwritten"
, "user": "Minoru"
, "user_url": "https://github.com/Minoru"
, "assignee": "ForNeVeR"
, "assignee_url": "https://github.com/ForNeVeR"
, "label": "bug|feature etc."
, "status": "open|closed|reopened"
, "datetime": "2015-04-17T01:23:45Z"
}
, { "subject": "pull_request"
, "action": "assigned|unassigned|labeled|unlabeled|opened|closed|reopened"
, "pull_request_url": "https://github.com/orgs/codingteam/world-domination/pulls/1"
, "pull_request_title": "All the Erlang code ever written, in a nice tar.gz.bz2.xz.zip.rar.7z bundle"
, "user": "Minoru"
, "user_url": "https://github.com/Minoru"
, "merged": false
, "datetime": "2015-04-17T01:23:45Z"
}
, { "subject": "push"
, "user": "Minoru"
, "user_url": "https://github.com/Minoru"
, "repo": "world-domination"
, "repo_url": "https://github.com/orgs/codingteam/world-domination"
, "branch": "develop"
, "commits_count": "42"
, "datetime": "2015-04-17T01:23:45Z"
} ]
assignee
and assignee_url
are only present when action
is assigned
or unassigned
.
label
is only present when action
is labeled
or unlabeled
.
status
is only present when action
is opened
, closed
or reopened
.
merged
is only present if action
is closed
.
Body: empty
/organizations/codingteam/activity
For each user and for each repo, provides average number of commits pushed today, in the last 7 days (week) and last 30 days (month). Please note: this means that the commits are counted toward the day they were pushed on, not the day they were commited on.
{ "repos": [ { "name": "world-domination",
"url": "https://github.com/codingteam/world-domination",
"day_average": 15,
"week_average": 1050,
"month_average": 100500 } ],
"users": [ { "name": "Minoru",
"url": "https://github.com/Minoru",
"day_average": 15,
"week_average": 1050,
"month_average": 100500 } ],
}
Body: empty
/organizations/codingteam/analytics
Body:
[ { "user": "Minoru"
, "user_url": "http://github.com/Minoru"
, "repos_per_language": {
"haskell": 1
, "shell": 1
} } ]
Body: empty