Skip to content

ops

ops #24

Workflow file for this run

name: ops
on:
workflow_dispatch:
inputs:
issue_number:
description: "Issue number override"
required: false
type: string
objective:
description: "Direct objective override"
required: false
type: string
resume_run_id:
description: "Resume run id"
required: false
type: string
schedule:
- cron: "*/30 * * * *"
issue_comment:
types: [created]
pull_request:
types: [opened, synchronize, reopened, labeled]
pull_request_review:
types: [submitted]
permissions:
contents: write
pull-requests: write
issues: write
jobs:
autonomous-dev:
if: >-
github.event_name == 'workflow_dispatch' ||
github.event_name == 'schedule' ||
(github.event_name == 'issue_comment' && (
startsWith(github.event.comment.body, '/ops run') ||
startsWith(github.event.comment.body, '/ops resume')
))
uses: openworld-maker/ops-infra/.github/workflows/autonomous-dev.yml@a9b7650e0df261a2411ff680438f5b5cfcbca9d3
with:
issue_number: ${{ github.event.inputs.issue_number || github.event.issue.number || '' }}
objective: ${{ github.event.inputs.objective || '' }}
resume_run_id: ${{ github.event.inputs.resume_run_id || '' }}
planner_prompt_version: v1.0.0
executor_prompt_version: v1.0.0
secrets: inherit
review-autopilot:
if: >-
github.event_name == 'schedule' ||
(github.event_name == 'pull_request' && contains(join(github.event.pull_request.labels.*.name, ','), 'ops:auto')) ||
(github.event_name == 'pull_request_review' && contains(join(github.event.pull_request.labels.*.name, ','), 'ops:auto'))
uses: openworld-maker/ops-infra/.github/workflows/review-autopilot.yml@a9b7650e0df261a2411ff680438f5b5cfcbca9d3
with:
pr_number: ${{ github.event.pull_request.number || '0' }}
executor_prompt_version: v1.0.0
secrets: inherit
merge-gate:
if: >-
github.event_name == 'pull_request_review' &&
github.event.review.state == 'approved' &&
contains(join(github.event.pull_request.labels.*.name, ','), 'ops:auto')
uses: openworld-maker/ops-infra/.github/workflows/merge-gate.yml@a9b7650e0df261a2411ff680438f5b5cfcbca9d3
with:
pr_number: ${{ github.event.pull_request.number }}
secrets: inherit