diff --git a/example/close_all.php b/example/close_all.php new file mode 100644 index 0000000..dd61bed --- /dev/null +++ b/example/close_all.php @@ -0,0 +1,20 @@ + [debug]\n"); +} +$debug = ($argc==4 && $argv[3]=='debug'); + +//open connection and repo +$client=new Client($config['url'],$config['user'],$config['pass'],$debug); +$repo=$client->getRepo($argv[1],$argv[2]); + +//close all issues +$repo->forIssues(function($issue){ + $issue->state='closed'; + $issue->save(); +});