-
Notifications
You must be signed in to change notification settings - Fork 1
/
github_repos_collaborators.spec.sql
61 lines (54 loc) · 1.54 KB
/
github_repos_collaborators.spec.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
create or replace package github_repos_collaborators
as
/** Interface to github repositories collaborators API
* @author Morten Egan
* @project OracleGit
* @version 0.1.0
*/
/** List collaborators
* @author Morten Egan
* @param git_account The account that owns the repository
* @param repos_name The name of the repository
*/
function list_collaborators (
git_account varchar2
, repos_name varchar2
)
return github.call_result;
/** Check if a user is a collaborator
* @author Morten Egan
* @param git_account The account that owns the repository
* @param repos_name The name of the repository
* @param collaborator
* @return True if the user is a collaborator of the repository
*/
function check_collaborator (
git_account varchar2
, repos_name varchar2
, collaborator varchar2
)
return boolean;
/** Add user as a collaborator
* @author Morten Egan
* @param git_account The account that owns the repository
* @param repos_name The name of the repository
* @param collaborator The collaborator to add to the repository
*/
procedure add_collaborator (
git_account varchar2
, repos_name varchar2
, collaborator varchar2
);
/** Remove user as a collaborator
* @author Morten Egan
* @param git_account The account that owns the repository
* @param repos_name The name of the repository
* @param collaborator The collaborator to remove
*/
procedure remove_collaborator (
git_account varchar2
, repos_name varchar2
, collaborator varchar2
);
end github_repos_collaborators;
/