Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
17880efe
Commit
17880efe
authored
Feb 22, 2018
by
James Edwards-Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Services API includes GithubService
parent
ab9e5cc1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
53 additions
and
0 deletions
+53
-0
lib/api/services.rb
lib/api/services.rb
+27
-0
lib/api/v3/services.rb
lib/api/v3/services.rb
+26
-0
No files found.
lib/api/services.rb
View file @
17880efe
...
...
@@ -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
,
...
...
lib/api/v3/services.rb
View file @
17880efe
...
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment