pelikhan/action-continuous-comments

Generates and updates code comments using an AST/LLM hybrid approach. It uses ast-grep to look for undocumented and documented functions, classes, interfaces, and other entities in the codebase, then uses a combination of LLM, and LLM-as-a-judge to generate and validate the documentation. You should pretify your code before and after running this script to normalize the formatting.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
modelThe LLM model to use for generation.no
instructionsAdditional prompting instructions for the LLM.no
dry_runIf true, the script will not modify files.nofalse
mockIf true, the script will mock LLM results.nofalse
judgeIf true, the script will judge the generated docs.nofalse
update_existingUpdate existing docs.nofalse
max_editsMaximum number of new or updated comments total.no50
kindsThe kinds of entities to target for documentation generation. This is a comma-separated list of entity types, e.g. "module,type,function,property,variable". If not specified, all entities will be targeted. Valid values: module,type,function,property,variablenomodule,type,function,property
exports_onlyIf true, only generate docs for exported entities.nofalse
max_contextMaximum number of tokens to build content of requests.no6000
filesFiles to process, separated by semi columns (;). .ts,.mts,.tsx,.mtsx,.cts,.py,.cs,.java,.h,.c,.rs,.cpp,.hpp,.cc,.cxx,.gono
debugEnable debug logging (https://microsoft.github.io/genaiscript/reference/scripts/logging/).no
model_aliasA YAML-like list of model aliases and model id: `translation: github:openai/gpt-4o`no
openai_api_keyOpenAI API keyno
openai_api_baseOpenAI API base URLno
azure_openai_api_endpointAzure OpenAI endpoint. In the Azure Portal, open your Azure OpenAI resource, Keys and Endpoints, copy Endpoint.no
azure_openai_api_keyAzure OpenAI API key. **You do NOT need this if you are using Microsoft Entra ID.no
azure_openai_subscription_idAzure OpenAI subscription ID to list available deployments (Microsoft Entra only).no
azure_openai_api_versionAzure OpenAI API version.no
azure_openai_api_credentialsAzure OpenAI API credentials type. Leave as 'default' unless you have a special Azure setup.no
azure_ai_inference_api_keyAzure AI Inference keyno
azure_ai_inference_api_endpointAzure Serverless OpenAI endpointno
azure_ai_inference_api_versionAzure Serverless OpenAI API versionno
azure_ai_inference_api_credentialsAzure Serverless OpenAI API credentials typeno
github_tokenGitHub token with `models: read` permission at least (https://microsoft.github.io/genaiscript/reference/github-actions/#github-models-permissions).no
namedescription
textThe generated text output.