Skip to content

Commit 3db07e5

Browse files
fix(workflow): apply trigger fixes for Cogni AI Agent
1 parent 9d87ff9 commit 3db07e5

1 file changed

Lines changed: 16 additions & 2 deletions

File tree

.github/workflows/cogni-ai-agent.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,17 @@
33
name: Cogni AI Agent
44
# yamllint disable-line rule:truthy
55
on:
6+
issues:
7+
types:
8+
- opened
9+
- reopened
610
issue_comment:
711
types:
812
- created
13+
pull_request:
14+
types:
15+
- opened
16+
- reopened
917
pull_request_review_comment:
1018
types:
1119
- created
@@ -57,7 +65,7 @@ concurrency:
5765
cancel-in-progress: false
5866
group: >-
5967
cogni-ai-agent-${{
60-
(github.event.issue.pull_request && github.event.issue.number)
68+
github.event.issue.number
6169
|| github.event.pull_request.number
6270
|| (github.ref_name != github.event.repository.default_branch && github.ref)
6371
|| github.run_id
@@ -124,4 +132,10 @@ jobs:
124132
touch*: allow
125133
true*: allow
126134
vim*: allow
127-
prompt: ${{ github.event.comment.body || inputs.prompt }}
135+
prompt: >-
136+
${{
137+
github.event.comment.body ||
138+
github.event.issue.body ||
139+
github.event.pull_request.body ||
140+
inputs.prompt
141+
}}

0 commit comments

Comments
 (0)