Skip to content

Commit 190cb2b

Browse files
authored
CI: Add GitHub Actions workflow for Junie integration (#61)
1 parent dcab2ac commit 190cb2b

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/junie.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Junie
2+
3+
on:
4+
issue_comment:
5+
types: [created]
6+
pull_request_review_comment:
7+
types: [created]
8+
issues:
9+
types: [opened, assigned]
10+
pull_request_review:
11+
types: [submitted]
12+
13+
jobs:
14+
junie:
15+
if: |
16+
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '@junie-agent')) ||
17+
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@junie-agent')) ||
18+
(github.event_name == 'pull_request_review' && contains(github.event.review.body, '@junie-agent')) ||
19+
(github.event_name == 'issues' && (contains(github.event.issue.body, '@junie-agent') || contains(github.event.issue.title, '@junie-agent')))
20+
runs-on: ubuntu-latest
21+
permissions:
22+
contents: write
23+
pull-requests: write
24+
issues: write
25+
steps:
26+
- name: Checkout repository
27+
uses: actions/checkout@v4
28+
with:
29+
fetch-depth: 1
30+
31+
- name: Run Junie
32+
id: junie
33+
uses: JetBrains/junie-github-action@v1
34+
with:
35+
junie_api_key: ${{ secrets.JUNIE_API_KEY }}

0 commit comments

Comments
 (0)