Skip to content

[q] fix: use subdirectory pattern for function-namer cache-memory #28478

Closed as not planned

Description

@github-actions

Fixes the cache-memory file path in daily-function-namer.md to follow the established subdirectory convention used across other workflows.

Change

Before After
cache-memory/function-namer-state.json cache-memory/function-namer/state.json

Also adds mkdir -p before writing, since the subdirectory may not exist yet.

Why

Most workflows use cache-memory/<workflow-name>/ as a namespace (e.g., cache-memory/ci-coach/last-analysis.json, cache-memory/cache-strategy/runs.json). The flat function-namer-state.json was inconsistent with this pattern.

Triggered by: #28431 (comment)


Warning

Protected Files — Push Permission Denied

This was originally intended as a pull request, but the patch modifies protected files. A human must create the pull request manually.

Protected files

The push was rejected because GitHub Actions does not have workflows permission to push these changes, and is never allowed to make such changes, or other authorization being used does not have this permission.

Create the pull request manually
# Download the patch from the workflow run
gh run download 24934393876 -n agent -D /tmp/agent-24934393876

# Create a new branch
git checkout -b q/function-namer-cache-naming-cb419c6b79f715ab main

# Apply the patch (--3way handles cross-repo patches)
git am --3way /tmp/agent-24934393876/aw-q-function-namer-cache-naming.patch

# Push the branch and create the pull request
git push origin q/function-namer-cache-naming-cb419c6b79f715ab
gh pr create --title '[q] fix: use subdirectory pattern for function-namer cache-memory' --base main --head q/function-namer-cache-naming-cb419c6b79f715ab --repo github/gh-aw

🎩 Equipped by Q · ● 791.1K · ◷

  • expires on Apr 27, 2026, 3:43 PM UTC

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions