Commit 17880efe authored by James Edwards-Jones's avatar James Edwards-Jones

Services API includes GithubService

parent ab9e5cc1
......@@ -368,6 +368,32 @@ module API
desc: "The project's slug on gemnasium.com"
}
],
'github' => [
{
required: true,
name: :token,
type: String,
desc: 'GitHub API token with repo:status OAuth scope'
},
{
required: false,
name: :api_url,
type: String,
desc: 'GitHub instance API URL, defaults to https://api.github.com'
},
{
required: true,
name: :owner,
type: String,
desc: 'Owner or organization of the GitHub repo'
},
{
required: true,
name: :repository_name,
type: String,
desc: "GitHub repository name"
}
],
'hipchat' => [
{
required: true,
......@@ -734,6 +760,7 @@ module API
ExternalWikiService,
FlowdockService,
GemnasiumService,
GithubService,
HipchatService,
IrkerService,
JiraService,
......
......@@ -250,6 +250,32 @@ module API
desc: "The project's slug on gemnasium.com"
}
],
'github' => [
{
required: true,
name: :token,
type: String,
desc: 'GitHub API token with repo:status OAuth scope'
},
{
required: false,
name: :api_url,
type: String,
desc: 'GitHub instance API URL, defaults to https://api.github.com'
},
{
required: true,
name: :owner,
type: String,
desc: 'Owner or organization of the GitHub repo'
},
{
required: true,
name: :repository_name,
type: String,
desc: "GitHub repository name"
}
],
'hipchat' => [
{
required: true,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment