idx
int64
0
165k
question
stringlengths
73
4.15k
target
stringlengths
5
918
len_question
int64
21
890
len_target
int64
3
255
158,100
public List < Discussion > getIssueDiscussions ( Object projectIdOrPath , Integer issueIid ) throws GitLabApiException { Pager < Discussion > pager = getIssueDiscussionsPager ( projectIdOrPath , issueIid , getDefaultPerPage ( ) ) ; return ( pager . all ( ) ) ; }
Get a list of all discussions for the specified issue .
71
11
158,101
public Pager < Discussion > getIssueDiscussionsPager ( Object projectIdOrPath , Integer issueIid , int itemsPerPage ) throws GitLabApiException { return ( new Pager < Discussion > ( this , Discussion . class , itemsPerPage , null , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "issues" , issueIid , "discussions" ) ) ; }
Get a Pager of Discussion instances for the specified issue .
89
12
158,102
public Stream < Discussion > getIssueDiscussionsStream ( Object projectIdOrPath , Integer issueIid ) throws GitLabApiException { Pager < Discussion > pager = getIssueDiscussionsPager ( projectIdOrPath , issueIid , getDefaultPerPage ( ) ) ; return ( pager . stream ( ) ) ; }
Get a Stream of Discussion instances for the specified issue .
72
11
158,103
public List < Discussion > getSnippetDiscussions ( Object projectIdOrPath , Integer snippetId ) throws GitLabApiException { Pager < Discussion > pager = getSnippetDiscussionsPager ( projectIdOrPath , snippetId , getDefaultPerPage ( ) ) ; return ( pager . all ( ) ) ; }
Get a list of all discussions for the specified snippet .
73
11
158,104
public Pager < Discussion > getSnippetDiscussionsPager ( Object projectIdOrPath , Integer snippetId , int itemsPerPage ) throws GitLabApiException { return ( new Pager < Discussion > ( this , Discussion . class , itemsPerPage , null , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "snippets" , snippetId , "discussions" ) ) ; }
Get a Pager of Discussion instances for the specified snippet .
91
12
158,105
public Stream < Discussion > getSnippetDiscussionsStream ( Object projectIdOrPath , Integer snippetId ) throws GitLabApiException { Pager < Discussion > pager = getSnippetDiscussionsPager ( projectIdOrPath , snippetId , getDefaultPerPage ( ) ) ; return ( pager . stream ( ) ) ; }
Get a Stream of Discussion instances for the specified snippet .
74
11
158,106
public List < Discussion > getEpicDiscussions ( Object projectIdOrPath , Integer epicId ) throws GitLabApiException { Pager < Discussion > pager = getEpicDiscussionsPager ( projectIdOrPath , epicId , getDefaultPerPage ( ) ) ; return ( pager . all ( ) ) ; }
Get a list of all discussions for the specified epic .
71
11
158,107
public Pager < Discussion > getEpicDiscussionsPager ( Object projectIdOrPath , Integer epicId , int itemsPerPage ) throws GitLabApiException { return ( new Pager < Discussion > ( this , Discussion . class , itemsPerPage , null , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "epics" , epicId , "discussions" ) ) ; }
Get a Pager of Discussion instances for the specified epic .
89
12
158,108
public Stream < Discussion > getEpicDiscussionsStream ( Object projectIdOrPath , Integer epicId ) throws GitLabApiException { Pager < Discussion > pager = getEpicDiscussionsPager ( projectIdOrPath , epicId , getDefaultPerPage ( ) ) ; return ( pager . stream ( ) ) ; }
Get a Stream of Discussion instances for the specified epic .
72
11
158,109
public List < Discussion > getMergeRequestDiscussions ( Object projectIdOrPath , Integer mergeRequestIid ) throws GitLabApiException { Pager < Discussion > pager = getMergeRequestDiscussionsPager ( projectIdOrPath , mergeRequestIid , getDefaultPerPage ( ) ) ; return ( pager . all ( ) ) ; }
Get a list of all discussions for the specified merge request .
77
12
158,110
public Pager < Discussion > getMergeRequestDiscussionsPager ( Object projectIdOrPath , Integer mergeRequestIid , int itemsPerPage ) throws GitLabApiException { return ( new Pager < Discussion > ( this , Discussion . class , itemsPerPage , null , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "merge_requests" , mergeRequestIid , "discussions" ) ) ; }
Get a Pager of Discussion instances for the specified merge request .
97
13
158,111
public Stream < Discussion > getMergeRequestDiscussionsStream ( Object projectIdOrPath , Integer mergeRequestIid ) throws GitLabApiException { Pager < Discussion > pager = getMergeRequestDiscussionsPager ( projectIdOrPath , mergeRequestIid , getDefaultPerPage ( ) ) ; return ( pager . stream ( ) ) ; }
Get a Stream of Discussion instances for the specified merge request .
78
12
158,112
public Discussion resolveMergeRequestDiscussion ( Object projectIdOrPath , Integer mergeRequestIid , Integer discussionId , Boolean resolved ) throws GitLabApiException { GitLabApiForm formData = new GitLabApiForm ( ) . withParam ( "resolved" , resolved , true ) ; Response response = put ( Response . Status . OK , formData . asMap ( ) , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "merge_requests" , mergeRequestIid , "discussions" ) ; return ( response . readEntity ( Discussion . class ) ) ; }
Resolve or unresolve whole discussion of a merge request .
132
12
158,113
public void deleteMergeRequestDiscussionNote ( Object projectIdOrPath , Integer mergeRequestIid , Integer discussionId , Integer noteId ) throws GitLabApiException { delete ( Response . Status . OK , null , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "merge_requests" , mergeRequestIid , "discussions" , noteId ) ; }
Deletes an existing discussion note of a merge request .
85
11
158,114
public List < Discussion > getCommitDiscussions ( Object projectIdOrPath , Integer commitId ) throws GitLabApiException { Pager < Discussion > pager = getCommitDiscussionsPager ( projectIdOrPath , commitId , getDefaultPerPage ( ) ) ; return ( pager . all ( ) ) ; }
Get a list of all discussions for the specified commit .
71
11
158,115
public List < Discussion > getCommitDiscussions ( Object projectIdOrPath , Integer commitId , int maxItems ) throws GitLabApiException { if ( maxItems < 1 ) { return ( getCommitDiscussions ( projectIdOrPath , commitId ) ) ; } else { Response response = get ( Response . Status . OK , getPerPageQueryParam ( maxItems ) , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "commits" , commitId , "discussions" ) ; return ( response . readEntity ( new GenericType < List < Discussion > > ( ) { } ) ) ; } }
Get a list of discussions for the specified commit .
137
10
158,116
public Pager < Discussion > getCommitDiscussionsPager ( Object projectIdOrPath , Integer commitId , int itemsPerPage ) throws GitLabApiException { return ( new Pager < Discussion > ( this , Discussion . class , itemsPerPage , null , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "commits" , commitId , "discussions" ) ) ; }
Get a Pager of Discussion instances for the specified commit .
89
12
158,117
public Stream < Discussion > getCommitDiscussionsStream ( Object projectIdOrPath , Integer commitId ) throws GitLabApiException { Pager < Discussion > pager = getCommitDiscussionsPager ( projectIdOrPath , commitId , getDefaultPerPage ( ) ) ; return ( pager . stream ( ) ) ; }
Get a Stream of Discussion instances for the specified commit .
72
11
158,118
public Optional < RepositoryFile > getOptionalFileInfo ( Object projectIdOrPath , String filePath , String ref ) { try { return ( Optional . ofNullable ( getFileInfo ( projectIdOrPath , filePath , ref ) ) ) ; } catch ( GitLabApiException glae ) { return ( GitLabApi . createOptionalFromException ( glae ) ) ; } }
Get an Optional instance with the value holding information on a file in the repository . Allows you to receive information about file in repository like name size . Only works with GitLab 11 . 1 . 0 + value will be an empty object for earlier versions of GitLab .
84
53
158,119
public RepositoryFile getFileInfo ( Object projectIdOrPath , String filePath , String ref ) throws GitLabApiException { Form form = new Form ( ) ; addFormParam ( form , "ref" , ref , true ) ; Response response = head ( Response . Status . OK , form . asMap ( ) , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "repository" , "files" , urlEncode ( filePath ) ) ; RepositoryFile file = new RepositoryFile ( ) ; file . setBlobId ( response . getHeaderString ( "X-Gitlab-Blob-Id" ) ) ; file . setCommitId ( response . getHeaderString ( "X-Gitlab-Commit-Id" ) ) ; file . setEncoding ( response . getHeaderString ( "X-Gitlab-Encoding" ) ) ; file . setFileName ( response . getHeaderString ( "X-Gitlab-File-Name" ) ) ; file . setFilePath ( response . getHeaderString ( "X-Gitlab-File-Path" ) ) ; file . setLastCommitId ( response . getHeaderString ( "X-Gitlab-Last-Commit-Id" ) ) ; file . setRef ( response . getHeaderString ( "X-Gitlab-Ref" ) ) ; String sizeStr = response . getHeaderString ( "X-Gitlab-Size" ) ; file . setSize ( sizeStr != null ? Integer . valueOf ( sizeStr ) : - 1 ) ; return ( file ) ; }
Get information on a file in the repository . Allows you to receive information about file in repository like name size . Only works with GitLab 11 . 1 . 0 + returns an empty object for earlier versions of GitLab .
353
44
158,120
public Optional < RepositoryFile > getOptionalFile ( Object projectIdOrPath , String filePath , String ref ) { try { return ( Optional . ofNullable ( getFile ( projectIdOrPath , filePath , ref , true ) ) ) ; } catch ( GitLabApiException glae ) { return ( GitLabApi . createOptionalFromException ( glae ) ) ; } }
Get an Optional instance with the value holding information and content for a file in the repository . Allows you to receive information about file in repository like name size and content . Only works with GitLab 11 . 1 . 0 + value will be an empty object for earlier versions of GitLab .
84
57
158,121
public RepositoryFile getFile ( Object projectIdOrPath , String filePath , String ref , boolean includeContent ) throws GitLabApiException { if ( ! includeContent ) { return ( getFileInfo ( projectIdOrPath , filePath , ref ) ) ; } Form form = new Form ( ) ; addFormParam ( form , "ref" , ref , true ) ; Response response = get ( Response . Status . OK , form . asMap ( ) , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "repository" , "files" , urlEncode ( filePath ) ) ; return ( response . readEntity ( RepositoryFile . class ) ) ; }
Get file from repository . Allows you to receive information about file in repository like name size and optionally content . Note that file content is Base64 encoded .
149
30
158,122
public RepositoryFile createFile ( Object projectIdOrPath , RepositoryFile file , String branchName , String commitMessage ) throws GitLabApiException { Form formData = createForm ( file , branchName , commitMessage ) ; Response response ; if ( isApiVersion ( ApiVersion . V3 ) ) { response = post ( Response . Status . CREATED , formData , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "repository" , "files" ) ; } else { response = post ( Response . Status . CREATED , formData , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "repository" , "files" , urlEncode ( file . getFilePath ( ) ) ) ; } return ( response . readEntity ( RepositoryFile . class ) ) ; }
Create new file in repository
183
5
158,123
public File getRawFile ( Object projectIdOrPath , String commitOrBranchName , String filepath , File directory ) throws GitLabApiException { InputStream in = getRawFile ( projectIdOrPath , commitOrBranchName , filepath ) ; try { if ( directory == null ) { directory = new File ( System . getProperty ( "java.io.tmpdir" ) ) ; } String filename = new File ( filepath ) . getName ( ) ; File file = new File ( directory , filename ) ; Files . copy ( in , file . toPath ( ) , StandardCopyOption . REPLACE_EXISTING ) ; return ( file ) ; } catch ( IOException ioe ) { throw new GitLabApiException ( ioe ) ; } finally { try { in . close ( ) ; } catch ( IOException ignore ) { } } }
Get the raw file for the file by commit sha and path . Thye file will be saved to the specified directory . If the file already exists in the directory it will be overwritten .
186
39
158,124
public InputStream getRawFile ( Object projectIdOrPath , String commitOrBranchName , String filepath ) throws GitLabApiException { if ( isApiVersion ( ApiVersion . V3 ) ) { Form formData = new GitLabApiForm ( ) . withParam ( "file_path" , filepath , true ) ; Response response = getWithAccepts ( Response . Status . OK , formData . asMap ( ) , MediaType . MEDIA_TYPE_WILDCARD , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "repository" , "blobs" , commitOrBranchName ) ; return ( response . readEntity ( InputStream . class ) ) ; } else { Form formData = new GitLabApiForm ( ) . withParam ( "ref" , commitOrBranchName , true ) ; Response response = getWithAccepts ( Response . Status . OK , formData . asMap ( ) , MediaType . MEDIA_TYPE_WILDCARD , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "repository" , "files" , urlEncode ( filepath ) , "raw" ) ; return ( response . readEntity ( InputStream . class ) ) ; } }
Get the raw file contents for a file by commit sha and path .
280
15
158,125
protected Form createForm ( RepositoryFile file , String branchName , String commitMessage ) { Form form = new Form ( ) ; if ( isApiVersion ( ApiVersion . V3 ) ) { addFormParam ( form , "file_path" , file . getFilePath ( ) , true ) ; addFormParam ( form , "branch_name" , branchName , true ) ; } else { addFormParam ( form , "branch" , branchName , true ) ; } addFormParam ( form , "encoding" , file . getEncoding ( ) , false ) ; // Cannot use addFormParam() as it does not accept an empty or whitespace only string String content = file . getContent ( ) ; if ( content == null ) { throw new IllegalArgumentException ( "content cannot be null" ) ; } form . param ( "content" , content ) ; addFormParam ( form , "commit_message" , commitMessage , true ) ; return ( form ) ; }
Gets the query params based on the API version .
215
11
158,126
public List < SystemHook > getSystemHooks ( int page , int perPage ) throws GitLabApiException { Response response = get ( Response . Status . OK , getPageQueryParams ( page , perPage ) , "hooks" ) ; return ( response . readEntity ( new GenericType < List < SystemHook > > ( ) { } ) ) ; }
Get a list of all system hooks using the specified page and per page settings . This method requires admin access .
81
22
158,127
public Pager < SystemHook > getSystemHooks ( int itemsPerPage ) throws GitLabApiException { return ( new Pager < SystemHook > ( this , SystemHook . class , itemsPerPage , null , "hooks" ) ) ; }
Get a Pager of all system hooks . This method requires admin access .
58
15
158,128
public SystemHook addSystemHook ( String url , String token , Boolean pushEvents , Boolean tagPushEvents , Boolean enablSsslVerification ) throws GitLabApiException { if ( url == null ) { throw new RuntimeException ( "url cannot be null" ) ; } GitLabApiForm formData = new GitLabApiForm ( ) . withParam ( "url" , url , true ) . withParam ( "token" , token ) . withParam ( "push_events" , pushEvents ) . withParam ( "tag_push_events" , tagPushEvents ) . withParam ( "enable_ssl_verification" , enablSsslVerification ) ; Response response = post ( Response . Status . CREATED , formData , "hooks" ) ; return ( response . readEntity ( SystemHook . class ) ) ; }
Add a new system hook . This method requires admin access .
185
12
158,129
public List < Label > getLabels ( Object projectIdOrPath ) throws GitLabApiException { return ( getLabels ( projectIdOrPath , getDefaultPerPage ( ) ) . all ( ) ) ; }
Get all labels of the specified project .
47
8
158,130
public Pager < Label > getLabels ( Object projectIdOrPath , int itemsPerPage ) throws GitLabApiException { return ( new Pager < Label > ( this , Label . class , itemsPerPage , null , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "labels" ) ) ; }
Get a Pager of all labels of the specified project .
73
12
158,131
public Stream < Label > getLabelsStream ( Object projectIdOrPath ) throws GitLabApiException { return ( getLabels ( projectIdOrPath , getDefaultPerPage ( ) ) . stream ( ) ) ; }
Get a Stream of all labels of the specified project .
48
11
158,132
public void deleteLabel ( Object projectIdOrPath , String name ) throws GitLabApiException { GitLabApiForm formData = new GitLabApiForm ( ) . withParam ( "name" , name , true ) ; Response . Status expectedStatus = ( isApiVersion ( GitLabApi . ApiVersion . V3 ) ? Response . Status . OK : Response . Status . NO_CONTENT ) ; delete ( expectedStatus , formData . asMap ( ) , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "labels" ) ; }
Delete the specified label
127
4
158,133
public Label subscribeLabel ( Object projectIdOrPath , Integer labelId ) throws GitLabApiException { Response response = post ( Response . Status . NOT_MODIFIED , getDefaultPerPageParam ( ) , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "labels" , labelId , "subscribe" ) ; return ( response . readEntity ( Label . class ) ) ; }
Subscribe a specified label
88
4
158,134
public static Map < String , Object > createProxyClientConfig ( String proxyUri ) { return ( createProxyClientConfig ( proxyUri , null , null ) ) ; }
Create a Map instance with properties set up to use a proxy server that can be passed to the GitLabAPi constructors and login methods to configure the GitLabApi instance to use a proxy server .
37
42
158,135
public static Map < String , Object > createProxyClientConfig ( String proxyUri , String username , String password ) { Map < String , Object > clientConfig = new HashMap <> ( ) ; clientConfig . put ( ClientProperties . PROXY_URI , proxyUri ) ; if ( username != null && username . trim ( ) . length ( ) > 0 ) { clientConfig . put ( ClientProperties . PROXY_USERNAME , username ) ; } if ( password != null && password . trim ( ) . length ( ) > 0 ) { clientConfig . put ( ClientProperties . PROXY_PASSWORD , password ) ; } return ( clientConfig ) ; }
Create a Map instance set up to use a proxy server that can be passed to the GitLabAPi constructors and login methods to configure the GitLabApi instance to use a proxy server .
145
40
158,136
public static String getTimestamp ( boolean withMsec ) { return ( withMsec ? SafeDateFormatter . getDateFormat ( PATTERN_MSEC ) . format ( new Date ( ) ) : SafeDateFormatter . getDateFormat ( PATTERN ) . format ( new Date ( ) ) ) ; }
Get a ISO8601formatted string for the current date and time .
66
15
158,137
public static Instant toInstant ( String dateTimeString ) throws ParseException { if ( dateTimeString == null ) { return ( null ) ; } dateTimeString = dateTimeString . trim ( ) ; if ( dateTimeString . endsWith ( "Z" ) ) { return ( Instant . parse ( dateTimeString ) ) ; } else { // Convert UTC zoned dates to 0 offset date if ( dateTimeString . endsWith ( "UTC" ) ) { dateTimeString = dateTimeString . replace ( "UTC" , "+0000" ) ; } OffsetDateTime odt = ( dateTimeString . length ( ) > 25 ? OffsetDateTime . parse ( dateTimeString , ODT_WITH_MSEC_PARSER ) : OffsetDateTime . parse ( dateTimeString , ODT_PARSER ) ) ; return ( odt . toInstant ( ) ) ; } }
Parses an ISO8601 formatted string a returns an Instant instance .
192
15
158,138
public static Date toDate ( String dateTimeString ) throws ParseException { Instant instant = toInstant ( dateTimeString ) ; return ( instant != null ? Date . from ( instant ) : null ) ; }
Parses an ISO8601 formatted string a returns a Date instance .
44
15
158,139
public static Calendar toCalendar ( String dateTimeString ) throws ParseException { Date date = toDate ( dateTimeString ) ; if ( date == null ) { return ( null ) ; } Calendar cal = Calendar . getInstance ( ) ; cal . setTime ( date ) ; return ( cal ) ; }
Parses an ISO8601 formatted string a returns a Calendar instance .
65
15
158,140
public List < Board > getBoards ( Object projectIdOrPath ) throws GitLabApiException { return ( getBoards ( projectIdOrPath , getDefaultPerPage ( ) ) . all ( ) ) ; }
Lists Issue Boards in the given project .
47
9
158,141
public List < Board > getBoards ( Object projectIdOrPath , int page , int perPage ) throws GitLabApiException { Response response = get ( javax . ws . rs . core . Response . Status . OK , getPageQueryParams ( page , perPage ) , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "boards" ) ; return ( response . readEntity ( new GenericType < List < Board > > ( ) { } ) ) ; }
Get all issue boards for the specified project using the specified page and per page setting
108
16
158,142
public Pager < Board > getBoards ( Object projectIdOrPath , int itemsPerPage ) throws GitLabApiException { return ( new Pager < Board > ( this , Board . class , itemsPerPage , null , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "boards" ) ) ; }
Get a Pager of all issue boards for the specified project .
72
13
158,143
public Stream < Board > getBoardsStream ( Object projectIdOrPath ) throws GitLabApiException { return ( getBoards ( projectIdOrPath , getDefaultPerPage ( ) ) . stream ( ) ) ; }
Get a Stream of all issue boards for the specified project .
48
12
158,144
public Board getBoard ( Object projectIdOrPath , Integer boardId ) throws GitLabApiException { Response response = get ( Response . Status . OK , null , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "boards" , boardId ) ; return ( response . readEntity ( Board . class ) ) ; }
Get a single issue board .
73
6
158,145
public Optional < Board > getOptionalBoard ( Object projectIdOrPath , Integer boardId ) { try { return ( Optional . ofNullable ( getBoard ( projectIdOrPath , boardId ) ) ) ; } catch ( GitLabApiException glae ) { return ( GitLabApi . createOptionalFromException ( glae ) ) ; } }
Get an issue board as an Optional instance .
75
9
158,146
public Board createBoard ( Object projectIdOrPath , String name ) throws GitLabApiException { GitLabApiForm formData = new GitLabApiForm ( ) . withParam ( "name" , name , true ) ; Response response = post ( Response . Status . CREATED , formData . asMap ( ) , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "boards" ) ; return ( response . readEntity ( Board . class ) ) ; }
Creates a new Issue Board .
105
7
158,147
public BoardList updateBoard ( Object projectIdOrPath , Integer boardId , String name , Integer assigneeId , Integer milestoneId , String labels , Integer weight ) throws GitLabApiException { GitLabApiForm formData = new GitLabApiForm ( ) . withParam ( "name" , name ) . withParam ( "assignee_id" , assigneeId ) . withParam ( "milestone_id" , milestoneId ) . withParam ( "labels" , labels ) . withParam ( "weight" , weight ) ; Response response = put ( Response . Status . OK , formData . asMap ( ) , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "boards" , boardId ) ; return ( response . readEntity ( BoardList . class ) ) ; }
Updates an existing Issue Board .
177
7
158,148
public void deleteBoard ( Object projectIdOrPath , Integer boardId ) throws GitLabApiException { delete ( Response . Status . NO_CONTENT , null , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "boards" , boardId ) ; }
Soft deletes an existing Issue Board .
60
8
158,149
public BoardList getBoardList ( Object projectIdOrPath , Integer boardId , Integer listId ) throws GitLabApiException { Response response = get ( Response . Status . OK , null , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "boards" , boardId , "lists" , listId ) ; return ( response . readEntity ( BoardList . class ) ) ; }
Get a single issue board list .
87
7
158,150
public Optional < BoardList > getOptionalBoardList ( Object projectIdOrPath , Integer boardId , Integer listId ) { try { return ( Optional . ofNullable ( getBoardList ( projectIdOrPath , boardId , listId ) ) ) ; } catch ( GitLabApiException glae ) { return ( GitLabApi . createOptionalFromException ( glae ) ) ; } }
Get a single issue board list as an Optional instance .
85
11
158,151
public BoardList createBoardList ( Object projectIdOrPath , Integer boardId , Integer labelId ) throws GitLabApiException { GitLabApiForm formData = new GitLabApiForm ( ) . withParam ( "label_id" , labelId , true ) ; Response response = post ( Response . Status . CREATED , formData , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "boards" , boardId , "lists" ) ; return ( response . readEntity ( BoardList . class ) ) ; }
Creates a new Issue Board list .
118
8
158,152
public BoardList updateBoardList ( Object projectIdOrPath , Integer boardId , Integer listId , Integer position ) throws GitLabApiException { GitLabApiForm formData = new GitLabApiForm ( ) . withParam ( "position" , position , true ) ; Response response = putWithFormData ( Response . Status . OK , formData , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "boards" , boardId , "lists" , listId ) ; return ( response . readEntity ( BoardList . class ) ) ; }
Updates an existing Issue Board list . This call is used to change list position .
123
17
158,153
public void deleteBoardList ( Object projectIdOrPath , Integer boardId , Integer listId ) throws GitLabApiException { delete ( Response . Status . NO_CONTENT , null , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "boards" , boardId , "lists" , listId ) ; }
Soft deletes an existing Issue Board list . Only for admins and project owners .
72
16
158,154
private void fixJiraIssueTransitionId ( Map < String , Object > properties ) { if ( properties != null ) { Object jiraIssueTransitionId = properties . get ( JIRA_ISSUE_TRANSITION_ID_PROP ) ; if ( jiraIssueTransitionId instanceof String ) { if ( ( ( String ) jiraIssueTransitionId ) . trim ( ) . isEmpty ( ) ) { properties . put ( JIRA_ISSUE_TRANSITION_ID_PROP , null ) ; } else { properties . put ( JIRA_ISSUE_TRANSITION_ID_PROP , Integer . valueOf ( ( String ) jiraIssueTransitionId ) ) ; } } } }
Make sure jiraIssueTransitionId is an integer and not an empty string .
159
17
158,155
public Pipeline getPipeline ( Object projectIdOrPath , int pipelineId ) throws GitLabApiException { Response response = get ( Response . Status . OK , null , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "pipelines" , pipelineId ) ; return ( response . readEntity ( Pipeline . class ) ) ; }
Get single pipelines in a project .
77
7
158,156
public void deletePipeline ( Object projectIdOrPath , int pipelineId ) throws GitLabApiException { delete ( Response . Status . ACCEPTED , null , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "pipelines" , pipelineId ) ; }
Delete a pipeline from a project .
63
7
158,157
public Pipeline retryPipelineJob ( Object projectIdOrPath , int pipelineId ) throws GitLabApiException { GitLabApiForm formData = null ; Response response = post ( Response . Status . OK , formData , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "pipelines" , pipelineId , "retry" ) ; return ( response . readEntity ( Pipeline . class ) ) ; }
Retry a job in specified pipelines in a project .
95
11
158,158
public List < PipelineSchedule > getPipelineSchedules ( Object projectIdOrPath ) throws GitLabApiException { return ( getPipelineSchedules ( projectIdOrPath , getDefaultPerPage ( ) ) . all ( ) ) ; }
Get a list of the project pipeline_schedules for the specified project .
57
16
158,159
public List < PipelineSchedule > getPipelineSchedules ( Object projectIdOrPath , int page , int perPage ) throws GitLabApiException { Response response = get ( Response . Status . OK , getPageQueryParams ( page , perPage ) , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "pipeline_schedules" ) ; return ( response . readEntity ( new GenericType < List < PipelineSchedule > > ( ) { } ) ) ; }
Get list of project pipeline schedules in the specified page range .
111
12
158,160
public Pager < PipelineSchedule > getPipelineSchedules ( Object projectIdOrPath , int itemsPerPage ) throws GitLabApiException { return ( new Pager < PipelineSchedule > ( this , PipelineSchedule . class , itemsPerPage , null , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "pipeline_schedules" ) ) ; }
Get Pager of project pipeline schedule .
88
8
158,161
public Stream < PipelineSchedule > getPipelineSchedulesStream ( Object projectIdOrPath ) throws GitLabApiException { return ( getPipelineSchedules ( projectIdOrPath , getDefaultPerPage ( ) ) . stream ( ) ) ; }
Get a Stream of the project pipeline schedule for the specified project .
58
13
158,162
public PipelineSchedule getPipelineSchedule ( Object projectIdOrPath , Integer pipelineScheduleId ) throws GitLabApiException { Response response = get ( Response . Status . OK , null , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "pipeline_schedules" , pipelineScheduleId ) ; return ( response . readEntity ( PipelineSchedule . class ) ) ; }
Get a specific pipeline schedule for project .
91
8
158,163
public Optional < PipelineSchedule > getOptionalPipelineSchedule ( Object projectIdOrPath , Integer pipelineScheduleId ) { try { return ( Optional . ofNullable ( getPipelineSchedule ( projectIdOrPath , pipelineScheduleId ) ) ) ; } catch ( GitLabApiException glae ) { return ( GitLabApi . createOptionalFromException ( glae ) ) ; } }
Get a specific pipeline schedule for project as an Optional instance .
89
12
158,164
public PipelineSchedule createPipelineSchedule ( Object projectIdOrPath , PipelineSchedule pipelineSchedule ) throws GitLabApiException { GitLabApiForm formData = new GitLabApiForm ( ) . withParam ( "description" , pipelineSchedule . getDescription ( ) , true ) . withParam ( "ref" , pipelineSchedule . getRef ( ) , true ) . withParam ( "cron" , pipelineSchedule . getCron ( ) , true ) . withParam ( "cron_timezone" , pipelineSchedule . getCronTimezone ( ) , false ) . withParam ( "active" , pipelineSchedule . getActive ( ) , false ) ; Response response = post ( Response . Status . CREATED , formData , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "pipeline_schedules" ) ; return ( response . readEntity ( PipelineSchedule . class ) ) ; }
create a pipeline schedule for a project .
210
8
158,165
public PipelineSchedule updatePipelineSchedule ( Object projectIdOrPath , PipelineSchedule pipelineSchedule ) throws GitLabApiException { GitLabApiForm formData = new GitLabApiForm ( ) . withParam ( "description" , pipelineSchedule . getDescription ( ) , false ) . withParam ( "ref" , pipelineSchedule . getRef ( ) , false ) . withParam ( "cron" , pipelineSchedule . getCron ( ) , false ) . withParam ( "cron_timezone" , pipelineSchedule . getCronTimezone ( ) , false ) . withParam ( "active" , pipelineSchedule . getActive ( ) , false ) ; Response response = put ( Response . Status . OK , formData . asMap ( ) , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "pipeline_schedules" , pipelineSchedule . getId ( ) ) ; return ( response . readEntity ( PipelineSchedule . class ) ) ; }
Modifies a pipeline schedule for project .
223
8
158,166
public PipelineSchedule takeOwnershipPipelineSchedule ( Object projectIdOrPath , Integer pipelineScheduleId ) throws GitLabApiException { Response response = post ( Response . Status . OK , "" , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "pipeline_schedules" , pipelineScheduleId , "take_ownership" ) ; return ( response . readEntity ( PipelineSchedule . class ) ) ; }
Update the owner of the pipeline schedule of a project .
100
11
158,167
public Variable createPipelineScheduleVariable ( Object projectIdOrPath , Integer pipelineScheduleId , String key , String value ) throws GitLabApiException { GitLabApiForm formData = new GitLabApiForm ( ) . withParam ( "key" , key , true ) . withParam ( "value" , value , true ) ; Response response = post ( Response . Status . CREATED , formData , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "pipeline_schedules" , pipelineScheduleId , "variables" ) ; return ( response . readEntity ( Variable . class ) ) ; }
Create a pipeline schedule variable .
142
6
158,168
public void deletePipelineScheduleVariable ( Object projectIdOrPath , Integer pipelineScheduleId , String key ) throws GitLabApiException { Response . Status expectedStatus = ( isApiVersion ( GitLabApi . ApiVersion . V3 ) ? Response . Status . OK : Response . Status . NO_CONTENT ) ; delete ( expectedStatus , null , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "pipeline_schedules" , pipelineScheduleId , "variables" , key ) ; }
Deletes a pipeline schedule variable .
120
7
158,169
public static final int parse ( String durationString ) { durationString = durationString . toLowerCase ( ) ; Matcher matcher = durationPattern . matcher ( durationString ) ; int currentUnitIndex = - 1 ; int seconds = 0 ; Boolean validDuration = null ; while ( matcher . find ( ) && validDuration != Boolean . FALSE ) { validDuration = true ; int numGroups = matcher . groupCount ( ) ; if ( numGroups == 3 ) { String unit = matcher . group ( 3 ) ; int nextUnitIndex = getUnitIndex ( unit ) ; if ( nextUnitIndex > currentUnitIndex ) { currentUnitIndex = nextUnitIndex ; try { seconds += Long . parseLong ( matcher . group ( 2 ) ) * TIME_UNIT_MULTIPLIERS [ nextUnitIndex ] ; } catch ( NumberFormatException nfe ) { validDuration = false ; } } else { validDuration = false ; } } else { validDuration = false ; } } if ( validDuration != Boolean . TRUE ) { throw new IllegalArgumentException ( String . format ( "'%s' is not a valid duration" , durationString ) ) ; } return ( seconds ) ; }
Parses a human readable duration string and calculates the number of seconds it represents .
256
17
158,170
public Pager < Milestone > getGroupMilestones ( Object groupIdOrPath , int itemsPerPage ) throws GitLabApiException { return ( new Pager < Milestone > ( this , Milestone . class , itemsPerPage , null , "groups" , getGroupIdOrPath ( groupIdOrPath ) , "milestones" ) ) ; }
Get a Page of group milestones .
77
7
158,171
public Stream < Milestone > getGroupMilestonesStream ( Object groupIdOrPath ) throws GitLabApiException { return ( getGroupMilestones ( groupIdOrPath , getDefaultPerPage ( ) ) . stream ( ) ) ; }
Get a Stream of group milestones .
51
7
158,172
public List < Milestone > getGroupMilestones ( Object groupIdOrPath , MilestoneState state ) throws GitLabApiException { Form formData = new GitLabApiForm ( ) . withParam ( "state" , state ) . withParam ( PER_PAGE_PARAM , getDefaultPerPage ( ) ) ; Response response = get ( Response . Status . OK , formData . asMap ( ) , "groups" , getGroupIdOrPath ( groupIdOrPath ) , "milestones" ) ; return ( response . readEntity ( new GenericType < List < Milestone > > ( ) { } ) ) ; }
Get a list of group milestones that have the specified state .
137
12
158,173
public Milestone getGroupMilestone ( Object groupIdOrPath , Integer milestoneId ) throws GitLabApiException { Response response = get ( Response . Status . OK , getDefaultPerPageParam ( ) , "groups" , getGroupIdOrPath ( groupIdOrPath ) , "milestones" , milestoneId ) ; return ( response . readEntity ( Milestone . class ) ) ; }
Get the specified group milestone .
84
6
158,174
public List < Issue > getGroupIssues ( Object groupIdOrPath , Integer milestoneId ) throws GitLabApiException { Response response = get ( Response . Status . OK , getDefaultPerPageParam ( ) , "groups" , getGroupIdOrPath ( groupIdOrPath ) , "milestones" , milestoneId , "issues" ) ; return ( response . readEntity ( new GenericType < List < Issue > > ( ) { } ) ) ; }
Get the list of issues associated with the specified group milestone .
99
12
158,175
public List < MergeRequest > getGroupMergeRequest ( Object groupIdOrPath , Integer milestoneId ) throws GitLabApiException { Response response = get ( Response . Status . OK , getDefaultPerPageParam ( ) , "groups" , getGroupIdOrPath ( groupIdOrPath ) , "milestones" , milestoneId , "merge_requests" ) ; return ( response . readEntity ( new GenericType < List < MergeRequest > > ( ) { } ) ) ; }
Get the list of merge requests associated with the specified group milestone .
106
13
158,176
public Milestone createGroupMilestone ( Object groupIdOrPath , String title , String description , Date dueDate , Date startDate ) throws GitLabApiException { GitLabApiForm formData = new GitLabApiForm ( ) . withParam ( "title" , title , true ) . withParam ( "description" , description ) . withParam ( "due_date" , dueDate ) . withParam ( "start_date" , startDate ) ; Response response = post ( Response . Status . CREATED , formData , "groups" , getGroupIdOrPath ( groupIdOrPath ) , "milestones" ) ; return ( response . readEntity ( Milestone . class ) ) ; }
Create a group milestone .
152
5
158,177
public Milestone closeGroupMilestone ( Object groupIdOrPath , Integer milestoneId ) throws GitLabApiException { if ( milestoneId == null ) { throw new RuntimeException ( "milestoneId cannot be null" ) ; } GitLabApiForm formData = new GitLabApiForm ( ) . withParam ( "state_event" , MilestoneState . CLOSE ) ; Response response = put ( Response . Status . OK , formData . asMap ( ) , "groups" , getGroupIdOrPath ( groupIdOrPath ) , "milestones" , milestoneId ) ; return ( response . readEntity ( Milestone . class ) ) ; }
Close a group milestone .
142
5
158,178
public Pager < Milestone > getMilestones ( Object projectIdOrPath , int itemsPerPage ) throws GitLabApiException { return ( new Pager < Milestone > ( this , Milestone . class , itemsPerPage , null , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "milestones" ) ) ; }
Get a Page of project milestones .
76
7
158,179
public Stream < Milestone > getMilestonesStream ( Object projectIdOrPath ) throws GitLabApiException { return ( getMilestones ( projectIdOrPath , getDefaultPerPage ( ) ) . stream ( ) ) ; }
Get a Stream of project milestones .
49
7
158,180
public List < Milestone > getMilestones ( Object projectIdOrPath , MilestoneState state ) throws GitLabApiException { Form formData = new GitLabApiForm ( ) . withParam ( "state" , state ) . withParam ( PER_PAGE_PARAM , getDefaultPerPage ( ) ) ; Response response = get ( Response . Status . OK , formData . asMap ( ) , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "milestones" ) ; return ( response . readEntity ( new GenericType < List < Milestone > > ( ) { } ) ) ; }
Get a list of project milestones that have the specified state .
136
12
158,181
public Milestone getMilestone ( Object projectIdOrPath , Integer milestoneId ) throws GitLabApiException { Response response = get ( Response . Status . OK , getDefaultPerPageParam ( ) , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "milestones" , milestoneId ) ; return ( response . readEntity ( Milestone . class ) ) ; }
Get the specified milestone .
83
5
158,182
public List < Issue > getIssues ( Object projectIdOrPath , Integer milestoneId ) throws GitLabApiException { Response response = get ( Response . Status . OK , getDefaultPerPageParam ( ) , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "milestones" , milestoneId , "issues" ) ; return ( response . readEntity ( new GenericType < List < Issue > > ( ) { } ) ) ; }
Get the list of issues associated with the specified milestone .
98
11
158,183
public List < MergeRequest > getMergeRequest ( Object projectIdOrPath , Integer milestoneId ) throws GitLabApiException { Response response = get ( Response . Status . OK , getDefaultPerPageParam ( ) , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "milestones" , milestoneId , "merge_requests" ) ; return ( response . readEntity ( new GenericType < List < MergeRequest > > ( ) { } ) ) ; }
Get the list of merge requests associated with the specified milestone .
105
12
158,184
public Milestone createMilestone ( Object projectIdOrPath , String title , String description , Date dueDate , Date startDate ) throws GitLabApiException { GitLabApiForm formData = new GitLabApiForm ( ) . withParam ( "title" , title , true ) . withParam ( "description" , description ) . withParam ( "due_date" , dueDate ) . withParam ( "start_date" , startDate ) ; Response response = post ( Response . Status . CREATED , formData , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "milestones" ) ; return ( response . readEntity ( Milestone . class ) ) ; }
Create a milestone .
151
4
158,185
public Milestone activateMilestone ( Object projectIdOrPath , Integer milestoneId ) throws GitLabApiException { if ( milestoneId == null ) { throw new RuntimeException ( "milestoneId cannot be null" ) ; } GitLabApiForm formData = new GitLabApiForm ( ) . withParam ( "state_event" , MilestoneState . ACTIVATE ) ; Response response = put ( Response . Status . OK , formData . asMap ( ) , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "milestones" , milestoneId ) ; return ( response . readEntity ( Milestone . class ) ) ; }
Activate a milestone .
142
5
158,186
public Milestone updateMilestone ( Object projectIdOrPath , Integer milestoneId , String title , String description , Date dueDate , Date startDate , MilestoneState milestoneState ) throws GitLabApiException { if ( milestoneId == null ) { throw new RuntimeException ( "milestoneId cannot be null" ) ; } GitLabApiForm formData = new GitLabApiForm ( ) . withParam ( "title" , title , true ) . withParam ( "description" , description ) . withParam ( "due_date" , dueDate ) . withParam ( "start_date" , startDate ) . withParam ( "state_event" , milestoneState ) ; Response response = put ( Response . Status . OK , formData . asMap ( ) , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "milestones" , milestoneId ) ; return ( response . readEntity ( Milestone . class ) ) ; }
Update the specified milestone .
205
5
158,187
public List < Issue > getIssues ( int page , int perPage ) throws GitLabApiException { Response response = get ( Response . Status . OK , getPageQueryParams ( page , perPage ) , "issues" ) ; return ( response . readEntity ( new GenericType < List < Issue > > ( ) { } ) ) ; }
Get all issues the authenticated user has access to using the specified page and per page setting . Only returns issues created by the current user .
75
27
158,188
public Pager < Issue > getIssues ( int itemsPerPage ) throws GitLabApiException { return ( new Pager < Issue > ( this , Issue . class , itemsPerPage , null , "issues" ) ) ; }
Get a Pager of all issues the authenticated user has access to . Only returns issues created by the current user .
50
23
158,189
public Pager < Issue > getIssues ( Object projectIdOrPath , int itemsPerPage ) throws GitLabApiException { return ( new Pager < Issue > ( this , Issue . class , itemsPerPage , null , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "issues" ) ) ; }
Get a Pager of project s issues .
72
9
158,190
public Pager < Issue > getIssues ( IssueFilter filter , int itemsPerPage ) throws GitLabApiException { GitLabApiForm formData = filter . getQueryParams ( ) ; return ( new Pager < Issue > ( this , Issue . class , itemsPerPage , formData . asMap ( ) , "issues" ) ) ; }
Get all issues the authenticated user has access to . By default it returns only issues created by the current user .
77
22
158,191
public Issue getIssue ( Object projectIdOrPath , Integer issueIid ) throws GitLabApiException { Response response = get ( Response . Status . OK , getDefaultPerPageParam ( ) , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "issues" , issueIid ) ; return ( response . readEntity ( Issue . class ) ) ; }
Get a single project issue .
81
6
158,192
public Optional < Issue > getOptionalIssue ( Object projectIdOrPath , Integer issueIid ) { try { return ( Optional . ofNullable ( getIssue ( projectIdOrPath , issueIid ) ) ) ; } catch ( GitLabApiException glae ) { return ( GitLabApi . createOptionalFromException ( glae ) ) ; } }
Get a single project issue as an Optional instance .
77
10
158,193
public Issue closeIssue ( Object projectIdOrPath , Integer issueIid ) throws GitLabApiException { if ( issueIid == null ) { throw new RuntimeException ( "issue IID cannot be null" ) ; } GitLabApiForm formData = new GitLabApiForm ( ) . withParam ( "state_event" , StateEvent . CLOSE ) ; Response response = put ( Response . Status . OK , formData . asMap ( ) , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "issues" , issueIid ) ; return ( response . readEntity ( Issue . class ) ) ; }
Closes an existing project issue .
139
7
158,194
public Issue updateIssue ( Object projectIdOrPath , Integer issueIid , String title , String description , Boolean confidential , List < Integer > assigneeIds , Integer milestoneId , String labels , StateEvent stateEvent , Date updatedAt , Date dueDate ) throws GitLabApiException { if ( issueIid == null ) { throw new RuntimeException ( "issue IID cannot be null" ) ; } GitLabApiForm formData = new GitLabApiForm ( ) . withParam ( "title" , title ) . withParam ( "description" , description ) . withParam ( "confidential" , confidential ) . withParam ( "assignee_ids" , assigneeIds ) . withParam ( "milestone_id" , milestoneId ) . withParam ( "labels" , labels ) . withParam ( "state_event" , stateEvent ) . withParam ( "updated_at" , updatedAt ) . withParam ( "due_date" , dueDate ) ; Response response = put ( Response . Status . OK , formData . asMap ( ) , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "issues" , issueIid ) ; return ( response . readEntity ( Issue . class ) ) ; }
Updates an existing project issue . This call can also be used to mark an issue as closed .
273
20
158,195
public void deleteIssue ( Object projectIdOrPath , Integer issueIid ) throws GitLabApiException { if ( issueIid == null ) { throw new RuntimeException ( "issue IID cannot be null" ) ; } Response . Status expectedStatus = ( isApiVersion ( ApiVersion . V3 ) ? Response . Status . OK : Response . Status . NO_CONTENT ) ; delete ( expectedStatus , getDefaultPerPageParam ( ) , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "issues" , issueIid ) ; }
Delete an issue .
123
4
158,196
public TimeStats resetSpentTime ( Object projectIdOrPath , Integer issueIid ) throws GitLabApiException { if ( issueIid == null ) { throw new RuntimeException ( "issue IID cannot be null" ) ; } Response response = post ( Response . Status . OK , new GitLabApiForm ( ) . asMap ( ) , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "issues" , issueIid , "reset_spent_time" ) ; return ( response . readEntity ( TimeStats . class ) ) ; }
Resets the total spent time for this issue to 0 seconds .
125
13
158,197
public Optional < TimeStats > getOptionalTimeTrackingStats ( Object projectIdOrPath , Integer issueIid ) { try { return ( Optional . ofNullable ( getTimeTrackingStats ( projectIdOrPath , issueIid ) ) ) ; } catch ( GitLabApiException glae ) { return ( GitLabApi . createOptionalFromException ( glae ) ) ; } }
Get time tracking stats as an Optional instance
84
8
158,198
public Pager < MergeRequest > getClosedByMergeRequests ( Object projectIdOrPath , Integer issueIid , int itemsPerPage ) throws GitLabApiException { return new Pager < MergeRequest > ( this , MergeRequest . class , itemsPerPage , null , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "issues" , issueIid , "closed_by" ) ; }
Get a Pager containing all the merge requests that will close issue when merged .
93
16
158,199
public final GitLabApi duplicate ( ) { Integer sudoUserId = this . getSudoAsId ( ) ; GitLabApi gitLabApi = new GitLabApi ( apiVersion , gitLabServerUrl , getTokenType ( ) , getAuthToken ( ) , getSecretToken ( ) , clientConfigProperties ) ; if ( sudoUserId != null ) { gitLabApi . apiClient . setSudoAsId ( sudoUserId ) ; } if ( getIgnoreCertificateErrors ( ) ) { gitLabApi . setIgnoreCertificateErrors ( true ) ; } gitLabApi . defaultPerPage = this . defaultPerPage ; return ( gitLabApi ) ; }
Create a new GitLabApi instance that is logically a duplicate of this instance with the exception off sudo state .
155
23