fix(actions): 修正 GitHub Actions 路径并优化命令行选项

1. 将 action.yml 从 actions/ 目录移至根目录,统一 Actions 入口
2. 更新 action.yml 中 main 路径为 actions/dist/index.js
3. 修正所有工作流文件中的 uses 路径从 ./actions 改为 ./
4. 更新文档中的 Actions 引用路径从 nicepkg/spaceflow/actions 改为 Lydanne/spaceflow
5. 为 review-summary 命令的 preset、since、until 选项添加短标志 -p、-s、-u
This commit is contained in:
Lyda
2026-03-02 18:33:20 +08:00
parent 4eaca03974
commit 50a9946463
7 changed files with 13 additions and 13 deletions

View File

@@ -35,7 +35,7 @@ jobs:
pnpm install -g opencode-ai
- name: Run Review
uses: ./actions
uses: ./
env:
GIT_PROVIDER_TYPE: github
CLAUDE_CODE_BASE_URL: https://ark.cn-beijing.volces.com/api/coding

View File

@@ -29,7 +29,7 @@ jobs:
run: pnpm config set registry https://registry.npmmirror.com
- name: Run Review
uses: ./actions
uses: ./
env:
GIT_PROVIDER_TYPE: github
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@@ -42,7 +42,7 @@ jobs:
pnpm install -g opencode-ai
- name: Test spaceflow action
uses: ./actions
uses: ./
env:
GIT_PROVIDER_TYPE: github
CLAUDE_CODE_BASE_URL: https://ark.cn-beijing.volces.com/api/coding

View File

@@ -41,7 +41,7 @@ outputs:
runs:
using: "node20"
main: "dist/index.js"
main: "actions/dist/index.js"
branding:
icon: "git-pull-request"

View File

@@ -7,7 +7,7 @@ Spaceflow 提供预配置的 GitHub Actions可以在 CI 中自动执行各种
### 基本用法
```yaml
- uses: nicepkg/spaceflow/actions@main
- uses: Lydanne/spaceflow@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
command: review
@@ -46,7 +46,7 @@ jobs:
with:
fetch-depth: 0
- uses: nicepkg/spaceflow/actions@main
- uses: Lydanne/spaceflow@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
command: review
@@ -80,7 +80,7 @@ jobs:
with:
fetch-depth: 0
- uses: nicepkg/spaceflow/actions@main
- uses: Lydanne/spaceflow@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
command: review
@@ -118,7 +118,7 @@ jobs:
- run: pnpm install --frozen-lockfile
- uses: nicepkg/spaceflow/actions@main
- uses: Lydanne/spaceflow@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
command: publish
@@ -145,7 +145,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: nicepkg/spaceflow/actions@main
- uses: Lydanne/spaceflow@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
command: ${{ github.event.inputs.command }}

View File

@@ -131,7 +131,7 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: nicepkg/spaceflow/actions@main
- uses: Lydanne/spaceflow@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
command: review

View File

@@ -17,15 +17,15 @@ export const extension = defineExtension({
description: t("review-summary:description"),
options: [
{
flags: "--preset <preset>",
flags: "-p, --preset <preset>",
description: t("review-summary:options.preset"),
},
{
flags: "--since <date>",
flags: "-s, --since <date>",
description: t("review-summary:options.since"),
},
{
flags: "--until <date>",
flags: "-u, --until <date>",
description: t("review-summary:options.until"),
},
{