This tool provides automated code review capabilities for pull requests of new resources in the AzureRM Terraform Provider.
- This tool only reviews newly added files in a pull request.
- It may produce false positives or miss certain types of errors.
- It may take longer than standard linter tools due to the processing time of the AI API.
-
Clone the repository:
git clone https://github.com/ms-zhenhua/terraform-provider-azurerm-reviewer.git cd terraform-provider-azurerm-reviewer -
Review a pull request (e.g., id=10000):
.\scripts\review_pull_request.ps1 "https://github.com/hashicorp/terraform-provider-azurerm/pull/10000"If everything goes well, you will get a final result at
./pull_requests/hashicorp_terraform-provider-azurerm_10000/report.md.
| Parameter | Description |
|---|---|
Model |
The LLM Model used for reviewing the code. |
MaxParallel |
Max parallel review tasks. Note: If the value is too high, the AI API may return errors. |
ForceNew |
Switch to restart reviewing the pull request from scratch. |