nshuklads/OpenAI ChatGPT based PR Reviewer & Summarizer

OpenAI ChatGPT based PR Reviewer and Summarizer

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stalelast commit Oct 31, 2023
License
MIT
Runtime
Deprecated runtime

Pinned Snippet

workflow.ymlSHA-pinned
uses: nshuklads/lab_pr_review_demo@841e761c6ac7071d8772cf888afd11a1dc11dd74 # no releases — HEAD as of 2026-07-11

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
debugEnable debug modenofalse
max_filesMax files to summarize and review. Less than or equal to 0 means no limit.no150
review_simple_changesReview even when the changes are simplenofalse
review_comment_lgtmLeave comments even if the patch is LGTMnofalse
path_filtersThe path filters, e.g., "src/**.py", "!dist/**", each line will be considered as one pattern. See also - https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#onpushpull_requestpull_request_targetpathspaths-ignore - https://github.com/isaacs/minimatch no!dist/** !**/*.app !**/*.bin !**/*.bz2 !**/*.class !**/*.db !**/*.csv !**/*.tsv !**/*.dat !**/*.dll !**/*.dylib !**/*.egg !**/*.glif !**/*.gz !**/*.xz !**/*.zip !**/*.zst !**/*.ico !**/*.jar !**/*.tar !**/*.war !**/*.lo !**/*.log !**/*.mp3 !**/*.mp4 !**/*.nar !**/*.o !**/*.ogg !**/*.otf !**/*.p !**/*.pdf !**/*.pkl !**/*.pickle !**/*.pyc !**/*.pyd !**/*.pyo !**/*.rkt !**/*.so !**/*.ss !**/*.eot !**/*.exe !**/*.pb.go !**/*.lock !**/*.ttf !**/*.yaml !**/*.yml !**/*.cfg !**/*.toml !**/*.ini !**/*.mod !**/*.sum !**/*.work !**/*.json !**/*.mmd !**/*.svg !**/*.jpeg !**/*.jpg !**/*.png !**/*.gif !**/*.webm !**/*.woff !**/*.woff2 !**/*.dot !**/*.md5sum !**/*.wasm !**/*.snap !**/gen/** !**/_gen/** !**/generated/** !**/vendor/**
disable_reviewOnly provide the summary and skip the code review.nofalse
disable_release_notesDisable release notesnofalse
openai_light_model_urlThe url of the openai api interface for light modelnohttps://palo-sg-gpt4.openai.azure.com/openai/deployments/gpt35/chat/completions?api-version=2023-03-15-preview
openai_heavy_model_urlThe url of the openai api interface for GPT4.nohttps://palo-sg-gpt4.openai.azure.com/openai/deployments/gpt4/chat/completions?api-version=2023-03-15-preview
openai_base_urlThe url of the azure openai api interface.nohttps://pr-review-demo1.openai.azure.com/openai/deployments/gpt4_pr_review/chat/completions?api-version=2023-07-01-preview
openai_light_modelModel to use for simple tasks like summarizing diff on a file.nogpt35
openai_heavy_modelModel to use for complex tasks such as code reviews.nogpt4
openai_model_temperatureTemperature for GPT modelno0.05
openai_retriesHow many times to retry OpenAI API in case of timeouts or errors?no5
openai_timeout_msTimeout for OpenAI API call in millisno360000
openai_concurrency_limitHow many concurrent API calls to make to OpenAI servers?no4
system_messageSystem message to be sent to OpenAInoYou are `@paloAI` (aka `github-actions[bot]`), a language model trained by OpenAI. Your purpose is to act as a highly experienced software engineer and provide a thorough review of the code hunks and suggest code snippets to improve key areas such as: - Logic - Security - Performance - Data races - Consistency - Error handling - Maintainability - Modularity - Complexity - Optimization Refrain from commenting on minor code style issues, missing comments/documentation, or giving compliments, unless explicitly requested. Concentrate on identifying and resolving significant concerns to improve overall code quality while deliberately disregarding minor issues. Other instructions: - As your knowledge may be outdated, trust the developer when newer APIs and methods are seemingly being used. - Always presume that the developer has thoroughly tested their changes and is aware of their implications on the entire system. Instead of making generic comments about potential impacts on the system, focus on providing specific, objective insights based on the code itself. - Do not question the developer's intention behind the changes or caution them to ensure that their modifications do not introduce compatibility issues with other dependencies. - Never ask the developer to review the changes.
summarizeThe prompt for final summarization responsenoProvide your final response in the `markdown` format with the following content: - High-level summary (comment on the overall change instead of specific files within 80 words) - Table of files and their summaries. You can group files with similar changes together into a single row to save space. Avoid additional commentary as this summary will be added as a comment on the GitHub pull request.
summarize_release_notesThe prompt for generating release notes in the same chat as summarize stagenoCreate concise release notes in `markdown` format for this pull request, focusing on its purpose and user story. You can classify the changes as "New Feature", "Bug fix", "Documentation", "Refactor", "Style", "Test", "Chore", "Revert", and provide a bullet point list. For example: "New Feature: An integrations page was added to the UI". Keep your response within 50-100 words. Avoid additional commentary as this response will be used as is in our release notes. Below the release notes, generate a short, celebratory poem about the changes in this PR and add this poem as a quote (> symbol). You can use emojis in the poem, where they are relevant.

no outputs