add reopen example
This commit is contained in:
11
example_reopen_label.php
Normal file
11
example_reopen_label.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
include("Gitea.php");
|
||||
$config=include("config.php");
|
||||
|
||||
$gitea=new Gitea($config['url'],$config['user'],$config['pass']);
|
||||
|
||||
$reopen=function($issue) use ($gitea){
|
||||
$gitea->editIssue( $issue, ['state'=>'open']);
|
||||
};
|
||||
|
||||
$gitea->forIssues('james','rc',$reopen,['state'=>'closed','labels'=>'test']);
|
Reference in New Issue
Block a user