-
Notifications
You must be signed in to change notification settings - Fork 616
Expand file tree
/
Copy pathGitLabApiProxy.java
More file actions
86 lines (57 loc) · 2.76 KB
/
Copy pathGitLabApiProxy.java
File metadata and controls
86 lines (57 loc) · 2.76 KB
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
package com.dabsquared.gitlabjenkins.gitlab.api.impl;
import com.dabsquared.gitlabjenkins.gitlab.api.model.*;
import com.dabsquared.gitlabjenkins.gitlab.hook.model.State;
import java.util.List;
interface GitLabApiProxy {
List<Group> getGroups(Boolean allAvailable, Boolean topLevelOnly, String orderBy, String sort);
List<Project> getGroupProjects(
String groupId, Boolean includeSubgroups, String visibility, String orderBy, String sort);
Project createProject(String projectName);
MergeRequest createMergeRequest(Integer projectId, String sourceBranch, String targetBranch, String title);
Project getProject(String projectName);
Project updateProject(String projectId, String name, String path);
void deleteProject(String projectId);
List<ProjectHook> getProjectHooks(String projectName);
void addProjectHook(
String projectId, String url, Boolean pushEvents, Boolean mergeRequestEvents, Boolean noteEvents);
void addProjectHook(
String projectId,
String url,
String secretToken,
Boolean pushEvents,
Boolean mergeRequestEvents,
Boolean noteEvents);
void changeBuildStatus(
String projectId,
String sha,
BuildState state,
String ref,
String context,
String targetUrl,
String description);
void changeBuildStatus(
Integer projectId,
String sha,
BuildState state,
String ref,
String context,
String targetUrl,
String description);
void getCommit(String projectId, String sha);
void acceptMergeRequest(
Integer projectId, Integer mergeRequestId, String mergeCommitMessage, Boolean shouldRemoveSourceBranch);
void createMergeRequestNote(Integer projectId, Integer mergeRequestId, String body);
List<Awardable> getMergeRequestEmoji(Integer projectId, Integer mergeRequestId);
void awardMergeRequestEmoji(Integer projectId, Integer mergeRequestId, String name);
void deleteMergeRequestEmoji(Integer projectId, Integer mergeRequestId, Integer awardId);
List<MergeRequest> getMergeRequests(String projectId, State state, int page, int perPage);
List<Branch> getBranches(String projectId);
Branch getBranch(String projectId, String branch);
void headCurrentUser();
User getCurrentUser();
User addUser(String email, String username, String name, String password);
User updateUser(String userId, String email, String username, String name, String password);
List<Label> getLabels(String projectId);
List<Pipeline> getPipelines(String projectName);
List<MergeRequest> getCommitMergeRequests(String projectId, String sha);
}