Skip to content

max-patch-size under tools.repo-memory rejected by compiler but documented as valid #20308

Closed

Description

@G1Vh

Description

The compiler rejects max-patch-size as an unknown property under tools.repo-memory,
but the documentation at https://github.github.com/gh-aw/reference/repo-memory/#advanced-configuration
explicitly lists it as a valid field with an example.

Steps to Reproduce

Add max-patch-size under tools.repo-memory in a workflow frontmatter:

tools:
  repo-memory:
    max-file-size: 1048576
    max-patch-size: 1048576

Run gh aw compile.

Error

error: at '/tools/repo-memory' (line 62, column 5): Unknown property: max-patch-size.
Valid fields are: allowed-extensions, branch-name, branch-prefix, create-orphan,
description, file-glob, max-file-count, max-file-size, target-repo, wiki.
'max-patch-size' belongs under 'safe-outputs'

Expected Behavior

Compilation succeeds. According to the documentation, max-patch-size is a valid
field under tools.repo-memory that limits the total size of changes in a single push.

Environment

  • gh-aw compiler version: v0.57.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions