@param string $commit

@return \Bitbucket\Api\Repositories\Users\Commit\Statuses
963386
public function statuses(string $commit)
    {
        return new Statuses($this->getHttpClient(), $this->username, $this->repo, $commit);
    }
1078033
public function findAll($locale)
    {
        $statuses = $this->statusRepository->findAllByLocale($locale);

        array_walk(
            $statuses,
            function (&$status) use ($locale) {
                $status = new Status($status, $locale);
            }
        );

        return $statuses;
    }
1211904
public function status($status = null)
    {
        $this->reloadQueryAdapter();
        $this->activeQuery->status($status);
        return $this;
    }
1242049
public function notify(Commit $commit)
    {
        if ($this->commitNeedNotification($commit)) {
            foreach ($this->notifiers as $notifier) {
                $notifier->notify($commit);
            }

            return true;
        }

        return false;
    }
1118239
public function getBranches($repository)
    {
        $response = $this->sendRequest(sprintf('repos/%s/branches', $repository));

        $result = [];

        if ($response->getStatusCode() == 200) {
            $responseJson = $response->json();
            $commits = [];

            foreach ($responseJson['commits'] as $item) {
                $commit = new Commit();
                Commit::hydrate($item, $commit);

                $commits[$commit->getId()] = $commit;
            }

            foreach ($responseJson['branches'] as $item) {
                $branch = new Branch();
                $item['commit'] = $commits[$item['commit_id']];
                Branch::hydrate($item, $branch);

                $result[] = $branch;
            }
        }

        return $result;
    }
456643
protected function buildPipelineField($commits) {
		// Get filtered commits
		$filteredCommits = array();
		foreach ($commits as $commit) {
			$title = sprintf(
				"%s (%s, %s old)",
				$commit->Message,
				substr($commit->SHA,0,8),
				$commit->dbObject('Created')->TimeDiff()
			);
			$filteredCommits[$commit->SHA] = $title;
		}
		if($filteredCommits) {
			return new DropdownField('FilteredCommits', '', $filteredCommits);
		} else {
			return DropdownField::create('FilteredCommits)', '')
				->setEmptyString('No deployments available')
				->performDisabledTransformation();
		}
	}
445145
public function parseLog($log)
    {
        $commits = [];

        // Remove empty lines
        $log = array_values(array_filter($log));

        for ($i = 0, $lines = count($log); $i < $lines; $i++) {

            // Skip separator
            if (! strncmp($log[$i], '----', strlen('----'))) {
                continue;
            }

            // Line starts with r and has pipes (|), it contains data
            if (! strncmp($log[$i], 'r', strlen('r')) && strstr($log[$i], '|')) {
                $tmp  = explode('|', $log[$i]);
                $tmp  = array_map('trim', $tmp);
                $date = trim(preg_replace('~\(([:alpha]*.+)\)~i', '', $tmp[2]));
                $commits[] = [
                    'commit'  => ltrim($tmp[0], 'r'),
                    'author'  => $tmp[1],
                    'email'   => $tmp[1],
                    'date'    => DateTime::createFromFormat('Y-m-d H:i:s O', $date),
                    'summary' => $log[$i+1],
                    'vcs'     => $this->repository_type,
                ];
            }
        }

        return $commits;
    }
1343552
public function combined($username, $repository, $sha)
    {
        return $this->get('/repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/commits/'.rawurlencode($sha).'/status');
    }
911667
public function approval(string $commit)
    {
        return new Approval($this->getHttpClient(), $this->username, $this->repo, $commit);
    }
70969
public function status($status = null)
    {
        if (null === $status) {
            return $this->status;
        }

        $this->status = $status;
        return $this;
    }
972880
public function getCommitActivity(): array
    {
        return $this->getApi()->request($this->getApi()->sprintf('/repos/:owner/:repo/stats/commit_activity',
            $this->getRepositories()->getOwner(), $this->getRepositories()->getRepo()));
    }
280748
private function getPhpProcess(array $contentIds, $commit)
    {
        $consolePath = file_exists('bin/console') ? 'bin/console' : 'app/console';
        $subProcessArgs = [
            $consolePath,
            'ezplatform:reindex',
            '--content-ids=' . implode(',', $contentIds),
            '--env=' . $this->env,
        ];
        if ($this->siteaccess) {
            $subProcessArgs[] = '--siteaccess=' . $this->siteaccess;
        }
        if (!$this->isDebug) {
            $subProcessArgs[] = '--no-debug';
        }

        $process = new ProcessBuilder($subProcessArgs);
        $process->setTimeout(null);
        $process->setPrefix($this->getPhpPath());

        if (!$commit) {
            $process->add('--no-commit');
        }

        return $process->getProcess();
    }
1353369
public function getCommit($mode = null)
    {
        return $this->getFromGit(
            $this->makeGitHashRetrieverCommand($mode),
            Constants::VERSION_CACHE_KEY,
            $this->config->get('build.length', 6)
        );
    }
574576
public function show(string $commit, array $params = [])
    {
        $path = $this->buildCommitPath($commit);

        return $this->get($path, $params);
    }
845923
public function getCommitMessage($file = null)
    {
        if ($file) {
            $hash = null;
            $message = file_get_contents($file);
        } else {
            list($hash, $message) = explode(PHP_EOL, $this->getLastCommitMessage(), 2);
        }

        return new CommitMessage($message, $hash);
    }
67247
public function getVersionNumber($bits = null)
    {
        if (is_null($bits)) {
            return (int) str_replace('.', '', $this->version);
        }
        return implode('', $this->versionFromBits($bits));
    }
211191
public function remove(string $commit, array $params = [])
    {
        $path = $this->buildFilesPath($commit);

        return $this->delete($path, $params);
    }