Skip to content

[docs] Self-healing documentation fixes from issue analysis - 2026-03-20#22020

Merged
pelikhan merged 2 commits intomainfrom
doc-healer/target-repo-wildcard-2026-03-20-6ca92462f66b65b6
Mar 20, 2026
Merged

[docs] Self-healing documentation fixes from issue analysis - 2026-03-20#22020
pelikhan merged 2 commits intomainfrom
doc-healer/target-repo-wildcard-2026-03-20-6ca92462f66b65b6

Conversation

@github-actions
Copy link
Contributor

Self-Healing Documentation Fixes

This PR was automatically created by the Daily Documentation Healer workflow.

Gaps Fixed

  • Code change fix: allow wildcard target-repo: "*" in safe-output handlers #21877 ("fix: allow wildcard target-repo: \"*\" in safe-output handlers") — documented the target-repo: "*" wildcard feature that allows agents to dynamically target any repository at runtime. Added to both cross-repository.md (new subsection with example and caution callout) and safe-outputs.md (updated Cross-Repository Operations overview).

Root Cause

DDUw scans merged PRs and commits for new features but focuses on user-facing behaviors described in PR titles and bodies. The commit #21877 was a bug-fix commit — its title ("fix: allow wildcard…") signaled a correction to existing behavior, not a new feature addition. DDUw's heuristics for bug-fix commits tend to treat them as internal corrections that don't require documentation updates, so this cross-repository feature addition was skipped.

💡 DDUw Improvement Suggestions

DDUw Improvement Suggestions

Step 2 (Analyze Changes) should include a check for commits whose messages reference frontmatter fields or safe-output configuration options. Even when the commit prefix is fix:, changes to parser logic or schema handling for fields like target-repo may surface new documented behavior (e.g., newly-allowed values). A heuristic to flag fix-commits that touch pkg/workflow/safe_outputs_*.go or pkg/parser/schemas/*.json for a documentation cross-check would help catch these cases.

Specifically, add to the analysis step:

If a commit touches safe-output handler code (pkg/workflow/) or the schema (pkg/parser/schemas/), check whether the change enables or restricts values for any configuration field. If so, verify the documentation reflects the current allowed values.

Related Issues

References:

Note

🔒 Integrity filtering filtered 4 items

Integrity filtering activated and filtered the following items during workflow execution.
This happens when a tool call accesses a resource that does not meet the required integrity or secrecy level of the workflow.

Generated by Daily Documentation Healer ·

  • expires on Mar 23, 2026, 7:27 PM UTC

Add documentation for `target-repo: "*"` wildcard that allows agents
to dynamically target any repository at runtime. List the five safe-output
types that do not support it.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions github-actions bot added automation documentation Improvements or additions to documentation labels Mar 20, 2026
@pelikhan pelikhan marked this pull request as ready for review March 20, 2026 20:02
Copilot AI review requested due to automatic review settings March 20, 2026 20:02
@pelikhan pelikhan merged commit d9b5d00 into main Mar 20, 2026
@pelikhan pelikhan deleted the doc-healer/target-repo-wildcard-2026-03-20-6ca92462f66b65b6 branch March 20, 2026 20:02
Copy link
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

Documentation update to reflect the newly-supported target-repo: "*" wildcard behavior for cross-repository safe-output handlers, including usage guidance and limitations.

Changes:

  • Updated the Safe Outputs reference to describe target-repo: "*" wildcard usage and clarify allowed-repos behavior.
  • Added a new “Wildcard Target Repository” subsection to the Cross-Repository Operations reference with an example and caution callout.

Reviewed changes

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

File Description
docs/src/content/docs/reference/safe-outputs.md Updates cross-repo overview to document target-repo: "*" wildcard and notes unsupported types.
docs/src/content/docs/reference/cross-repository.md Adds a dedicated wildcard section and guidance for runtime repo selection.

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

- **`allowed-repos`**: Allow the agent to dynamically choose from an allowlist of repositories (supports glob patterns, e.g. `org/*`).

See [Cross-Repository Operations](/gh-aw/reference/cross-repository/) technical details.
Using `target-repo: "*"` enables fully dynamic routing — the agent provides the `repo` field in each tool call. Note that `create-pull-request-review-comment`, `reply-to-pull-request-review-comment`, `submit-pull-request-review`, `create-agent-session`, and `manage-project-items` do not support the wildcard; use an explicit repository or `allowed-repos` for those types.
Copy link

Copilot AI Mar 20, 2026

Choose a reason for hiding this comment

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

manage-project-items appears to be an invalid/nonexistent safe-output type name in this repo (no other references in code or docs). This makes the wildcard support guidance misleading. Consider replacing it with update-project (which explicitly disallows target-repo: "*" in the Update Project section) or removing it if it’s not a safe output type.

Suggested change
Using `target-repo: "*"` enables fully dynamic routing — the agent provides the `repo` field in each tool call. Note that `create-pull-request-review-comment`, `reply-to-pull-request-review-comment`, `submit-pull-request-review`, `create-agent-session`, and `manage-project-items` do not support the wildcard; use an explicit repository or `allowed-repos` for those types.
Using `target-repo: "*"` enables fully dynamic routing — the agent provides the `repo` field in each tool call. Note that `create-pull-request-review-comment`, `reply-to-pull-request-review-comment`, `submit-pull-request-review`, `create-agent-session`, and `update-project` do not support the wildcard; use an explicit repository or `allowed-repos` for those types.

Copilot uses AI. Check for mistakes.
Use this when the target repository is not known at workflow authoring time — for example, when building a workflow that routes issues to different repositories based on labels or content.

:::caution
The following safe-output types do **not** support `target-repo: "*"`: `create-pull-request-review-comment`, `reply-to-pull-request-review-comment`, `submit-pull-request-review`, `create-agent-session`, and `manage-project-items`. Use an explicit `owner/repo` value or `allowed-repos` for these types.
Copy link

Copilot AI Mar 20, 2026

Choose a reason for hiding this comment

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

manage-project-items is referenced here as a safe-output type that doesn’t support target-repo: "*", but it doesn’t appear to exist anywhere else in the repository (no code/docs/schema matches). This likely should refer to an actual safe output type that rejects wildcards (e.g., update-project uses wildcard-disallowing parsing) or the item should be removed to avoid documenting a non-existent feature.

Suggested change
The following safe-output types do **not** support `target-repo: "*"`: `create-pull-request-review-comment`, `reply-to-pull-request-review-comment`, `submit-pull-request-review`, `create-agent-session`, and `manage-project-items`. Use an explicit `owner/repo` value or `allowed-repos` for these types.
The following safe-output types do **not** support `target-repo: "*"`: `create-pull-request-review-comment`, `reply-to-pull-request-review-comment`, and `submit-pull-request-review`, and `create-agent-session`. Use an explicit `owner/repo` value or `allowed-repos` for these types.

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

automation documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants