Skip to content

Commit c3d0382

Browse files
Merge pull request #1 from rishabhbohra3/bito_cra_action
Bito cra action
2 parents a62f760 + 4ba234c commit c3d0382

File tree

4 files changed

+30
-0
lines changed

4 files changed

+30
-0
lines changed

.github/workflows/test_cra.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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+
pr: ${{ github.event.issue.pull_request.html_url }}
21+
command: ${{ github.event.comment.body }}
22+
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 }}
23+
- name: Code Review Agent action step
24+
id: cra
25+
if: ${{ github.event_name == 'pull_request' }}
26+
uses: gitbito/codereviewagent@main
27+
with:
28+
pr: ${{ github.event.pull_request.html_url }}
29+
command: review
30+
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)