Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2f89045

Browse files
authored
Fix unregister function
this did not work when multiple hooks existed for one repo.fixes#16
1 parent98918e4 commit2f89045

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎commands/GithubController.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,8 @@ public function actionUnRegister(array $limitRepos = [])
188188
foreach ($api->hooks()->all($user,$repo)as$hook) {
189189
if ($hook['name'] ==='web' &&isset($hook['config']['url']) &&$hook['config']['url'] ===$hookUrl) {
190190
$api->hooks()->remove($user,$repo,$hook['id']);
191+
break;
191192
}
192-
break;
193193
}
194194
$this->stdout("done.\n", Console::FG_GREEN, Console::BOLD);
195195
}
@@ -216,4 +216,4 @@ private function getClient()
216216

217217
return$client;
218218
}
219-
}
219+
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp