Codota Logo
PullRequestStatus
Code IndexAdd Codota to your IDE (free)

How to use
PullRequestStatus
in
org.guvnor.structure.repositories

Best Java code snippets using org.guvnor.structure.repositories.PullRequestStatus (Showing top 7 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
StringBuilder s =
  • Codota Iconnew StringBuilder()
  • Codota Iconnew StringBuilder(32)
  • Codota IconString str;new StringBuilder(str)
  • Smart code suggestions by Codota
}
origin: org.guvnor/guvnor-structure-backend

public List<PullRequest> getPullRequestsByStatus(Integer page,
                         Integer pageSize,
                         final String repository,
                         final PullRequestStatus status) {
  final List<PullRequest> pullRequests = this.getPullRequestsByRepository(page,
                                      pageSize,
                                      repository);
  final List<PullRequest> finalPullRequests = pullRequests.stream().filter(elem -> elem.getStatus().equals(status)).collect(Collectors.toList());
  return this.paginate(page,
             pageSize,
             finalPullRequests);
}
origin: kiegroup/appformer

@Override
public int hashCode() {
  int result = Long.hashCode(id);
  result = ~~result;
  result = 31 * result + (targetRepository.hashCode());
  result = ~~result;
  result = 31 * result + (targetBranch.hashCode());
  result = ~~result;
  result = 31 * result + (sourceRepository.hashCode());
  result = ~~result;
  result = 31 * result + (sourceBranch.hashCode());
  result = ~~result;
  result = 31 * result + (status.hashCode());
  result = ~~result;
  return result;
}
origin: kiegroup/appformer

@Override
public List<PullRequest> getPullRequestsByStatus(Integer page,
                         Integer pageSize,
                         final String repository,
                         final PullRequestStatus status) {
  final List<PullRequest> pullRequests = this.getPullRequestsByRepository(page,
                                      pageSize,
                                      repository);
  final List<PullRequest> finalPullRequests = pullRequests.stream().filter(elem -> elem.getStatus().equals(status)).collect(Collectors.toList());
  return this.paginate(page,
             pageSize,
             finalPullRequests);
}
origin: kiegroup/appformer

  @Override
  public boolean exists(final PullRequest pullRequest) {
    return this.getPullRequests().stream().anyMatch(
        pr -> {
          return pr.getSourceBranch().equals(pullRequest.getSourceBranch())
              && pr.getSourceRepository().equals(pullRequest.getSourceRepository())
              && pr.getTargetBranch().equals(pullRequest.getTargetBranch())
              && pr.getTargetRepository().equals(pullRequest.getTargetRepository())
              && pr.getStatus().equals(pullRequest.getStatus());
        });
  }
}
origin: org.guvnor/guvnor-structure-backend

@Test
public void testCreateSeveralPullRequest() {
  final String repository = "parent/a";
  final String branch = "master";
  service.createPullRequest("child/a",
               "develop",
               repository,
               branch);
  service.createPullRequest("child/b",
               "develop",
               repository,
               "otherBranch");
  service.createPullRequest("child/c",
               "develop",
               repository,
               branch);
  service.createPullRequest("child/d",
               "develop",
               repository,
               branch);
  List<PullRequest> pullRequests = service.getPullRequestsByRepository(0,
                                     0,
                                     repository);
  assertEquals(4,
         pullRequests.size());
  assertTrue(pullRequests.stream().allMatch(elem -> elem.getStatus().equals(PullRequestStatus.OPEN)));
}
origin: org.uberfire/uberfire-structure-backend

assertEquals(4,
       pullRequests.size());
assertTrue(pullRequests.stream().allMatch(elem -> elem.getStatus().equals(PullRequestStatus.OPEN)));
origin: kiegroup/appformer

assertEquals(4,
       pullRequests.size());
assertTrue(pullRequests.stream().allMatch(elem -> elem.getStatus().equals(PullRequestStatus.OPEN)));
org.guvnor.structure.repositoriesPullRequestStatus

Javadoc

Represents pull request status. OPEN: when the PR is created. MERGED: when the merge process ends. REJECTED: when

Most used methods

  • equals
  • hashCode

Popular in Java

  • Start an intent from android
  • findViewById (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getApplicationContext (Context)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • Dictionary (java.util)
    The Dictionary class is the abstract parent of any class, such as Hashtable, which maps keys to valu
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now