code: private boolean checkCommit(GHPullRequest pr) {
          GHCommitPointer head = pr.getHead();
          GHCommitPointer base = pr.getBase();
  
          String headSha = head.getSha();
          String baseSha = base.getSha();
  
          if (StringUtils.equals(headSha, this.head) && StringUtils.equals(baseSha, this.base)) {
              return false;
          }
  
          LOGGER.log(Level.FINE,
                  "New commit. Sha: Head[{0} => {1}] Base[{2} => {3}]",
                  new Object[] {this.head, headSha, this.base, baseSha});
  
          setHead(headSha);
          setBase(baseSha);
  
          if (accepted) {
              shouldRun = true;
          }
          return true;
      }
docs: returns false if no new commit