docs: Add documentation for SourceAnt by Lantum-Brendan · Pull Request #67 · sourceant/sourceant · GitHub
Skip to content

docs: Add documentation for SourceAnt#67

Open
Lantum-Brendan wants to merge 12 commits into
sourceant:mainfrom
Lantum-Brendan:docs/create-docs
Open

docs: Add documentation for SourceAnt#67
Lantum-Brendan wants to merge 12 commits into
sourceant:mainfrom
Lantum-Brendan:docs/create-docs

Conversation

@Lantum-Brendan

Copy link
Copy Markdown

Add docs.json manifest and 5 markdown files covering quick start, configuration, GitHub App setup, repo management, and deployment.

@sourceant

sourceant Bot commented Jun 25, 2026

Copy link
Copy Markdown

@sourceant sourceant Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review complete. See the overview comment for a summary.

Comment thread docs/github-app.md
```env
GITHUB_APP_ID=123456
GITHUB_APP_PRIVATE_KEY_PATH=/path/to/private-key.pem
GITHUB_SECRET=your_webhook_secret

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a naming inconsistency between step 1 and step 4. In step 1, you refer to GITHUB_SECRET, but in the environment block in step 4, you use GITHUB_WEBHOOK_SECRET (implicitly, though it shows GITHUB_SECRET again). In configuration.md, the variable is named GITHUB_WEBHOOK_SECRET. This should be consistent to avoid configuration errors.

Suggested change
GITHUB_SECRET=your_webhook_secret
GITHUB_WEBHOOK_SECRET=your_webhook_secret

Comment thread docs/quick-start.md Outdated
Install Python dependencies:

```bash
docker compose exec app pip install -r requirements.txt

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typically, production-ready Docker images already have dependencies installed. Running pip install inside a running container via exec is an anti-pattern for Docker usage and will lose changes if the container is recreated. If the image is meant for development, this should be part of the Dockerfile or a volume mount.

Suggested change
docker compose exec app pip install -r requirements.txt
# Dependencies are pre-installed in the Docker image.
# If adding new ones locally:
docker compose build

@nfebe nfebe left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The documentation is heavily focused on development configuration instead of "use configuration" (not a thing but should be clear)

Comment thread docs/deployment.md Outdated

### Docker Compose

The recommended deployment method uses Docker Compose. The compose file includes the API server, a Redis queue, and a PostgreSQL database.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The recommended deployment strategy is via containerization not Docker compose so enhance this to be around containers/images.

@sourceant sourceant Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review complete. See the overview comment for a summary.

Comment thread docs/configuration.md Outdated
GITHUB_WEBHOOK_SECRET=your_webhook_secret
GITHUB_APP_ID=your_github_app_id
GITHUB_APP_PRIVATE_KEY_PATH=/path/to/private-key.pem
GITHUB_SECRET=your_github_secret

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The variable GITHUB_SECRET is used here, but in the GitHub App setup and other sections it refers to the Webhook Secret. To avoid confusion with the GitHub OAuth App Secret or other tokens, it is better to use GITHUB_WEBHOOK_SECRET consistently as established in the review of github-app.md.

Suggested change
GITHUB_SECRET=your_github_secret
GITHUB_WEBHOOK_SECRET=your_github_webhook_secret

Comment thread docs/github-app.md
1. Go to your repository **Settings > Webhooks > Add webhook**.
2. **Payload URL:** Your server's `/webhook` endpoint.
3. **Content type:** `application/json`.
4. **Secret:** Your `GITHUB_SECRET`.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The GitHub App documentation mentions using GITHUB_SECRET for the webhook secret, but the configuration guide and the code (implied by LiteLLM/FastAPI patterns) usually prefer GITHUB_WEBHOOK_SECRET. For consistency with the fix in configuration.md, update this reference.

Suggested change
4. **Secret:** Your `GITHUB_SECRET`.
4. Secret: Your `GITHUB_WEBHOOK_SECRET`.

@sourceant sourceant Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review complete. See the overview comment for a summary.

Comment thread docs/configuration.md Outdated
Comment on lines +28 to +29
GITHUB_APP_PRIVATE_KEY_PATH=/path/to/private-key.pem
GITHUB_SECRET=your_github_secret

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In Step 1 of github-app.md, the variable is referred to as GITHUB_SECRET. For consistency and to avoid confusion with the GITHUB_WEBHOOK_SECRET defined on line 26, it is better to ensure the nomenclature matches across files. Based on the usage in other files, this appears to be the GitHub Client Secret.

Suggested change
GITHUB_APP_PRIVATE_KEY_PATH=/path/to/private-key.pem
GITHUB_SECRET=your_github_secret
GITHUB_CLIENT_SECRET=your_github_client_secret

Comment thread docs/quick-start.md

### Next Steps

- Read [Usage](usage.md) to understand the review workflow.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The documentation points to usage.md, but that file is not included in the docs.json manifest nor provided in this PR. This will result in a 404/broken link in the documentation site.

Suggested change
- Read [Usage](usage.md) to understand the review workflow.
- Read [Quick Start](quick-start.md) to understand the review workflow.

@sourceant sourceant Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review complete. See the overview comment for a summary.

Comment thread docs/configuration.md
```env
GITHUB_APP_ID=your_github_app_id
GITHUB_APP_PRIVATE_KEY_PATH=/path/to/private-key.pem
GITHUB_SECRET=your_webhook_secret

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consistency: As noted in the GitHub App setup guide review, use GITHUB_WEBHOOK_SECRET instead of GITHUB_SECRET to align with the rest of the application's environment variable naming.

Suggested change
GITHUB_SECRET=your_webhook_secret
GITHUB_WEBHOOK_SECRET=your_webhook_secret

Comment thread docs/quick-start.md

### Next Steps

- Read [Usage](usage.md) to understand the review workflow.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dead link: The 'usage.md' file is mentioned in the sidebar or text but is not present in the current documentation manifest or file list. This will result in a 404 error.

Suggested change
- Read [Usage](usage.md) to understand the review workflow.
- Read [Configuration](configuration.md) to understand the review workflow.

Comment thread docs/github-app.md
If you are not using the GitHub App flow, you can configure a webhook directly on a repository:

1. Go to your repository **Settings > Webhooks > Add webhook**.
2. **Payload URL:** Your server's `/webhook` endpoint.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The path /webhook contradicts the setup instructions in step 1 which suggested /api/github/webhooks. It's better to keep the endpoint path consistent throughout the guide to avoid user confusion.

Suggested change

@sourceant sourceant Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review complete. No specific code suggestions were generated. See the overview comment for a summary.

@Lantum-Brendan Lantum-Brendan requested a review from nfebe July 1, 2026 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants