Skip to content

Commit 84a1ca1

Browse files
committed
Comments
1 parent 817e49e commit 84a1ca1

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Symfony/src/Codebender/LibraryBundle/Handler/DefaultHandler.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,18 @@ public function checkGithubUpdates()
156156
]);
157157
}
158158

159+
/**
160+
* Fetches the last commit sha of a repo. `sha` parameter can either be the name of a branch, or a commit
161+
* sha. In the first case, the commit sha's of the branch are returned. In the second case, the commit sha's
162+
* of the default branch are returned, as long as the have been written after the provided commit.
163+
* The API can also use a path parameter, in which case only commits that affect a specific directory are returned.
164+
*
165+
* @param $gitOwner
166+
* @param $gitRepo
167+
* @param string $sha
168+
* @param string $path
169+
* @return mixed
170+
*/
159171
public function getLastCommitFromGithub($gitOwner, $gitRepo, $sha = 'master', $path = '')
160172
{
161173
/*

0 commit comments

Comments
 (0)