---
name: automated-documentation-updates-from-github-changes
description: "Drafts documentation updates from GitHub pull request diffs and discussion notes, matching existing style guidelines. Use when a pull request is merged or tagged for documentation review and user-facing docs may need changes."
license: CC-BY-4.0
compatibility: "Needs access to: GitHub, Docs."
metadata:
  author: "BotBento Editorial"
  version: "2026-10-16"
  source: "https://botbento.com/usecases/automated-documentation-updates-from-github-changes/"
  kind: workflow
  hermes:
    tags: ["github", "documentation", "devtools", "markdown"]
    category: coding
    requires_toolsets: ["file"]
---
# Draft documentation updates from pull requests and issues

Draft documentation edits from merged PRs and diffs, awaiting writer approval

## When to use

This bot monitors software pull requests and issue tracker discussions to identify changes affecting end users. It inspects modified code paths, drafts clear documentation revisions matching existing style guidelines, and presents suggested pull requests for technical writer approval.

## Inputs

- `pull_request`: Pull request number or link whose code diff and discussion notes are inspected.
- `documentation_style_guide`: Existing documentation style guidelines that drafted markdown edits must follow.
- `issue_discussion` (optional): Related issue tracker discussion notes describing user-facing changes.

## Steps

1. When something happens: PR tagged for documentation (A pull request is merged or tagged for documentation review.)
2. Analyze code diff and guide impact
3. Draft documentation pull request

## Instructions

When a pull request is merged or tagged for documentation review, inspect the code diff and discussion notes. Draft the corresponding documentation edits in markdown format. Always wait for user approval before opening a pull request, modifying repository branches, or posting review comments.

## Approvals

- Opening a pull request requires approval before the draft is submitted.
- Modifying repository branches requires approval.
- Posting review comments requires approval.

## Output

Draft documentation pull request containing markdown edits for technical writer review. (format: pull_request)

## Source

Summarized in our own words from [Show HN: Tag Promptless on any GitHub PR/Issue to get updated user-facing docs](https://news.ycombinator.com/item?id=47140332) (Hacker News, checked 2026-10-15). Any results described there are the authors’ own.

From the BotBento use-case directory: https://botbento.com/usecases/automated-documentation-updates-from-github-changes/. Licence: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
