+9
-14
@@ -2,8 +2,14 @@ name: Bot agents
|
||||
description: Run a coding agent for approved Gitea issue/PR automation
|
||||
|
||||
inputs:
|
||||
bot-type:
|
||||
description: Which bot to run, either `codex` or `claude`
|
||||
profiles-file:
|
||||
description: >-
|
||||
Repository-relative path to an ordered YAML sequence of bot profiles.
|
||||
Each profile has `type` (`claude` or `codex`), an optional `model`, and
|
||||
`token-env` naming a `BOT_PROFILE_...` environment variable containing
|
||||
its credential. Codex may omit `token-env` to use its persisted device
|
||||
login. A profile is tried only after the previous one exhausts its usage
|
||||
allowance.
|
||||
required: true
|
||||
author-token:
|
||||
description: >-
|
||||
@@ -17,15 +23,6 @@ inputs:
|
||||
reviews, with the `write:issue` and `write:repository` scopes. Never
|
||||
exposed to the agent, so it must differ from the author.
|
||||
required: true
|
||||
bot-token:
|
||||
description: API key or token for the selected bot
|
||||
required: false
|
||||
model:
|
||||
description: >-
|
||||
Model for the selected bot. Defaults to `claude-sonnet-5` or
|
||||
`gpt-5.6-terra`, the mid tiers, which cover reviews and fixes.
|
||||
required: false
|
||||
|
||||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
@@ -43,9 +40,7 @@ runs:
|
||||
run: deno run -A "${ACTION_PATH}/run.ts"
|
||||
env:
|
||||
ACTION_PATH: ${{ gitea.action_path }}
|
||||
BOT_TYPE: ${{ inputs.bot-type }}
|
||||
BOT_TOKEN: ${{ inputs.bot-token }}
|
||||
MODEL: ${{ inputs.model }}
|
||||
PROFILES_FILE: ${{ inputs.profiles-file }}
|
||||
GITEA_API_URL: ${{ gitea.api_url }}
|
||||
GITEA_REPOSITORY: ${{ gitea.repository }}
|
||||
GITEA_TOKEN: ${{ inputs.author-token }}
|
||||
|
||||
Reference in New Issue
Block a user