Files
ai-pull-request/action.yaml
T

32 lines
1.0 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
name: 'AI Pull Request'
description: '使用 opencode 分析 git diff 產生 PR 標題與描述,並透過 Gitea token 建立 Pull Request;遇衝突時自動建立解衝突分支'
author: 'Jeffery'
inputs:
source_branch:
description: '來源分支'
required: true
target_branch:
description: '目標分支'
required: true
opencode_base_url:
description: 'opencode 使用的模型服務 base URLOpenAI 相容端點)'
required: true
opencode_model:
description: 'opencode 使用的模型名稱'
required: true
opencode_provider:
description: 'opencode provider 名稱'
required: true
runs:
using: 'docker'
image: 'Dockerfile'
env:
GITEA_SERVER_URL: ${{ gitea.server_url }}
GITEA_REPOSITORY: ${{ gitea.repository }}
GITEA_TOKEN: ${{ gitea.token }}
SOURCE_BRANCH: ${{ inputs.source_branch }}
TARGET_BRANCH: ${{ inputs.target_branch }}
OPENCODE_BASE_URL: ${{ inputs.opencode_base_url }}
OPENCODE_MODEL: ${{ inputs.opencode_model }}
OPENCODE_PROVIDER: ${{ inputs.opencode_provider }}