Compare commits
4 Commits
james-patc
...
main
Author | SHA1 | Date | |
---|---|---|---|
c7eee5aab3 | |||
1467b268c2 | |||
be1b8723ee | |||
cb143f753e |
@ -8,6 +8,8 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
paths-ignore:
|
||||||
|
- '.gitea/**'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
@ -15,7 +17,7 @@ jobs:
|
|||||||
container: docker.xuanyuan.me/xeden3/ai-code-reviewer-gitea-runner:v1.2
|
container: docker.xuanyuan.me/xeden3/ai-code-reviewer-gitea-runner:v1.2
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code2
|
||||||
uses: http://119.91.43.128:3003/james/checkout@v4
|
uses: http://119.91.43.128:3003/james/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 2 # 至少获取最近两次提交
|
fetch-depth: 2 # 至少获取最近两次提交
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env php
|
#!/usr/bin/env php
|
||||||
<?php
|
<?php
|
||||||
require_once __DIR__ . '/vendor/autoload.php';
|
require_once __DIR__ . '/vendor/autoload.php';
|
||||||
// 使用 getopt 函数解析命令行参数
|
// 使用 getopt 函数解析命令行参数
|
||||||
$options = getopt('h::', ['APP_ENV::', 'help::']);
|
$options = getopt('h::', ['APP_ENV::', 'help::']);
|
||||||
@ -14,4 +14,3 @@ if (isset($options['APP_ENV'])) {
|
|||||||
putenv('APP_ENV='.$options['APP_ENV']);
|
putenv('APP_ENV='.$options['APP_ENV']);
|
||||||
}
|
}
|
||||||
\libs\core\App::run();
|
\libs\core\App::run();
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user