-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Switched to Gemini-pro. Added JIRA and GitLab commands. * Added dependencies for JIRA and GitLab commands. * Added JIRA command * Added JIRA and GitLab commands * Added docs for JIRA and LangSmith configuration * Added JIRA command * Added folders and files to exclude * updated google-cloud-aiplatform * Added gitlab command * updated comment * Added config steps for JIRA and GitLab * Added step to create PAT * Switched to Gemini Pro * Added PROJECT_ID and LOCATION env vars for CICD pipeline * Updated GitHub actions versions * Update readme * added json format * Fixed typo * added env vars * Added setup steps * switched to new folder structure * Added steps for env vars setup * Added resource manager api * added workflow rule * added circleci config * added all env vars * added CircleCI config
- Loading branch information
Showing
10 changed files
with
704 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,145 @@ | ||
version: 2.1 | ||
|
||
jobs: | ||
ai-insights-code-review: | ||
docker: | ||
- image: python:3.11-slim | ||
steps: | ||
- checkout | ||
- run: | ||
command: | | ||
pip install virtualenv | ||
virtualenv venv | ||
source venv/bin/activate | ||
cd outer-loop-cli/src | ||
pip install -r requirements.txt | ||
pip install --editable . | ||
cd ../.. | ||
devai echo | ||
echo $(pwd) | ||
export PROJECT_ID=$(echo $PROJECT_ID) | ||
export LOCATION=$(echo $LOCATION) | ||
|
||
export JIRA_USERNAME=$(echo $JIRA_USERNAME) | ||
export JIRA_PROJECT_KEY=$(echo $JIRA_PROJECT_KEY) | ||
export JIRA_INSTANCE_URL=$(echo $JIRA_INSTANCE_URL) | ||
export JIRA_API_TOKEN=$(echo $JIRA_API_TOKEN) | ||
|
||
export GITLAB_URL=$(echo $GITLAB_URL) | ||
export GITLAB_REPOSITORY=$(echo $GITLAB_REPOSITORY) | ||
export GITLAB_PERSONAL_ACCESS_TOKEN=$(echo $GITLAB_PERSONAL_ACCESS_TOKEN) | ||
export GITLAB_BRANCH=$(echo $GITLAB_BRANCH) | ||
export GITLAB_BASE_BRANCH=$(echo $GITLAB_BASE_BRANCH) | ||
|
||
export LANGCHAIN_TRACING_V2=$(echo $LANGCHAIN_TRACING_V2) | ||
export LANGCHAIN_ENDPOINT=$(echo $LANGCHAIN_ENDPOINT) | ||
export LANGCHAIN_API_KEY=$(echo $LANGCHAIN_API_KEY) | ||
|
||
export GOOGLE_CLOUD_CREDENTIALS=$(echo $GOOGLE_CLOUD_CREDENTIALS) | ||
echo $GOOGLE_CLOUD_CREDENTIALS > service-account-key.json | ||
export GOOGLE_APPLICATION_CREDENTIALS="service-account-key.json" | ||
echo "" | ||
echo "=============================================================" | ||
echo "Code Review" | ||
devai review code -c ./sample-app/src/main/java/anthos/samples/bankofanthos/balancereader | ||
echo "" | ||
echo "=============================================================" | ||
|
||
ai-insights-security-review: | ||
docker: | ||
- image: python:3.11-slim | ||
steps: | ||
- checkout | ||
- run: | ||
command: | | ||
pip install virtualenv | ||
virtualenv venv | ||
source venv/bin/activate | ||
cd outer-loop-cli/src | ||
pip install -r requirements.txt | ||
pip install --editable . | ||
cd ../.. | ||
devai echo | ||
echo $(pwd) | ||
export PROJECT_ID=$(echo $PROJECT_ID) | ||
export LOCATION=$(echo $LOCATION) | ||
|
||
export JIRA_USERNAME=$(echo $JIRA_USERNAME) | ||
export JIRA_PROJECT_KEY=$(echo $JIRA_PROJECT_KEY) | ||
export JIRA_INSTANCE_URL=$(echo $JIRA_INSTANCE_URL) | ||
export JIRA_API_TOKEN=$(echo $JIRA_API_TOKEN) | ||
|
||
export GITLAB_URL=$(echo $GITLAB_URL) | ||
export GITLAB_REPOSITORY=$(echo $GITLAB_REPOSITORY) | ||
export GITLAB_PERSONAL_ACCESS_TOKEN=$(echo $GITLAB_PERSONAL_ACCESS_TOKEN) | ||
export GITLAB_BRANCH=$(echo $GITLAB_BRANCH) | ||
export GITLAB_BASE_BRANCH=$(echo $GITLAB_BASE_BRANCH) | ||
|
||
export LANGCHAIN_TRACING_V2=$(echo $LANGCHAIN_TRACING_V2) | ||
export LANGCHAIN_ENDPOINT=$(echo $LANGCHAIN_ENDPOINT) | ||
export LANGCHAIN_API_KEY=$(echo $LANGCHAIN_API_KEY) | ||
|
||
export GOOGLE_CLOUD_CREDENTIALS=$(echo $GOOGLE_CLOUD_CREDENTIALS) | ||
echo $GOOGLE_CLOUD_CREDENTIALS > service-account-key.json | ||
export GOOGLE_APPLICATION_CREDENTIALS="service-account-key.json" | ||
echo "" | ||
echo "=============================================================" | ||
echo "Performance Review" | ||
devai review performance -c ./sample-app/src/main/java/anthos/samples/bankofanthos/balancereader | ||
echo "" | ||
echo "=============================================================" | ||
|
||
ai-insights-performance-review: | ||
docker: | ||
- image: python:3.11-slim | ||
steps: | ||
- checkout | ||
- run: | ||
command: | | ||
pip install virtualenv | ||
virtualenv venv | ||
source venv/bin/activate | ||
cd outer-loop-cli/src | ||
pip install -r requirements.txt | ||
pip install --editable . | ||
cd ../.. | ||
devai echo | ||
echo $(pwd) | ||
export PROJECT_ID=$(echo $PROJECT_ID) | ||
export LOCATION=$(echo $LOCATION) | ||
|
||
export JIRA_USERNAME=$(echo $JIRA_USERNAME) | ||
export JIRA_PROJECT_KEY=$(echo $JIRA_PROJECT_KEY) | ||
export JIRA_INSTANCE_URL=$(echo $JIRA_INSTANCE_URL) | ||
export JIRA_API_TOKEN=$(echo $JIRA_API_TOKEN) | ||
|
||
export GITLAB_URL=$(echo $GITLAB_URL) | ||
export GITLAB_REPOSITORY=$(echo $GITLAB_REPOSITORY) | ||
export GITLAB_PERSONAL_ACCESS_TOKEN=$(echo $GITLAB_PERSONAL_ACCESS_TOKEN) | ||
export GITLAB_BRANCH=$(echo $GITLAB_BRANCH) | ||
export GITLAB_BASE_BRANCH=$(echo $GITLAB_BASE_BRANCH) | ||
|
||
export LANGCHAIN_TRACING_V2=$(echo $LANGCHAIN_TRACING_V2) | ||
export LANGCHAIN_ENDPOINT=$(echo $LANGCHAIN_ENDPOINT) | ||
export LANGCHAIN_API_KEY=$(echo $LANGCHAIN_API_KEY) | ||
|
||
export GOOGLE_CLOUD_CREDENTIALS=$(echo $GOOGLE_CLOUD_CREDENTIALS) | ||
echo $GOOGLE_CLOUD_CREDENTIALS > service-account-key.json | ||
export GOOGLE_APPLICATION_CREDENTIALS="service-account-key.json" | ||
echo "" | ||
echo "=============================================================" | ||
echo "Security Review" | ||
devai review security -c ./sample-app/src/main/java/anthos/samples/bankofanthos/balancereader | ||
echo "" | ||
echo "=============================================================" | ||
|
||
workflows: | ||
ai-insights-workflow: | ||
jobs: | ||
- ai-insights-code-review | ||
- ai-insights-security-review | ||
- ai-insights-performance-review | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.