Skip to content

Documentation updater#79

Merged
JoeStech merged 3 commits intomainfrom
documentation-updater
Apr 29, 2026
Merged

Documentation updater#79
JoeStech merged 3 commits intomainfrom
documentation-updater

Conversation

@JoeStech
Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings April 29, 2026 22:47
@JoeStech JoeStech merged commit c958bbf into main Apr 29, 2026
4 checks passed
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a new “documentation updater” CLI utility to generate a documentation update plan (and optionally Codex-ready prompt snippets) from a canonical change message, while aligning MCP setup docs to always pull the latest Docker image.

Changes:

  • Add documentation-updater/documentation_updater.py to generate a markdown report of local + external documentation update targets, with optional OpenAI/Codex prompt generation.
  • Add documentation for the tool under documentation-updater/README.md.
  • Update MCP client configuration docs to include docker run --pull=always and refresh install instructions formatting.

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
documentation-updater/documentation_updater.py New CLI script that writes a documentation update plan and optionally generates prompt snippets via OpenAI.
documentation-updater/README.md Usage + requirements for the new documentation updater tool.
agent-integrations/agent-install-instructions.md Refresh Docker command/config examples (including --pull=always) and clarify optional SSH mounts.
README.md Add --pull=always to multiple MCP client configuration examples.
.gitignore Ignore documentation updater output directories (reports/workdir).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +292 to +296
lines.append("## Canonical Input")
lines.append("")
lines.append("- Source: `-m/--message` argument")
lines.append(f"- Change message: {change_message}")
lines.append("")
Copy link

Copilot AI Apr 29, 2026

Choose a reason for hiding this comment

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

change_message is interpolated directly into a single markdown list item (- Change message: ...). If the message contains newlines or markdown fence characters, it will break the report structure (and could accidentally inject additional sections). Consider rendering the message as a fenced code block or blockquote and normalizing/escaping newlines before writing it.

Copilot uses AI. Check for mistakes.
Comment on lines +150 to +163
def detect_base_url() -> Optional[str]:
for env_name in (
"OPENAI_API_PROXY_URL",
"OPENAI_API_PROXY",
"DOC_UPDATER_OPENAI_BASE_URL",
"OPENAI_BASE_URL",
"OPENAI_API_BASE",
):
value = __import__("os").getenv(env_name)
if value:
value = value.rstrip("/")
if value.endswith("/models"):
value = value[: -len("/models")]
return value
Copy link

Copilot AI Apr 29, 2026

Choose a reason for hiding this comment

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

detect_base_url() uses __import__("os").getenv(...) even though os is already imported elsewhere. This is harder to read and makes static analysis/linting more difficult; prefer a normal import os at module scope (or inside the function) and call os.getenv(...).

Copilot uses AI. Check for mistakes.
Optional Codex prompt generation requires:

- `OPENAI_API_KEY`
- OpenAI base URL env `OPENAI_API_PROXY_URL`
Copy link

Copilot AI Apr 29, 2026

Choose a reason for hiding this comment

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

The README lists only OPENAI_API_PROXY_URL as the base URL env var, but detect_base_url() also accepts OPENAI_API_PROXY, DOC_UPDATER_OPENAI_BASE_URL, OPENAI_BASE_URL, and OPENAI_API_BASE. Please update the documented requirements so users know all supported configuration options (or narrow the code to the single documented variable).

Suggested change
- OpenAI base URL env `OPENAI_API_PROXY_URL`
- an OpenAI base URL environment variable, using any supported name:
- `OPENAI_API_PROXY_URL`
- `OPENAI_API_PROXY`
- `DOC_UPDATER_OPENAI_BASE_URL`
- `OPENAI_BASE_URL`
- `OPENAI_API_BASE`

Copilot uses AI. Check for mistakes.
Comment on lines +25 to +29
"-v",
"/path/to/your/workspace:/workspace",
"-v",
"/path/to/your/ssh/private_key:/run/keys/ssh-key.pem:ro",
"-v",
Copy link

Copilot AI Apr 29, 2026

Choose a reason for hiding this comment

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

The text says the SSH-related -v mounts are optional and only needed for Arm Performix, but the default JSON/TOML snippets include those mounts. This makes copy/paste setups for non-Performix users noisier and increases the chance of path errors. Consider providing a minimal default snippet (workspace mount only) and a clearly-labeled optional block for the Performix SSH mounts.

Copilot uses AI. Check for mistakes.
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