Skip to content

Docs: Correct #runtime-import default path base from .github to .github/workflows #79317

Done

Description

@ckittel

Summary

The runtime imports documentation describes unprefixed paths as relative to .github:

All file paths resolve within .github, with or without the .github/ prefix.

However, the implementation seems to resolve unprefixed paths relative to .github/workflows. Please update the documentation to describe the existing behavior.

Version

gh-aw v1.2.2. The same wording appears in the v1.2.2 documentation.

Example

Given this repository layout:

.github/
  workflows/
    example.md
    shared/
      instructions.md

The documented .github-relative behavior suggests this should work:

{{#runtime-import workflows/shared/instructions.md}}

Instead, it resolves to:

.github/workflows/workflows/shared/instructions.md

This causes activation to fail during Interpolate variables and render templates with a Runtime import file not found error.

Either of these forms targets the intended file:

{{#runtime-import shared/instructions.md}}
{{#runtime-import .github/workflows/shared/instructions.md}}

Implementation

The v1.2.2 resolver explicitly prepends workflows/ when a path has neither a .github/ nor an .agents/ prefix.

Consequently, the documentation’s example claiming these forms are equivalent is incorrect:

{{#runtime-import coding-standards.md}}
{{#runtime-import .github/coding-standards.md}}

The first resolves to .github/workflows/coding-standards.md; the second resolves to .github/coding-standards.md.

Requested documentation changes

  1. Explain that unprefixed paths resolve relative to .github/workflows, rather than .github.
  2. Correct the equivalence example to use .github/workflows/coding-standards.md.

This request is for documentation alignment, without changing existing path-resolution behavior to preserve backwards compat.

Activity

  1. locked and limited conversation to collaborators on Nov 19, 2026
  2. unlocked this conversation on Nov 19, 2026
  3. changed the title [-]Docs: Correct #runtime-import default path base from .github to .github/workflows[/-] [+]Docs: Correct `#runtime-import` default path base from `.github` to `.github/workflows`[/+] on Nov 19, 2026
  4. added
    backlog:docs
    on Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

ai-inspectedbacklog:docs

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions