Skip to content

Commit e48712b

Browse files
authored
Update comment-to-commit-using-aider.yml
1 parent 7c85d36 commit e48712b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/comment-to-commit-using-aider.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,17 @@ name: Comment to Commit using Aider
33
on:
44
issue_comment:
55
types: [created]
6+
pull_request_review_comment:
7+
types: [created]
68

79
jobs:
810
generate:
911
# Only run if the comment is on a PR and contains "@aider"
10-
if: ${{ github.event.issue.pull_request && contains(github.event.comment.body, '@aider') }}
12+
if: ${{ contains(github.event.comment.body, '@aider') }}
1113
uses: oscoreio/ai-workflows/.github/workflows/comment-to-commit-using-aider.yml@main
1214
with:
1315
comment-id: ${{ github.event.comment.id }}
14-
pr-url: ${{ github.event.issue.pull_request.url }}
16+
pr-url: ${{ github.event.issue.pull_request.url || github.event.pull_request.url }}
1517
secrets:
1618
# You need set one of these keys
1719
openrouter-api-key: ${{ secrets.OPENROUTER_API_KEY }} # while it allows to use DeepSeek R1 for free, it still required to rate-limiting you

0 commit comments

Comments
 (0)