public function runWhitelistCommand(
        string $template,
        $targetBranch,
        string $blacklistToken,
        string $filter,
        bool $processIsolation = false,
        string $glue = ','
    ) : int {
        $exitCode = 0;
        $whitelistArguments = $this->buildWhitelistArguments(
            $targetBranch,
            $blacklistToken,
            $filter,
            $processIsolation,
            $glue
        );

        foreach ($whitelistArguments as $argument) {
            $commandWithParameters = $this->buildCommand($template, $argument);

            $exitCode = $this->runAndWriteToOutput($commandWithParameters);
        }

        return $exitCode;
    }