-
Notifications
You must be signed in to change notification settings - Fork 616
Expand file tree
/
Copy pathGitLabClient.java
More file actions
93 lines (62 loc) · 2.77 KB
/
Copy pathGitLabClient.java
File metadata and controls
93 lines (62 loc) · 2.77 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
87
88
89
90
91
92
93
package com.dabsquared.gitlabjenkins.gitlab.api;
import com.dabsquared.gitlabjenkins.gitlab.api.model.*;
import com.dabsquared.gitlabjenkins.gitlab.hook.model.State;
import java.util.List;
public interface GitLabClient {
String getHostUrl();
List<Group> getGroups();
List<Project> getGroupProjects(String groupId);
List<Project> getGroupProjects(
String groupId,
Boolean includeSubgroups,
ProjectVisibilityType visibility,
OrderType orderBy,
SortType sort);
List<Group> getGroups(Boolean allAvailable, Boolean topLevelOnly, OrderType orderBy, SortType 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(MergeRequest mr, String mergeCommitMessage, Boolean shouldRemoveSourceBranch);
void createMergeRequestNote(MergeRequest mr, String body);
List<Awardable> getMergeRequestEmoji(MergeRequest mr);
void awardMergeRequestEmoji(MergeRequest mr, String name);
void deleteMergeRequestEmoji(MergeRequest mr, Integer awardId);
List<MergeRequest> getMergeRequests(String projectId, State state, int page, int perPage);
List<Branch> getBranches(String projectId);
Branch getBranch(String projectId, String branch);
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);
}