Skip to content

Commit a409bdf

Browse files
donhardmandonk8r
authored andcommitted
ci: add PR brief generation job using AI
- New workflow job generates brief summaries for PRs - Triggers on pull_request events (opened and synchronize) - Uses octomind-action with ollama:glm-5.1 model - Posts full comment with change analysis
1 parent 93ca90f commit a409bdf

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/ci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,3 +193,35 @@ jobs:
193193
with:
194194
file: ./cobertura.xml
195195
fail_ci_if_error: false
196+
197+
brief:
198+
name: PR Brief
199+
runs-on: ubuntu-latest
200+
if: github.event_name == 'pull_request'
201+
steps:
202+
- name: Checkout code
203+
uses: actions/checkout@v4
204+
with:
205+
fetch-depth: 0
206+
207+
- name: Generate PR Brief (New PR)
208+
if: github.event.action == 'opened'
209+
uses: muvon/octomind-action@master
210+
with:
211+
role: developer:brief
212+
model: ollama:glm-5.1
213+
prompt: "Compare branch '${{ github.head_ref }}' to '${{ github.base_ref }}' and provide a brief summary of all changes"
214+
comment: 'full'
215+
env:
216+
OLLAMA_API_KEY: ${{ secrets.OLLAMA_API_KEY }}
217+
218+
- name: Generate PR Brief (Push to existing PR)
219+
if: github.event.action == 'synchronize'
220+
uses: muvon/octomind-action@master
221+
with:
222+
role: developer:brief
223+
model: ollama:glm-5.1
224+
prompt: "Analyze changes from commit ${{ github.event.before }} to ${{ github.event.after }} and provide a brief summary of incremental changes"
225+
comment: 'full'
226+
env:
227+
OLLAMA_API_KEY: ${{ secrets.OLLAMA_API_KEY }}

0 commit comments

Comments
 (0)