Skip to content

Commit

Permalink
change function name
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicofuma committed Aug 10, 2014
1 parent 42ff713 commit 6df0d1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/github-labels.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

include '../config/github-api.php';

function is_label_existent (\Github\Client $client, $repo_owner, $repository, $label)
function label_exists(\Github\Client $client, $repo_owner, $repository, $label)
{
$labels = $client->api('issues')->labels()->all($repo_owner, $repository);
foreach ($labels as $label_data)
Expand Down Expand Up @@ -60,7 +60,7 @@ function is_label_existent (\Github\Client $client, $repo_owner, $repository, $l
{
$client = new Github\Client();

if (is_label_existent($client, $data['repository']['owner']['login'], $data['repository']['name'], $label))
if (label_exists($client, $data['repository']['owner']['login'], $data['repository']['name'], $label))
{
$client->authenticate($github_api_token, Github\Client::AUTH_HTTP_TOKEN);
if ($action === '!set')
Expand Down

0 comments on commit 6df0d1d

Please sign in to comment.