Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
147 changes: 140 additions & 7 deletions .github/workflows/daily-architecture-diagram.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 32 additions & 0 deletions .github/workflows/daily-architecture-diagram.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
permissions:
contents: read
issues: read
pull-requests: read

engine: copilot

Expand All @@ -23,6 +24,10 @@ safe-outputs:
close-older-issues: true
expires: 7
max: 1
create-pull-request:
expires: 7
Comment on lines 25 to +28
Copy link

Copilot AI Mar 2, 2026

Choose a reason for hiding this comment

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

safe-outputs.create-pull-request.expires: 7 is being compiled into the lockfile as expires: 7 (hours) rather than 168 (7 days). Since integers are documented as “days” for expires, this likely makes the PR auto-expire after ~7 hours. Use an explicit duration like 7d (or otherwise adjust) so the compiled lockfile reflects a 7‑day expiration.

Suggested change
expires: 7
max: 1
create-pull-request:
expires: 7
expires: 7d
max: 1
create-pull-request:
expires: 7d

Copilot uses AI. Check for mistakes.
title-prefix: "[architecture] "
labels: [architecture, diagram, documentation]
noop:

imports:
Expand Down Expand Up @@ -176,3 +181,30 @@ A compact table of all packages with their layer and one-line description:
| cli | Core | Command implementations |
| workflow | Core | Workflow compilation engine |
| ... | ... | ... |

## Scratchpad File

After creating the issue, update `scratchpad/architecture.md` with the latest diagram via `create_pull_request`.

The file should contain:

````markdown
# Architecture Diagram

> Last updated: <YYYY-MM-DD> · Source: [Issue #<number>](<issue_url>)

## Overview

This diagram shows the package structure and dependencies of the `gh-aw` codebase.

```
<ASCII diagram>
```

## Package Reference

<package table>
````

- When the diagram **changes**: update `scratchpad/architecture.md` via `create_pull_request` with a PR titled `[architecture] Update architecture diagram - <date>`.
Copy link

Copilot AI Mar 2, 2026

Choose a reason for hiding this comment

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

The instructions say to title the PR [architecture] Update architecture diagram - <date>, but the create-pull-request safe-output already applies the [architecture] title prefix automatically. This can lead to a doubled prefix in the created PR title; update the guidance to provide the title without the prefix.

Suggested change
- When the diagram **changes**: update `scratchpad/architecture.md` via `create_pull_request` with a PR titled `[architecture] Update architecture diagram - <date>`.
- When the diagram **changes**: update `scratchpad/architecture.md` via `create_pull_request` with a PR titled `Update architecture diagram - <date>`.

Copilot uses AI. Check for mistakes.
- When the diagram is **unchanged** (noop path): skip the scratchpad update entirely.