Skip to content

[docs] Update documentation for features from 2026-03-10#20306

Merged
pelikhan merged 1 commit intomainfrom
docs/update-2026-03-10-a94717bd3f95a15c
Mar 10, 2026
Merged

[docs] Update documentation for features from 2026-03-10#20306
pelikhan merged 1 commit intomainfrom
docs/update-2026-03-10-a94717bd3f95a15c

Conversation

@github-actions
Copy link
Contributor

Documentation Updates - 2026-03-10

This PR updates the documentation based on features merged in the last 24 hours.

Features Documented

Changes Made

  • Updated docs/src/content/docs/setup/cli.md:
    • gh aw run --json / -j: documents new JSON output flag that emits a JSON array of triggered workflow results to stdout
    • gh aw audit --repo / -r: documents new flag for specifying owner/repo when passing a bare numeric run ID
    • gh aw new --engine / -e: documents new flag to inject engine: into the generated frontmatter template
    • gh aw list --dir / -d: documents new flag for overriding the local workflow directory (consistent with validate, fix, add)
  • Updated docs/src/content/docs/reference/safe-outputs.md:
    • Added new Failure Issue Reporting (report-failure-as-issue:) section under Global Configuration Options
    • Documents report-failure-as-issue: false to suppress automatic failure issue creation per workflow (defaults to true)

Merged PRs Referenced

Not Requiring Documentation

Generated by Daily Documentation Updater ·

  • expires on Mar 11, 2026, 4:22 AM UTC

Document new CLI flags added in #20272 (run --json, audit --repo, new
--engine, list --dir) and the report-failure-as-issue safe-outputs option
from #20266.

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 10, 2026
@pelikhan pelikhan marked this pull request as ready for review March 10, 2026 04:46
Copilot AI review requested due to automatic review settings March 10, 2026 04:46
@pelikhan pelikhan merged commit 056e342 into main Mar 10, 2026
1 check passed
@pelikhan pelikhan deleted the docs/update-2026-03-10-a94717bd3f95a15c branch March 10, 2026 04:47
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

Updates user-facing documentation to reflect newly merged CLI flags and a new safe-outputs configuration option.

Changes:

  • Documents gh aw new --engine/-e and shows how it injects engine: into generated frontmatter.
  • Documents gh aw run --json/-j, gh aw list --dir/-d, and gh aw audit --repo/-r.
  • Adds safe-outputs.report-failure-as-issue documentation under global safe-outputs configuration options.

Reviewed changes

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

File Description
docs/src/content/docs/setup/cli.md Adds/extends CLI command examples and option notes for new flags (run --json, audit --repo, new --engine, list --dir).
docs/src/content/docs/reference/safe-outputs.md Documents new global safe-outputs option report-failure-as-issue and its intended behavior.

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

You can also share your feedback on Copilot code review. Take the survey.

create-issue:
```

This mirrors the `noop.report-as-issue` pattern. Use this to silence noisy failure reports for workflows where failures are expected or handled externally.
Copy link

Copilot AI Mar 10, 2026

Choose a reason for hiding this comment

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

This section references the noop.report-as-issue pattern, but the earlier “No-Op Logging (noop:)” section doesn’t document report-as-issue, so readers won’t know what that comparison means. Either add a short explanation/link to the noop option, or rephrase without relying on an undocumented setting.

Copilot uses AI. Check for mistakes.
Comment on lines +139 to +145
```yaml wrap
---
permissions:
contents: read
engine: claude
network: defaults
...
Copy link

Copilot AI Mar 10, 2026

Choose a reason for hiding this comment

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

In this frontmatter example, the closing line uses ..., which is a YAML document end marker but not the standard Markdown frontmatter delimiter. For consistency with other workflow examples (which use --- to close frontmatter), consider replacing ... with --- or using a comment (e.g., # ...) to indicate omitted fields so readers don't copy an invalid frontmatter block.

Copilot uses AI. Check for mistakes.
Comment on lines +295 to +297
**Options:** `--json`, `--label`, `--dir/-d`

The `--dir` flag overrides the local workflow directory. It applies only when `--repo` is not set, consistent with other commands such as `validate`, `fix`, and `add`.
Copy link

Copilot AI Mar 10, 2026

Choose a reason for hiding this comment

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

The list command supports remote listing via --repo/-r and --path (see pkg/cli/list_workflows_command.go:41-76), but this section’s options list omits those flags while the text references --repo. Consider adding --repo/-r (and --path) to the documented options/examples so readers can actually use --dir vs --path correctly for local vs remote repos.

Copilot uses AI. Check for mistakes.

**Options:** `--parse`, `--json`, `--repo/-r`

The `--repo` flag accepts `owner/repo` format and is required when passing a bare numeric run ID without a full URL, allowing the command to locate the correct repository.
Copy link

Copilot AI Mar 10, 2026

Choose a reason for hiding this comment

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

This paragraph says --repo is required when passing a bare numeric run ID, but audit can resolve {owner}/{repo} from the current repo context when owner/repo aren’t provided (see fetchWorkflowRunMetadata in pkg/cli/audit.go:614-620). Suggest rewording to clarify that --repo is only needed when auditing a run outside the current repository context (or when the run ID alone is ambiguous).

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