public GitlabMergeRequest updateMergeRequest ( Serializable projectId , Integer mergeRequestIid , String targetBranch , Integer assigneeId , String title , String description , String stateEvent , String labels ) throws IOException { Query query = new Query ( ) . appendIf ( "target_branch" , targetBranch ) . appendIf ( "assignee_id" , assigneeId ) . appendIf ( "title" , title ) . appendIf ( "description" , description ) . appendIf ( "state_event" , stateEvent ) . appendIf ( "labels" , labels ) ; String tailUrl = GitlabProject . URL + "/" + sanitizeProjectId ( projectId ) + GitlabMergeRequest . URL + "/" + mergeRequestIid + query . toString ( ) ; return retrieve ( ) . method ( PUT ) . to ( tailUrl , GitlabMergeRequest . class ) ; }
Updates a Merge Request