name: Create Spec from Issue (Local) on: issues: types: [assigned, labeled] issue_comment: types: [created] workflow_dispatch: inputs: issue_number: description: Issue number to create a spec for required: true type: string concurrency: group: create-spec-issue-${{ github.event.issue.number || inputs.issue_number || github.run_id }} cancel-in-progress: false jobs: # Mention, bot, event-type, and trust gates all live in the reusable # workflow (``create-spec-from-issue.yml``). This adapter exists only # to subscribe to the GitHub events that can trigger spec creation # (``issues`` assign/label by a maintainer, or a trusted # ``@oz-agent`` issue comment) and delegate them through # ``workflow_call``. create_spec: permissions: contents: write issues: write pull-requests: write uses: warpdotdev/oz-for-oss/.github/workflows/create-spec-from-issue.yml@main with: issue_number: ${{ github.event.inputs.issue_number || '' }} secrets: OZ_MGMT_GHA_APP_ID: ${{ secrets.OZ_MGMT_GHA_APP_ID }} OZ_MGMT_GHA_PRIVATE_KEY: ${{ secrets.OZ_MGMT_GHA_PRIVATE_KEY }} OSS_WARP_API_KEY: ${{ secrets.OSS_WARP_API_KEY }}