split out bootstrap
This commit is contained in:
parent
1a46b0202c
commit
ca603025ac
4
bootstrap.php
Normal file
4
bootstrap.php
Normal file
@ -0,0 +1,4 @@
|
||||
<?php
|
||||
include("Gitea.php");
|
||||
$config=include("config.php");
|
||||
$gitea=new Gitea($config['url'],$config['user'],$config['pass']);
|
@ -1,8 +1,5 @@
|
||||
<?php
|
||||
include("Gitea.php");
|
||||
$config=include("config.php");
|
||||
|
||||
$gitea=new Gitea($config['url'],$config['user'],$config['pass']);
|
||||
include("bootstrap.php");
|
||||
|
||||
$reopen=function($issue) use ($gitea){
|
||||
$gitea->editIssue( $issue, ['state'=>'open']);
|
||||
|
Loading…
Reference in New Issue
Block a user