Skip to content

Commit 05ab131

Browse files
Merge pull request #16 from gitbito/BITO-4303
Update test_cra.yml with 1.2.5 image
2 parents 12f4d62 + 57503d7 commit 05ab131

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
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

entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ done
1919

2020
# Run the Docker container from the specified image
2121
if [ "$valid_command" = true ]; then
22-
exec docker pull bitoai/cra:latest
22+
docker pull bitoai/cra:latest >&2
2323
exec docker run bitoai/cra:latest --mode=cli --pr_url $INPUT_PR $INPUT_COMMAND $INPUT_OPTIONS
2424
else
2525
echo "$INPUT_COMMAND is not supported"

0 commit comments

Comments
 (0)