Skip to content

Commit 881f4f1

Browse files
committed
Magic merge commit for PR #14057
2 parents 0aa4207 + 39c8338 commit 881f4f1

File tree

1 file changed

+30
-17
lines changed

1 file changed

+30
-17
lines changed

.github/workflows/junie.yml

Lines changed: 30 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,35 @@
11
name: Junie
2-
run-name: Junie run ${{ inputs.run_id }}
3-
4-
permissions:
5-
contents: write
6-
pull-requests: write
72

83
on:
9-
workflow_dispatch:
10-
inputs:
11-
run_id:
12-
description: "id of workflow process"
13-
required: true
14-
workflow_params:
15-
description: "stringified params"
16-
required: true
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]
1712

1813
jobs:
19-
call-workflow-passing-data:
20-
uses: jetbrains-junie/junie-workflows/.github/workflows/ej-issue.yml@main
21-
with:
22-
workflow_params: ${{ inputs.workflow_params }}
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@v0
34+
with:
35+
junie_api_key: ${{ secrets.JUNIE_API_KEY }}

0 commit comments

Comments
 (0)