Files
MoviePilot/.github/workflows/moviepilot-codex-fix.yml
DDSRem 2de976f6b3 Merge pull request #7050 from DDSRem-Dev/codex-comment-migration
docs: 统一全项目中文注释和结构化契约说明
2026-10-17 19:26:29 +08:00

44 lines
1.5 KiB
YAML
Raw Permalink 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.
# 分发手动修复请求;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 }}