code: public void check(GHPullRequest ghpr, boolean isWebhook) {
          if (helper.isProjectDisabled()) {
              LOGGER.log(Level.FINE, "Project is disabled, ignoring pull request");
              return;
          }
          // Call update PR with the update PR info and no comment
          updatePR(ghpr, null /*GHIssueComment*/, isWebhook);
          commitAuthor = getPRCommitAuthor();
          checkSkipBuild();
          checkBlackListLabels();
          checkWhiteListLabels();
          tryBuild();
      }
docs: Checks this Pull Request representation against a GitHub version of the Pull Request, and triggers a build if
  necessary.
  
  @param ghpr      the pull request from github
  @param isWebhook whether this is from a webhook or not