Skip to content

Commit 0ceafd6

Browse files
added test workflow file and moved action.yml to root directory
1 parent afeea39 commit 0ceafd6

File tree

4 files changed

+32
-0
lines changed

4 files changed

+32
-0
lines changed

.github/workflows/test_cra.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
on:
2+
pull_request:
3+
types: [opened, reopened, ready_for_review, review_requested]
4+
issue_comment:
5+
types: [created]
6+
jobs:
7+
code_review_job:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
issues: write
11+
pull-requests: write
12+
contents: write
13+
name: Run code review agent on every pull request, respond to user comments
14+
steps:
15+
- name: Code Review Agent - Issue Comment
16+
id: cra_issues_comment
17+
if: ${{ github.event_name == 'issue_comment' }}
18+
uses: gitbito/codereviewagent@main
19+
with:
20+
payload: ${{ github.event_name }} = ${{ github.event.issue.pull_request.html_url }} ${{ github.event.comment.body }}
21+
pr: ${{ github.event.issue.pull_request.html_url }}
22+
command: ${{ github.event.comment.body }}
23+
options: --static_analysis.fb_infer.enabled=True --code_feedback=True --dependency_check.enabled=False --bee.path=/automation-platform --bee.actn_dir=/automation-platform/default_bito_ad/bito_modules --git.access_token=${{ secrets.GIT_ACCESS_TOKEN }} --bito_cli.bito.access_key=${{ secrets.BITO_ACCESS_KEY }}
24+
- name: Code Review Agent action step
25+
id: cra
26+
if: ${{ github.event_name == 'pull_request' }}
27+
uses: gitbito/codereviewagent@main
28+
with:
29+
payload: ${{ github.event_name }} = ${{ github.event.pull_request.html_url }}
30+
pr: ${{ github.event.pull_request.html_url }}
31+
command: review
32+
options: --static_analysis.fb_infer.enabled=True --code_feedback=True --dependency_check.enabled=False --bee.path=/automation-platform --bee.actn_dir=/automation-platform/default_bito_ad/bito_modules --git.access_token=${{ secrets.GIT_ACCESS_TOKEN }} --bito_cli.bito.access_key=${{ secrets.BITO_ACCESS_KEY }}
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)