@@ -17,10 +17,14 @@ jobs:
17
17
- name : Set Options Environment Variable for Issue Comment
18
18
if : github.event_name == 'issue_comment'
19
19
run : |
20
- 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 && ' --git.domain=' || '' }}${{ $GIT_DOMAIN }}" >> $GITHUB_ENV
20
+ GIT_DOMAIN_OPTION=""
21
+ if [[ -n "${{ vars.GIT_DOMAIN }}" ]]; then
22
+ GIT_DOMAIN_OPTION=" --git.domain=${{ vars.GIT_DOMAIN }}"
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
21
25
- name : Code Review Agent - Issue Comment
22
26
if : github.event_name == 'issue_comment'
23
- uses : gitbito/codereviewagent@latest
27
+ uses : gitbito/codereviewagent@main
24
28
with :
25
29
pr : ${{ github.event.issue.pull_request.html_url }}
26
30
command : ${{ github.event.comment.body }}
@@ -29,10 +33,14 @@ jobs:
29
33
- name : Set Options Environment Variable for Pull Request
30
34
if : github.event_name == 'pull_request'
31
35
run : |
32
- 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 && ' --git.domain=' || '' }}${{ $GIT_DOMAIN }}" >> $GITHUB_ENV
36
+ GIT_DOMAIN_OPTION=""
37
+ if [[ -n "${{ vars.GIT_DOMAIN }}" ]]; then
38
+ GIT_DOMAIN_OPTION=" --git.domain=${{ vars.GIT_DOMAIN }}"
39
+ 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
33
41
- name : Code Review Agent action step
34
42
if : github.event_name == 'pull_request'
35
- uses : gitbito/codereviewagent@latest
43
+ uses : gitbito/codereviewagent@main
36
44
with :
37
45
pr : ${{ github.event.pull_request.html_url }}
38
46
command : review
0 commit comments