-
Notifications
You must be signed in to change notification settings - Fork 5
37 lines (32 loc) · 1.15 KB
/
fix-failed-checks.yml
File metadata and controls
37 lines (32 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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