public Commit createCommit ( Object projectIdOrPath , String branch , String commitMessage , String startBranch , String authorEmail , String authorName , List < CommitAction > actions ) throws GitLabApiException { CommitPayload payload = new CommitPayload ( ) ; payload . setBranch ( branch ) ; payload . setCommitMessage ( commitMessage ) ; payload . setStartBranch ( startBranch ) ; payload . setAuthorEmail ( authorEmail ) ; payload . setAuthorName ( authorName ) ; payload . setActions ( actions ) ; Response response = post ( Response . Status . CREATED , payload , "projects" , getProjectIdOrPath ( projectIdOrPath ) , "repository" , "commits" ) ; return ( response . readEntity ( Commit . class ) ) ; }
Create a commit with multiple files and actions .