iads-ai-code-reviewer
v1.0.1
Published
Simple npm package that adds AI PR review configuration file and GitLab CI integration
Readme
@ifxglobal/iads-ai-code-reviewer
Simple npm package that adds AI PR review configuration to your project
What it does
This package does exactly two things:
- Adds a text file (
ai_review_prompt.txt) to the root of your project with AI review configuration - Adds AI review stage to your
.gitlab-ci.ymlfile (creates one if it doesn't exist)
Installation
npm install @ifxglobal/iads-ai-code-reviewerThat's it! The package will automatically set up the required files during installation.
What gets added
1. ai_review_prompt.txt
A simple text file in your project root containing AI review configuration and setup instructions.
2. GitLab CI Configuration
Adds or updates your .gitlab-ci.yml with an AI code review component:
include:
- component: gitlab.intra.infineon.com/ifx/innersource/aicodereviewer/ai-repo-reviewer/ai_repo_reviewer@feature/custom-instruction-support
inputs:
stage: review
tag: feature/custom-instruction-support
includeFileTypes: ".js,.ts,.tsx,.jsx,.css,.scss,.py,.md,.vue"
ignoreFiles: "ai_review_prompt.txt, **/*.crt, **/node_modules/**"
review_unchanged_files: "True"
print_llm_input: "True"
review_mergeable_files: "True"
stages:
- reviewThat's it!
No complex configuration, no additional dependencies, just two simple additions to your project.
Troubleshooting
If files were not automatically created during installation, you can manually run the setup:
npx setup-ai-reviewerLicense
ISC © Pranjali Pandey
