idx int64 0 165k | question stringlengths 73 5.81k | target stringlengths 5 918 |
|---|---|---|
158,400 | public Stream < MergeRequest > getMergeRequestsStream ( Object projectIdOrPath , MergeRequestState state ) throws GitLabApiException { return ( getMergeRequests ( projectIdOrPath , state , getDefaultPerPage ( ) ) . stream ( ) ) ; } | Get all merge requests with a specific state for the specified project as a Stream . |
158,401 | public MergeRequest getMergeRequest ( Object projectIdOrPath , Integer mergeRequestIid ) throws GitLabApiException { Response response = get ( Response . Status . OK , null , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "merge_requests" , mergeRequestIid ) ; return ( response . readEntity ( MergeRequest . clas... | Get information about a single merge request . |
158,402 | public Optional < MergeRequest > getOptionalMergeRequest ( Object projectIdOrPath , Integer mergeRequestIid ) { try { return ( Optional . ofNullable ( getMergeRequest ( projectIdOrPath , mergeRequestIid ) ) ) ; } catch ( GitLabApiException glae ) { return ( GitLabApi . createOptionalFromException ( glae ) ) ; } } | Get information about a single merge request as an Optional instance . |
158,403 | public Pager < Commit > getCommits ( Object projectIdOrPath , int mergeRequestIid , int itemsPerPage ) throws GitLabApiException { return ( new Pager < Commit > ( this , Commit . class , itemsPerPage , null , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "merge_requests" , mergeRequestIid , "commits" ) ) ; } | Get a Pager of merge request commits . |
158,404 | public Stream < Commit > getCommitsStream ( Object projectIdOrPath , int mergeRequestIid ) throws GitLabApiException { return ( getCommits ( projectIdOrPath , mergeRequestIid , getDefaultPerPage ( ) ) . stream ( ) ) ; } | Get a Stream of merge request commits . |
158,405 | public MergeRequest cancelMergeRequest ( Object projectIdOrPath , Integer mergeRequestIid ) throws GitLabApiException { if ( mergeRequestIid == null ) { throw new RuntimeException ( "mergeRequestIid cannot be null" ) ; } Response response = put ( Response . Status . OK , null , "projects" , getProjectIdOrPath ( project... | Cancel merge when pipeline succeeds . If you don t have permissions to accept this merge request you ll get a 401 . If the merge request is already merged or closed you get 405 and error message Method Not Allowed . In case the merge request is not set to be merged when the pipeline succeeds you ll also get a 406 error... |
158,406 | public MergeRequest approveMergeRequest ( Object projectIdOrPath , Integer mergeRequestIid , String sha ) throws GitLabApiException { if ( mergeRequestIid == null ) { throw new RuntimeException ( "mergeRequestIid cannot be null" ) ; } Form formData = new GitLabApiForm ( ) . withParam ( "sha" , sha ) ; Response response... | Approve a merge request . |
158,407 | public MergeRequest unapproveMergeRequest ( Object projectIdOrPath , Integer mergeRequestIid ) throws GitLabApiException { if ( mergeRequestIid == null ) { throw new RuntimeException ( "mergeRequestIid cannot be null" ) ; } Response response = post ( Response . Status . OK , ( Form ) null , "projects" , getProjectIdOrP... | Unapprove a merge request . |
158,408 | public List < Participant > getParticipants ( Object projectIdOrPath , Integer mergeRequestIid ) throws GitLabApiException { return ( getParticipants ( projectIdOrPath , mergeRequestIid , getDefaultPerPage ( ) ) . all ( ) ) ; } | Get list of participants of merge request . |
158,409 | public Pager < Participant > getParticipants ( Object projectIdOrPath , Integer mergeRequestIid , int itemsPerPage ) throws GitLabApiException { return new Pager < Participant > ( this , Participant . class , itemsPerPage , null , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "merge_requests" , mergeRequestIid ... | Get a Pager of the participants of merge request . |
158,410 | public Stream < Participant > getParticipantsStream ( Object projectIdOrPath , Integer mergeRequestIid ) throws GitLabApiException { return ( getParticipants ( projectIdOrPath , mergeRequestIid , getDefaultPerPage ( ) ) . stream ( ) ) ; } | Get Stream of participants of merge request . |
158,411 | public List < Issue > getClosesIssues ( Object projectIdOrPath , Integer mergeRequestIid ) throws GitLabApiException { return ( getClosesIssues ( projectIdOrPath , mergeRequestIid , getDefaultPerPage ( ) ) . all ( ) ) ; } | Get list containing all the issues that would be closed by merging the provided merge request . |
158,412 | public Pager < Issue > getClosesIssues ( Object projectIdOrPath , Integer mergeRequestIid , int itemsPerPage ) throws GitLabApiException { return new Pager < Issue > ( this , Issue . class , itemsPerPage , null , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "merge_requests" , mergeRequestIid , "closes_issues" ... | Get a Pager containing all the issues that would be closed by merging the provided merge request . |
158,413 | public Stream < Issue > getClosesIssuesStream ( Object projectIdOrPath , Integer mergeRequestIid ) throws GitLabApiException { return ( getClosesIssues ( projectIdOrPath , mergeRequestIid , getDefaultPerPage ( ) ) . stream ( ) ) ; } | Get Stream containing all the issues that would be closed by merging the provided merge request . |
158,414 | 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 . |
158,415 | 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 . |
158,416 | 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 . |
158,417 | 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 . |
158,418 | 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 , "discu... | Get a Pager of Discussion instances for the specified snippet . |
158,419 | 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 . |
158,420 | 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 . |
158,421 | 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 . |
158,422 | 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 . |
158,423 | 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 . |
158,424 | 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" , m... | Get a Pager of Discussion instances for the specified merge request . |
158,425 | 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 . |
158,426 | 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 , form... | Resolve or unresolve whole discussion of a merge request . |
158,427 | 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 . |
158,428 | 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 . |
158,429 | 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 ) , ... | Get a list of discussions for the specified commit . |
158,430 | 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 , "discussio... | Get a Pager of Discussion instances for the specified commit . |
158,431 | 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 . |
158,432 | 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 . |
158,433 | 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 ) , "re... | 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 . |
158,434 | 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 . |
158,435 | 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 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 . |
158,436 | 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 . ... | Create new file in repository |
158,437 | 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" )... | 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 . |
158,438 | 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 ,... | Get the raw file contents for a file by commit sha and path . |
158,439 | 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 ( fo... | Gets the query params based on the API version . |
158,440 | 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 . |
158,441 | 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 . |
158,442 | 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 , t... | Add a new system hook . This method requires admin access . |
158,443 | public List < Label > getLabels ( Object projectIdOrPath ) throws GitLabApiException { return ( getLabels ( projectIdOrPath , getDefaultPerPage ( ) ) . all ( ) ) ; } | Get all labels of the specified project . |
158,444 | 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 . |
158,445 | public Stream < Label > getLabelsStream ( Object projectIdOrPath ) throws GitLabApiException { return ( getLabels ( projectIdOrPath , getDefaultPerPage ( ) ) . stream ( ) ) ; } | Get a Stream of all labels of the specified project . |
158,446 | 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 the specified label |
158,447 | 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 ( Labe... | Subscribe a specified label |
158,448 | 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 . |
158,449 | 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 ) { clientCo... | 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 . |
158,450 | 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 . |
158,451 | 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 { if ( dateTimeString . endsWith ( "UTC" ) ... | Parses an ISO8601 formatted string a returns an Instant instance . |
158,452 | 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 . |
158,453 | 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 . |
158,454 | public List < Board > getBoards ( Object projectIdOrPath ) throws GitLabApiException { return ( getBoards ( projectIdOrPath , getDefaultPerPage ( ) ) . all ( ) ) ; } | Lists Issue Boards in the given project . |
158,455 | 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 . readE... | Get all issue boards for the specified project using the specified page and per page setting |
158,456 | 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 . |
158,457 | public Stream < Board > getBoardsStream ( Object projectIdOrPath ) throws GitLabApiException { return ( getBoards ( projectIdOrPath , getDefaultPerPage ( ) ) . stream ( ) ) ; } | Get a Stream of all issue boards for the specified project . |
158,458 | 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 . |
158,459 | 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 . |
158,460 | 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 ) , "board... | Creates a new Issue Board . |
158,461 | 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 ) . withPa... | Updates an existing Issue Board . |
158,462 | 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 . |
158,463 | 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 . c... | Get a single issue board list . |
158,464 | 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 . |
158,465 | 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 ( p... | Creates a new Issue Board list . |
158,466 | 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"... | Updates an existing Issue Board list . This call is used to change list position . |
158,467 | 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 . |
158,468 | 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 ( ) ) { propertie... | Make sure jiraIssueTransitionId is an integer and not an empty string . |
158,469 | 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 . |
158,470 | 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 . |
158,471 | 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 . readEnt... | Retry a job in specified pipelines in a project . |
158,472 | 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 . |
158,473 | 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 ( respons... | Get list of project pipeline schedules in the specified page range . |
158,474 | 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 . |
158,475 | 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 . |
158,476 | 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 ( P... | Get a specific pipeline schedule for project . |
158,477 | public Optional < PipelineSchedule > getOptionalPipelineSchedule ( Object projectIdOrPath , Integer pipelineScheduleId ) { try { return ( Optional . ofNullable ( getPipelineSchedule ( projectIdOrPath , pipelineScheduleId ) ) ) ; } catch ( GitLabApiException glae ) { return ( GitLabApi . createOptionalFromException ( gl... | Get a specific pipeline schedule for project as an Optional instance . |
158,478 | public PipelineSchedule createPipelineSchedule ( Object projectIdOrPath , PipelineSchedule pipelineSchedule ) throws GitLabApiException { GitLabApiForm formData = new GitLabApiForm ( ) . withParam ( "description" , pipelineSchedule . getDescription ( ) , true ) . withParam ( "ref" , pipelineSchedule . getRef ( ) , true... | create a pipeline schedule for a project . |
158,479 | public PipelineSchedule updatePipelineSchedule ( Object projectIdOrPath , PipelineSchedule pipelineSchedule ) throws GitLabApiException { GitLabApiForm formData = new GitLabApiForm ( ) . withParam ( "description" , pipelineSchedule . getDescription ( ) , false ) . withParam ( "ref" , pipelineSchedule . getRef ( ) , fal... | Modifies a pipeline schedule for project . |
158,480 | public PipelineSchedule takeOwnershipPipelineSchedule ( Object projectIdOrPath , Integer pipelineScheduleId ) throws GitLabApiException { Response response = post ( Response . Status . OK , "" , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "pipeline_schedules" , pipelineScheduleId , "take_ownership" ) ; return... | Update the owner of the pipeline schedule of a project . |
158,481 | 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 . ... | Create a pipeline schedule variable . |
158,482 | 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 , "pr... | Deletes a pipeline schedule variable . |
158,483 | 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 ) { ... | Parses a human readable duration string and calculates the number of seconds it represents . |
158,484 | 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 . |
158,485 | public Stream < Milestone > getGroupMilestonesStream ( Object groupIdOrPath ) throws GitLabApiException { return ( getGroupMilestones ( groupIdOrPath , getDefaultPerPage ( ) ) . stream ( ) ) ; } | Get a Stream of group milestones . |
158,486 | 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 ( ) ... | Get a list of group milestones that have the specified state . |
158,487 | 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 . |
158,488 | 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 G... | Get the list of issues associated with the specified group milestone . |
158,489 | 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... | Get the list of merge requests associated with the specified group milestone . |
158,490 | 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" , dueD... | Create a group milestone . |
158,491 | 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 re... | Close a group milestone . |
158,492 | 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 . |
158,493 | public Stream < Milestone > getMilestonesStream ( Object projectIdOrPath ) throws GitLabApiException { return ( getMilestones ( projectIdOrPath , getDefaultPerPage ( ) ) . stream ( ) ) ; } | Get a Stream of project milestones . |
158,494 | 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 ( ) , "... | Get a list of project milestones that have the specified state . |
158,495 | 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 . cla... | Get the specified milestone . |
158,496 | 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 ( ne... | Get the list of issues associated with the specified milestone . |
158,497 | 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 ( respo... | Get the list of merge requests associated with the specified milestone . |
158,498 | 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... | Create a milestone . |
158,499 | 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... | Activate a milestone . |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.