mirror of
https://github.com/Lydanne/spaceflow.git
synced 2026-03-09 18:52:24 +08:00
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:
2
.github/workflows/pr-review-command.yml
vendored
2
.github/workflows/pr-review-command.yml
vendored
@@ -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
|
||||
|
||||
2
.github/workflows/pr-review.yml
vendored
2
.github/workflows/pr-review.yml
vendored
@@ -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 }}
|
||||
|
||||
2
.github/workflows/test-actions.yml
vendored
2
.github/workflows/test-actions.yml
vendored
@@ -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
|
||||
|
||||
@@ -41,7 +41,7 @@ outputs:
|
||||
|
||||
runs:
|
||||
using: "node20"
|
||||
main: "dist/index.js"
|
||||
main: "actions/dist/index.js"
|
||||
|
||||
branding:
|
||||
icon: "git-pull-request"
|
||||
@@ -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 }}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"),
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user