protected Path buildHiddenPath(PullRequest pullRequest) { String branchName = buildHiddenBranchName(pullRequest); return this.buildPath(pullRequest.getTargetRepository(), branchName); }
protected Path buildHiddenPath(PullRequest pullRequest) { String branchName = buildHiddenBranchName(pullRequest); return this.buildPath(pullRequest.getTargetRepository(), branchName); }
private void mergePullRequest(final PullRequest pullRequest) { final Path source = this.buildHiddenPath(pullRequest); final Path target = this.buildPath(pullRequest.getTargetRepository(), pullRequest.getTargetBranch()); ioService.copy(source, target, new MergeCopyOption()); if (logger.isDebugEnabled()) { logger.debug("Merged from <{}> to <{}>", source.toString(), target.toString()); } }
protected void createHiddenBranch(final PullRequest pullRequest) { final Path source = this.buildPath(pullRequest.getSourceRepository(), pullRequest.getSourceBranch()); final Path target = this.buildHiddenPath(pullRequest); ioService.copy(source, target); if (logger.isDebugEnabled()) { logger.debug("Hidden branch {} created.", target.toString()); } }
protected void createHiddenBranch(final PullRequest pullRequest) { final Path source = this.buildPath(pullRequest.getSourceRepository(), pullRequest.getSourceBranch()); final Path target = this.buildHiddenPath(pullRequest); ioService.copy(source, target); if (logger.isDebugEnabled()) { logger.debug("Hidden branch {} created.", target.toString()); } }
private void mergePullRequest(final PullRequest pullRequest) { final Path source = this.buildHiddenPath(pullRequest); final Path target = this.buildPath(pullRequest.getTargetRepository(), pullRequest.getTargetBranch()); ioService.copy(source, target, new MergeCopyOption()); if (logger.isDebugEnabled()) { logger.debug("Merged from <{}> to <{}>", source.toString(), target.toString()); } }
@Test public void testBuildPath() { final Path path = ((PullRequestServiceImpl) service).buildPath("source/a", "develop"); final URI uri = URI.create("git://develop@source/a"); verify(ioService).get(uri); }
@Test public void testBuildPath() { final Path path = ((PullRequestServiceImpl) service).buildPath("source/a", "develop"); final URI uri = URI.create("git://develop@source/a"); verify(ioService).get(uri); }
@Test public void testBuildPath() { final Path path = ((PullRequestServiceImpl) service).buildPath("source/a", "develop"); final URI uri = URI.create("git://develop@source/a"); verify(ioService).get(uri); }