Skip to content

Commit 0e8fbe2

Browse files
authored
Update comment-to-commit-using-aider.yml
1 parent e48712b commit 0e8fbe2

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

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

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

97
jobs:
108
generate:
119
# Only run if the comment is on a PR and contains "@aider"
12-
if: ${{ contains(github.event.comment.body, '@aider') }}
10+
if: ${{ github.event.issue.pull_request && contains(github.event.comment.body, '@aider') }}
1311
uses: oscoreio/ai-workflows/.github/workflows/comment-to-commit-using-aider.yml@main
1412
with:
1513
comment-id: ${{ github.event.comment.id }}
16-
pr-url: ${{ github.event.issue.pull_request.url || github.event.pull_request.url }}
14+
pr-url: ${{ github.event.issue.pull_request.url }}
1715
secrets:
1816
# You need set one of these keys
1917
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)