From ed0e70898a80fc7b0f3156e897ec218857bbbf35 Mon Sep 17 00:00:00 2001 From: James Date: Fri, 16 Aug 2019 16:48:06 +0100 Subject: [PATCH] update example --- example/test.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/example/test.php b/example/test.php index 440d546..bd2144c 100644 --- a/example/test.php +++ b/example/test.php @@ -13,7 +13,7 @@ $debug = ($argc==4 && $argv[3]=='debug'); $client=new Client($config['url'],$config['user'],$config['pass'],$debug); $repo=$client->getRepo($argv[1],$argv[2]); -//create a label +//get the test label or create if not exist if(!$label=$repo->getLabelByName('Test')){ $label=$repo->createLabel(['name'=>'Test','color'=>'#336699']); } @@ -26,3 +26,7 @@ $issue=$repo->createIssue([ $issue->addLabel($label); $issue->addComment('Test comment'); $issue->save(); + +//change the issue body +$issue->body.=' (Edited!)'; +$issue->save();