Class GitHubBranchCommitCheck

    • Constructor Detail

      • GitHubBranchCommitCheck

        public GitHubBranchCommitCheck()
    • Method Detail

      • check

        public abstract GitHubBranchCause check​(org.kohsuke.github.GHBranch remoteBranch,
                                                GitHubBranchRepository localRepo,
                                                org.kohsuke.github.GHCompare.Commit[] commits)
        Check used to determine if some associated commit property, such as the commit message, should prevent a build from being triggered.
        Parameters:
        remoteBranch - current branch state from GH.
        localRepo - local repository state.
        commits - commits commits that occurred between the last known local hash and the current remote.
        Returns:
        GitHubBranchCause instance indicating if the build should be skipped, null otherwise.
      • check

        public GitHubBranchCause check​(org.kohsuke.github.GHBranch remoteBranch,
                                       GitHubBranchRepository localRepo,
                                       org.kohsuke.github.GHCommit commit)
        Check used to determine if some associated commit property, such as the commit message, should prevent a build from being triggered.

        This method is called when the repository is not yet known to the plugin.

        Parameters:
        remoteBranch - current branch state from GH.
        localRepo - local repository state.
        commit - last commit in the remote repository.
        Returns:
        GitHubBranchCause instance indicating if the build should be skipped, null otherwise.