diff --git a/.github/workflows/ai-fix.yml b/.github/workflows/ai-fix.yml new file mode 100644 index 00000000..47b3218a --- /dev/null +++ b/.github/workflows/ai-fix.yml @@ -0,0 +1,26 @@ +name: AI Fix with Copilot + +on: + workflow_dispatch: + inputs: + issue_number: + description: Issue number to assign to Copilot + required: true + type: string + issues: + types: [labeled] + pull_request_target: + types: [opened] + +permissions: + contents: write + issues: write + pull-requests: write + +jobs: + ai-fix: + uses: kubestellar/infra/.github/workflows/reusable-ai-fix.yml@main + with: + issue_number: ${{ github.event.inputs.issue_number || '' }} + secrets: + token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/copilot-automation.yml b/.github/workflows/copilot-automation.yml new file mode 100644 index 00000000..0296b204 --- /dev/null +++ b/.github/workflows/copilot-automation.yml @@ -0,0 +1,29 @@ +name: Copilot PR Automation + +on: + workflow_dispatch: + inputs: + pr_number: + description: PR number to process + required: true + type: string + pull_request_target: + types: [opened, synchronize, ready_for_review] + +permissions: + contents: write + pull-requests: write + issues: write + statuses: write + +concurrency: + group: copilot-automation-${{ github.event.pull_request.number || github.event.inputs.pr_number || github.sha }} + cancel-in-progress: true + +jobs: + copilot-automation: + uses: kubestellar/infra/.github/workflows/reusable-copilot-automation.yml@main + with: + pr_number: ${{ github.event.inputs.pr_number || '' }} + secrets: + token: ${{ secrets.GITHUB_TOKEN }}