Skip to content

Add agentic workflow daily-doc-updater#210

Merged
abhimehro merged 1 commit intomainfrom
add-workflow-.github-workflows-daily-doc-updater.md-9402
Feb 13, 2026
Merged

Add agentic workflow daily-doc-updater#210
abhimehro merged 1 commit intomainfrom
add-workflow-.github-workflows-daily-doc-updater.md-9402

Conversation

@abhimehro
Copy link
Owner

Add agentic workflow daily-doc-updater

Copilot AI review requested due to automatic review settings February 13, 2026 18:56
@abhimehro abhimehro merged commit ca46a4c into main Feb 13, 2026
0 of 2 checks passed
@trunk-io
Copy link

trunk-io bot commented Feb 13, 2026

Merging to main in this repository is managed by Trunk.

  • To merge this pull request, check the box to the left or comment /trunk merge below.

@abhimehro abhimehro deleted the add-workflow-.github-workflows-daily-doc-updater.md-9402 branch February 13, 2026 18:56
@gemini-code-assist
Copy link

Note

Gemini is unable to generate a summary for this pull request due to the file types involved not being currently supported.

@github-actions
Copy link

👋 Development Partner is reviewing this PR. Will provide feedback shortly.

Copy link

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 gh-aw “agentic workflow” intended to scan recent merged PRs/commits and propose documentation updates via an automated (safe-outputs) pull request.

Changes:

  • Adds the daily-doc-updater workflow source definition (.md) with the agent prompt/instructions and tool allowlist.
  • Adds the auto-generated compiled workflow (.lock.yml) produced by gh aw compile.

Reviewed changes

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

File Description
.github/workflows/daily-doc-updater.md Defines the daily documentation-updater agent workflow configuration, tool allowlist, and operating instructions.
.github/workflows/daily-doc-updater.lock.yml Generated GitHub Actions workflow compiled from the source .md (execution plumbing for gh-aw + safe-outputs).

Comment on lines +30 to +31
draft: false
auto-merge: true
Copy link

Copilot AI Feb 13, 2026

Choose a reason for hiding this comment

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

safe-outputs.create-pull-request is configured with draft: false and auto-merge: true. In this repo’s other agentic workflows, generated PRs are created as drafts (no auto-merge), which provides a safety gate for human review before merging automation output. Unless there’s a specific reason to bypass review here, consider switching back to draft PRs and disabling auto-merge to match the existing workflow pattern.

Suggested change
draft: false
auto-merge: true
draft: true
auto-merge: false

Copilot uses AI. Check for mistakes.
on:
schedule:
# Every day at 6am UTC
- cron: daily
Copy link

Copilot AI Feb 13, 2026

Choose a reason for hiding this comment

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

The schedule configuration is inconsistent/misleading: the comment says "Every day at 6am UTC" but the workflow uses the gh-aw friendly value cron: daily (which compiles to a scattered daily cron time). Either set an explicit cron for 06:00 UTC, or change this to the repo’s existing on: { schedule: daily } pattern and update/remove the 6am comment so it matches reality.

Suggested change
- cron: daily
- cron: '0 6 * * *'

Copilot uses AI. Check for mistakes.
Comment on lines +39 to +42
- "find docs -name '*.md' -o -name '*.mdx'"
- "find docs -maxdepth 1 -ls"
- "find docs -name '*.md' -exec cat {} +"
- "grep -r '*' docs"
Copy link

Copilot AI Feb 13, 2026

Choose a reason for hiding this comment

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

The bash allowlist includes grep -r '*' docs, which is not a valid grep pattern (* is an invalid regex on its own) and will fail if run. Also, this repository currently has no top-level docs/ directory, so all of the find docs ... commands will error as written. Consider either updating the workflow to target the repo’s actual documentation locations (e.g., README.md / SECURITY.md / WARP.md) or guard these commands with a test -d docs check and use a valid grep pattern (e.g., search for \* literally or use a real term).

Suggested change
- "find docs -name '*.md' -o -name '*.mdx'"
- "find docs -maxdepth 1 -ls"
- "find docs -name '*.md' -exec cat {} +"
- "grep -r '*' docs"
- "test -d docs && find docs -name '*.md' -o -name '*.mdx' || true"
- "test -d docs && find docs -maxdepth 1 -ls || true"
- "test -d docs && find docs -name '*.md' -exec cat {} + || true"
- "test -d docs && grep -R '\\*' docs || true"

Copilot uses AI. Check for mistakes.

```bash
# Load the documentation instructions
cat .github/instructions/documentation.instructions.md
Copy link

Copilot AI Feb 13, 2026

Choose a reason for hiding this comment

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

This workflow instructs the agent to cat .github/instructions/documentation.instructions.md, but .github/instructions/ does not exist in this repository. As-is, the agent will hit a hard failure or waste time on missing guidance. Point this to an existing instructions file in the repo (or add the referenced file) and ensure the path is correct.

Suggested change
cat .github/instructions/documentation.instructions.md
cat .github/shared-instructions.md

Copilot uses AI. Check for mistakes.
Comment on lines +104 to +127
### 4. Identify Documentation Gaps

Review the documentation in the `docs/src/content/docs/` directory:

- Check if new features are already documented
- Identify which documentation files need updates
- Determine the appropriate documentation type (tutorial, how-to, reference, explanation)
- Find the best location for new content

Use bash commands to explore documentation structure:

```bash
find docs/src/content/docs -name '*.md' -o -name '*.mdx'
```

### 5. Update Documentation

For each missing or incomplete feature documentation:

1. **Determine the correct file** based on the feature type:
- CLI commands → `docs/src/content/docs/setup/cli.md`
- Workflow reference → `docs/src/content/docs/reference/`
- How-to guides → `docs/src/content/docs/guides/`
- Samples → `docs/src/content/docs/samples/`
Copy link

Copilot AI Feb 13, 2026

Choose a reason for hiding this comment

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

The workflow’s documentation targets (e.g., docs/src/content/docs/, docs/src/content/docs/setup/cli.md, etc.) don’t exist in this repository, so the agent won’t be able to follow these steps or will create a bunch of new structure unexpectedly. Update these paths to match the repo’s actual documentation layout, or change the instructions to explicitly state what files should be considered the canonical docs for this project.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants