Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ Read these Agent files when working in corresponding dirs:

## Additional key files

- [.github/copilot-instructions.md](copilot-instructions.md): main coding standards for agents.
- [.github/FIREWALL.md](FIREWALL.md): firewall configuration and recommended hosts for agents.

## Hardened NEVER List
Expand Down
27 changes: 25 additions & 2 deletions .github/workflows/cogni-ai-agent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,25 @@
name: Cogni AI Agent
# yamllint disable-line rule:truthy
on:
issues:
types:
- opened
- edited
- reopened
issue_comment:
types:
- created
- edited
pull_request:
types:
- opened
- edited
- reopened
- synchronize
pull_request_review_comment:
types:
- created
- edited
workflow_dispatch:
inputs:
model:
Expand Down Expand Up @@ -57,7 +70,7 @@ concurrency:
cancel-in-progress: false
group: >-
cogni-ai-agent-${{
(github.event.issue.pull_request && github.event.issue.number)
github.event.issue.number
|| github.event.pull_request.number
|| (github.ref_name != github.event.repository.default_branch && github.ref)
|| github.run_id
Expand All @@ -66,6 +79,9 @@ jobs:
cogni-ai-agent:
name: Run Cogni AI agent
runs-on: ubuntu-latest
if: |
github.event_name != 'issues' ||
!github.event.issue.pull_request
permissions:
contents: write
id-token: write
Expand Down Expand Up @@ -124,4 +140,11 @@ jobs:
touch*: allow
true*: allow
vim*: allow
prompt: ${{ github.event.comment.body || inputs.prompt }}
# Use comment body if available, otherwise fall back to issue/PR body or manual input.
prompt: >-
${{
github.event.comment.body ||
github.event.issue.body ||
github.event.pull_request.body ||
inputs.prompt
}}
Loading