To use the Upstream Documentation Enhancer, follow these steps:
-
Add the Enhancer to Your Repository
Copy the files from theupstream-docs-enhancer
repository into your code repository. -
Set Up GitHub Actions Secrets
In your code repository, configure the following secrets:DOCS_REPO_URL
: URL of your upstream documentation repositoryGEMINI_API_KEY
: Your Gemini API keyGH_PAT
: Your GitHub Personal Access Token
-
Trigger the Pipeline
Once set up, the enhancer will automatically run when someone comments[update-docs]
on a Pull Request (PR). The enhancer will:- Analyze the changes
- Generate documentation suggestions
- Open a new PR in your upstream documentation repository with the proposed updates