Fix Failed Checks #453
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Fix Failed Checks | |
| on: | |
| workflow_run: | |
| workflows: ["CI"] | |
| types: [completed] | |
| jobs: | |
| fix-failures: | |
| if: github.event.workflow_run.conclusion == 'failure' && github.event.workflow_run.event == 'pull_request' | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| issues: write | |
| actions: read | |
| checks: read | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ github.event.workflow_run.head_branch }} | |
| - uses: JetBrains/junie-github-action@main | |
| with: | |
| junie_api_key: ${{ secrets.JUNIE_API_KEY }} | |
| allowed_mcp_servers: mcp_github_checks_server | |
| use_single_comment: true | |
| prompt: | | |
| CI workflow "${{ github.event.workflow_run.name }}" failed on branch ${{ github.event.workflow_run.head_branch }}. | |
| Please: | |
| 1. Retrieve detailed information about failed CI/CD checks | |
| 2. Investigate the root cause of the failures | |
| 3. Suggest fixes for the failing tests or type errors | |
| Prohibitions: | |
| It's important to not modify any files, just suggest fixes |