Closed ParthGuptaHL closed 9 months ago
CodeRabbit
This update introduces environment variables for the OpenAI API key, base URL, and version in the GitHub Actions workflow. It also updates the openai-pr-reviewer
package version from 0.0.0
to 0.1.0
. Lastly, it modifies the apiBaseUrl
property of the ChatGPTAPI
class to use an environment variable if available.
Files | Summary |
---|---|
.github/workflows/openai-review.yml , .gitignore |
Added new secrets AZURE_OPENAI_API_KEY , AZURE_OPENAI_API_BASE , and AZURE_OPENAPI_VERSION to the environment variables used in a GitHub Action workflow. Also added AZURE_OPENAI_API_KEY to .gitignore. |
package-lock.json , package.json |
Updated the version of the openai-pr-reviewer package from 0.0.0 to 0.1.0 . |
src/bot.ts |
Modified the apiBaseUrl property of the ChatGPTAPI class to check for the presence of a BASE_API_URL environment variable and use its value if available, otherwise falls back to the options.apiBaseUrl value. |
PR test comment
Added AZURE_OPENAI_API_KEY secrets
Summary by CodeRabbit
New Feature:
AZURE_OPENAI_API_KEY
,AZURE_OPENAI_API_BASE
, andAZURE_OPENAPI_VERSION
to the GitHub Action workflow for enhanced security.openai-pr-reviewer
package version from0.0.0
to0.1.0
.ChatGPTAPI
class.