mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-11-03 22:04:57 +08:00
44 lines
1.5 KiB
YAML
44 lines
1.5 KiB
YAML
# 分发手动修复请求;Codex 只在被调用的工作流中获得写权限。
|
||
name: MoviePilot Codex fix
|
||
|
||
on:
|
||
workflow_dispatch:
|
||
inputs:
|
||
issue_number:
|
||
description: Issue or PR number to investigate.
|
||
required: true
|
||
type: string
|
||
prompt_name:
|
||
description: issue-fix, ci-fix, or delivery.
|
||
required: false
|
||
default: issue-fix
|
||
type: string
|
||
|
||
permissions:
|
||
contents: write
|
||
issues: write
|
||
pull-requests: write
|
||
|
||
jobs:
|
||
codex:
|
||
if: ${{ vars.CODEX_ENABLED == 'true' && vars.CODEX_AUTOFIX_ENABLED == 'true' }}
|
||
uses: jxxghp/MoviePilot-Maintenance/.github/workflows/codex-fix.yml@main
|
||
with:
|
||
control_repository: jxxghp/MoviePilot-Maintenance
|
||
control_ref: main
|
||
prompt_name: ${{ inputs.prompt_name }}
|
||
codex_model: ${{ vars.CODEX_MODEL }}
|
||
codex_effort: ${{ vars.CODEX_EFFORT || 'max' }}
|
||
target_number: ${{ inputs.issue_number }}
|
||
target_ref: ${{ github.ref_name }}
|
||
target_sha: ${{ github.sha }}
|
||
openai_base_url: ${{ vars.OPENAI_BASE_URL }}
|
||
publish_comments: true
|
||
autofix_enabled: ${{ vars.CODEX_AUTOFIX_ENABLED == 'true' }}
|
||
telegram_enabled: ${{ vars.TELEGRAM_ENABLED == 'true' && vars.TELEGRAM_CHAT_ID != '' }}
|
||
telegram_chat_id: ${{ vars.TELEGRAM_ENABLED == 'true' && vars.TELEGRAM_CHAT_ID || '' }}
|
||
secrets:
|
||
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
|
||
MAINTENANCE_TARGET_GH_TOKEN: ${{ secrets.MAINTENANCE_TARGET_GH_TOKEN }}
|
||
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
|