Skip to content

Commit f8832a4

Browse files
Update test_cra.yml
1 parent 12f4d62 commit f8832a4

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/test_cra.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
on:
22
pull_request:
3-
types: [opened, reopened, ready_for_review, review_requested]
3+
types: [opened]
44
issue_comment:
55
types: [created]
66

@@ -21,7 +21,11 @@ jobs:
2121
if [[ -n "${{ vars.GIT_DOMAIN }}" ]]; then
2222
GIT_DOMAIN_OPTION=" --git.domain=${{ vars.GIT_DOMAIN }}"
2323
fi
24-
echo "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 }}${GIT_DOMAIN_OPTION}" >> $GITHUB_ENV
24+
STATIC_ANALYSIS_TOOL_OPTION=""
25+
if [[ -n "${{ vars.STATIC_ANALYSIS_TOOL }}" ]]; then
26+
STATIC_ANALYSIS_TOOL_OPTION=" --static_analysis_tool=${{ vars.STATIC_ANALYSIS_TOOL }}"
27+
fi
28+
echo "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 }}${GIT_DOMAIN_OPTION}${STATIC_ANALYSIS_TOOL_OPTION}" >> $GITHUB_ENV
2529
- name: Code Review Agent - Issue Comment
2630
if: github.event_name == 'issue_comment'
2731
uses: gitbito/codereviewagent@main
@@ -37,7 +41,11 @@ jobs:
3741
if [[ -n "${{ vars.GIT_DOMAIN }}" ]]; then
3842
GIT_DOMAIN_OPTION=" --git.domain=${{ vars.GIT_DOMAIN }}"
3943
fi
40-
echo "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 }}${GIT_DOMAIN_OPTION}" >> $GITHUB_ENV
44+
STATIC_ANALYSIS_TOOL_OPTION=""
45+
if [[ -n "${{ vars.STATIC_ANALYSIS_TOOL }}" ]]; then
46+
STATIC_ANALYSIS_TOOL_OPTION=" --static_analysis_tool=${{ vars.STATIC_ANALYSIS_TOOL }}"
47+
fi
48+
echo "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 }}${GIT_DOMAIN_OPTION}${STATIC_ANALYSIS_TOOL_OPTION}" >> $GITHUB_ENV
4149
- name: Code Review Agent action step
4250
if: github.event_name == 'pull_request'
4351
uses: gitbito/codereviewagent@main

0 commit comments

Comments
 (0)