|
1 | 1 | on:
|
2 | 2 | pull_request:
|
3 |
| - types: [opened, reopened, ready_for_review, review_requested] |
| 3 | + types: [opened] |
4 | 4 | issue_comment:
|
5 | 5 | types: [created]
|
6 | 6 |
|
|
21 | 21 | if [[ -n "${{ vars.GIT_DOMAIN }}" ]]; then
|
22 | 22 | GIT_DOMAIN_OPTION=" --git.domain=${{ vars.GIT_DOMAIN }}"
|
23 | 23 | 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 |
25 | 29 | - name: Code Review Agent - Issue Comment
|
26 | 30 | if: github.event_name == 'issue_comment'
|
27 | 31 | uses: gitbito/codereviewagent@main
|
|
37 | 41 | if [[ -n "${{ vars.GIT_DOMAIN }}" ]]; then
|
38 | 42 | GIT_DOMAIN_OPTION=" --git.domain=${{ vars.GIT_DOMAIN }}"
|
39 | 43 | 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 |
41 | 49 | - name: Code Review Agent action step
|
42 | 50 | if: github.event_name == 'pull_request'
|
43 | 51 | uses: gitbito/codereviewagent@main
|
|
0 commit comments