create config file and test script

This commit is contained in:
Bob E Moe 2019-06-20 18:12:41 +01:00
parent a777a798a2
commit 396d195cab
3 changed files with 14 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/config.php

6
config.php.dist Normal file
View File

@ -0,0 +1,6 @@
<?php
return [
'url'=>'',
'user'=>'',
'pass'=>'',
];

7
test.php Normal file
View File

@ -0,0 +1,7 @@
<?php
include("Gitea.php");
$config=include("config.php");
$gitea=new Gitea($config['url'],$config['user'],$config['pass']);
$gitea->getIssues('james','rc');