Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
115 commits
Select commit Hold shift + click to select a range
294d961
chore(deps): bump gitpython from 3.1.49 to 3.1.50
dependabot[bot] May 9, 2026
61a6a75
Install Autoloop
mrjf May 11, 2026
7cd3f7c
Initial plan
Copilot May 11, 2026
1bca27a
Merge pull request #2 from githubnext/install-autoloop
mrjf May 11, 2026
713ce57
Initial plan
Copilot May 11, 2026
4e543da
Merge remote-tracking branch 'origin/main' into copilot/change-autolo…
Copilot May 11, 2026
4212c46
Set autoloop schedule to 30 minutes
Copilot May 11, 2026
f4804bf
Fix agentic workflow CI failures
Copilot May 11, 2026
8407338
Add agentic workflow recompilation instruction
mrjf May 11, 2026
4e5d009
Merge pull request #8 from githubnext/add-recompile-instruction
mrjf May 11, 2026
5025124
Initial plan
Copilot May 11, 2026
8a4e023
Merge main into PR branch
Copilot May 11, 2026
e53f567
Refresh APM integration files
Copilot May 11, 2026
1168ea3
Merge pull request #10 from githubnext/copilot/rebase-and-recompile-i…
mrjf May 11, 2026
f6f5272
Merge pull request #5 from githubnext/copilot/change-autoloop-freq-30…
mrjf May 11, 2026
cdf68e5
chore(deps): bump urllib3 from 2.6.3 to 2.7.0
dependabot[bot] May 11, 2026
5ec9665
chore(deps): bump mermaid from 11.14.0 to 11.15.0 in /docs
dependabot[bot] May 11, 2026
80e3d08
Merge main and refresh autoloop lock
Copilot May 11, 2026
8b7688b
Merge pull request #1 from githubnext/dependabot/uv/gitpython-3.1.50
mrjf May 11, 2026
7089449
Merge pull request #7 from githubnext/copilot/investigate-fix-ci-errors
mrjf May 11, 2026
d02d49f
Merge pull request #12 from githubnext/dependabot/npm_and_yarn/docs/m…
mrjf May 12, 2026
6483245
Merge pull request #11 from githubnext/dependabot/uv/urllib3-2.7.0
mrjf May 12, 2026
2fb7b01
Recompile all lock files with gh-aw main
mrjf May 12, 2026
e17c175
Merge pull request #14 from githubnext/fix/recompile-gh-aw-main
mrjf May 12, 2026
393ab4e
Remove copilot-requests feature flag from autoloop
mrjf May 12, 2026
c212afe
Merge pull request #15 from githubnext/fix/remove-copilot-requests
mrjf May 12, 2026
b3a8cb4
[Autoloop: python-to-go-migration] Iteration 1: Initialize Go module …
github-actions[bot] May 12, 2026
4fea0e8
[Autoloop: python-to-go-migration] Iteration 2: migrate yaml_io, atom…
github-actions[bot] May 12, 2026
99e6ae1
[Autoloop: python-to-go-migration] Iteration 3: migrate utils/guards.…
github-actions[bot] May 12, 2026
9c40a5f
[Autoloop: python-to-go-migration] Iteration 4: Migrate subprocess_en…
github-actions[bot] May 12, 2026
1135e80
Revise README for experimental Go migration
mrjf May 12, 2026
83b323e
Initial plan
Copilot May 12, 2026
82ed3a5
Add autoloop migration progress site
Copilot May 12, 2026
32c6a13
Clarify progress timestamp format
Copilot May 12, 2026
3bca7fe
Generalize progress pages deploy trigger
Copilot May 12, 2026
b0cfea4
Merge pull request #21 from githubnext/copilot/create-pages-progress-…
mrjf May 13, 2026
79e701c
Initial plan
Copilot May 13, 2026
89fe442
Recover iteration 8 Go utility migrations
Copilot May 13, 2026
110a1a4
[Autoloop: python-to-go-migration] Iteration 13: Migrate 13 modules t…
github-actions[bot] May 13, 2026
2bd91c3
Merge pull request #24 from githubnext/copilot/recover-iteration-8-code
mrjf May 13, 2026
5fb2c7a
docs: update Go migration progress page to iteration 24
May 13, 2026
006a327
ci: trigger checks
github-actions[bot] May 13, 2026
b4474d7
Upgrade gh-aw to v0.74.1
mrjf May 13, 2026
56c6622
Merge pull request #27 from githubnext/fix/upgrade-gh-aw-v0.74.1
mrjf May 13, 2026
37d17e4
Merge pull request #26 from githubnext/autoloop-progress/go-migration…
mrjf May 13, 2026
05b6217
Merge main into autoloop/python-to-go-migration
Copilot May 13, 2026
fe50865
Finalize merge conflict resolution status
Copilot May 13, 2026
a78e47d
trigger CI
mrjf May 13, 2026
bb0f9db
Merge pull request #17 from githubnext/autoloop/python-to-go-migration
mrjf May 13, 2026
723d3ec
docs: update Go migration progress page for iter-24 / PR #17 merged
github-actions[bot] May 13, 2026
71c031e
ci: trigger checks
github-actions[bot] May 13, 2026
e4d1db8
Merge pull request #28 from githubnext/docs/autoloop-go-migration-upd…
mrjf May 13, 2026
3c79f93
[Autoloop: python-to-go-migration] Iteration 25: Migrate 35 modules t…
github-actions[bot] May 13, 2026
5bc4bab
ci: trigger checks
github-actions[bot] May 13, 2026
a2f904d
Initial plan
Copilot May 13, 2026
65e1d58
Disable normal docs publication
Copilot May 13, 2026
49b9f13
Merge pull request #31 from githubnext/copilot/disable-normal-docs-site
mrjf May 13, 2026
2fe28fa
Exclude dev files from protected-files + add max-patch-files + recrea…
mrjf May 13, 2026
3b7442f
Merge pull request #37 from githubnext/fix/exclude-dev-files-from-pro…
mrjf May 13, 2026
b5f6e44
Merge main into autoloop/python-to-go-migration
github-actions[bot] May 14, 2026
b50c0f4
[Autoloop: python-to-go-migration] Iteration 32: migrate 16 modules (…
github-actions[bot] May 14, 2026
1c70c74
[Autoloop: python-to-go-migration] Iteration 33: Migrate 9 modules (+…
github-actions[bot] May 14, 2026
f0e57d6
[Autoloop: python-to-go-migration] Iteration 34: Migrate scope, mktmo…
github-actions[bot] May 14, 2026
bceb743
[Autoloop: python-to-go-migration] Iteration 35: Migrate 5 modules (+…
github-actions[bot] May 14, 2026
0e9a816
Merge pull request #39 from githubnext/autoloop/python-to-go-migration
mrjf May 14, 2026
5f7ea94
Initial plan
Copilot May 14, 2026
f02c81b
docs: update Autoloop Go migration progress to iteration 35
github-actions[bot] May 14, 2026
e18aaaa
Install Evergreen workflow
Copilot May 14, 2026
349f1ab
Address Evergreen ASCII output review
Copilot May 14, 2026
9d96356
Clarify Evergreen CI trigger wording
Copilot May 14, 2026
e415d93
[Autoloop: python-to-go-migration] Iteration 36: Migrate integration/…
github-actions[bot] May 14, 2026
bc8ce83
Merge pull request #42 from githubnext/docs/autoloop-go-migration-ite…
mrjf May 14, 2026
ffa20d7
Merge main into autoloop/python-to-go-migration
github-actions[bot] May 14, 2026
0564ba9
[Autoloop: python-to-go-migration] Iteration 37: Migrate install/temp…
github-actions[bot] May 14, 2026
f7d1e26
[Autoloop: python-to-go-migration] Iteration 38: migrate 4 modules (u…
github-actions[bot] May 14, 2026
05d41e2
[Autoloop: python-to-go-migration] Iteration 39: migrate base_integra…
github-actions[bot] May 14, 2026
c0ff448
ci: trigger checks
github-actions[bot] May 14, 2026
2e52f0d
[Autoloop: python-to-go-migration] Iteration 40: Migrate skill, hook,…
github-actions[bot] May 14, 2026
19f9919
ci: trigger checks
github-actions[bot] May 14, 2026
f6c870d
[Autoloop: python-to-go-migration] Iteration 41: Migrate command_logg…
github-actions[bot] May 14, 2026
d9a44f5
ci: trigger checks
github-actions[bot] May 14, 2026
6b3adfc
[Autoloop: python-to-go-migration] Iteration 42: migrate target_detec…
github-actions[bot] May 14, 2026
dbd0669
ci: trigger checks
github-actions[bot] May 14, 2026
7782163
[Autoloop: python-to-go-migration] Iteration 43: migrate policy/helpt…
github-actions[bot] May 14, 2026
fbb8856
ci: trigger checks
github-actions[bot] May 14, 2026
93893d2
Initial plan
Copilot May 14, 2026
9dbcb36
Replace docs site with migration dashboard
Copilot May 14, 2026
c2f710d
[Autoloop: python-to-go-migration] Iteration 44: migrate gitutils, mk…
github-actions[bot] May 14, 2026
50fa0b7
ci: trigger checks
github-actions[bot] May 14, 2026
631b5c5
[Autoloop: python-to-go-migration] Iteration 45: migrate core/token_m…
github-actions[bot] May 14, 2026
09c1a50
ci: trigger checks
github-actions[bot] May 14, 2026
3fd8773
[Autoloop: python-to-go-migration] Iteration 46: migrate models/depen…
github-actions[bot] May 14, 2026
648f4d2
ci: trigger checks
github-actions[bot] May 14, 2026
157b028
[Autoloop: python-to-go-migration] Iteration 47: Migrate core/script_…
github-actions[bot] May 14, 2026
e0fb689
ci: trigger checks
github-actions[bot] May 14, 2026
d9b387f
[Autoloop: python-to-go-migration] Iteration 48: migrate core/auth, m…
github-actions[bot] May 14, 2026
a0671f9
ci: trigger checks
github-actions[bot] May 14, 2026
8f7ba3b
[Autoloop: python-to-go-migration] Iteration 49: Migrate apm_resolver…
github-actions[bot] May 14, 2026
0689e7e
ci: trigger checks
github-actions[bot] May 14, 2026
a10f2b0
[Autoloop: python-to-go-migration] Iteration 50: Register 10 untracke…
github-actions[bot] May 14, 2026
51ec762
chore(deps): bump devalue from 5.8.0 to 5.8.1 in /docs
dependabot[bot] May 14, 2026
445385d
[Autoloop: python-to-go-migration] Iteration 51: Register 6 untracked…
github-actions[bot] May 14, 2026
ffa8f3a
Merge pull request #41 from githubnext/copilot/install-evergreen-work…
mrjf May 14, 2026
4338c93
Merge pull request #43 from githubnext/autoloop/python-to-go-migration
mrjf May 14, 2026
9bf04db
Fix policy docs consistency tests
Copilot May 14, 2026
72c2704
docs: update Autoloop Go migration progress to iteration 51 (75.06%)
github-actions[bot] May 14, 2026
e63e058
ci: trigger checks
github-actions[bot] May 14, 2026
5c09d1d
Merge pull request #46 from githubnext/copilot/replace-docs-site-with…
mrjf May 15, 2026
c0c844f
Merge pull request #47 from githubnext/dependabot/npm_and_yarn/docs/d…
mrjf May 15, 2026
f7de14d
Merge pull request #48 from githubnext/docs/autoloop-go-migration-ite…
mrjf May 15, 2026
7858c17
Initial plan
Copilot May 15, 2026
3aea6cf
fix benchmark docs generation
Copilot May 15, 2026
9b0d74d
address benchmark review feedback
Copilot May 15, 2026
279de78
polish benchmark docs helpers
Copilot May 15, 2026
e17e03a
format benchmark manifest tests
Copilot May 21, 2026
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
16 changes: 16 additions & 0 deletions .apm/instructions/agentic-workflows.instructions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
description: "Agentic workflow recompilation: always recompile after changing workflow files"
---

# Agentic Workflows

After modifying any `.md` workflow file under `.github/workflows/`, always
recompile both agentic workflows and APM integration files before committing:

```bash
gh aw compile
apm compile
```

Commit the regenerated `.lock.yml` and integration files together with your
changes. The CI `APM Self-Check` job will fail if generated files are stale.
49 changes: 49 additions & 0 deletions .github/ISSUE_TEMPLATE/autoloop-program.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
---
name: Autoloop Program
about: Create a new Autoloop optimization program
title: ''
labels: autoloop-program
---

<!-- AUTOLOOP:ISSUE-PROGRAM -->
<!-- This issue defines an Autoloop program. The format is identical to program.md files. -->
<!-- Autoloop will discover this issue by its label and run iterations automatically. -->
<!-- After each run, a status comment will be posted/updated with links and results. -->

---
schedule: every 6h
# target-metric: 0.95 ← uncomment and set to make this a goal-oriented program that stops when reached
---

# Program Name

## Goal

<!-- Describe what you want to optimize. Be specific about what 'better' means. -->
<!-- Choose one of the following program types: -->
<!-- • Goal-oriented: Has a finish line. Set target-metric above and describe the target here. -->
<!-- Example: "Increase test coverage to at least 95%." -->
<!-- • Open-ended: Runs forever, always seeking improvement. Leave target-metric commented out. -->
<!-- Example: "Continuously improve algorithm performance." -->

REPLACE THIS with your optimization goal.

## Target

<!-- List files Autoloop may modify. Everything else is off-limits. -->

Only modify these files:
- `REPLACE_WITH_FILE` -- (describe what this file does)

Do NOT modify:
- (list files that must not be touched)

## Evaluation

<!-- Provide a command and the metric to extract. -->

```bash
REPLACE_WITH_YOUR_EVALUATION_COMMAND
```

The metric is `REPLACE_WITH_METRIC_NAME`. **Lower/Higher is better.** (pick one)
12 changes: 6 additions & 6 deletions .github/aw/actions-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@
"version": "v7",
"sha": "043fb46d1a93c77aae656e7c1c64a875d1fc6a0a"
},
"github/gh-aw-actions/setup-cli@v0.71.5": {
"github/gh-aw-actions/setup-cli@v0.74.1": {
"repo": "github/gh-aw-actions/setup-cli",
"version": "v0.71.5",
"sha": "b8068426813005612b960b5ab0b8bd2c27142323"
"version": "v0.74.1",
"sha": "b07cf98ac5874e8f51c34ba52099d8a6fac2ef93"
},
"github/gh-aw-actions/setup@v0.71.5": {
"github/gh-aw-actions/setup@v0.74.1": {
"repo": "github/gh-aw-actions/setup",
"version": "v0.71.5",
"sha": "b8068426813005612b960b5ab0b8bd2c27142323"
"version": "v0.74.1",
"sha": "b07cf98ac5874e8f51c34ba52099d8a6fac2ef93"
},
"github/gh-aw/actions/setup@v0.50.6": {
"repo": "github/gh-aw/actions/setup",
Expand Down
17 changes: 16 additions & 1 deletion .github/copilot-instructions.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,22 @@
<!-- Generated by APM CLI from .apm/ primitives -->
<!-- Build ID: 791e09362ff0 -->
<!-- Build ID: cdb5b8cab974 -->
<!-- APM Version: 0.12.4 -->

<!-- Source: .apm/instructions/agentic-workflows.instructions.md -->
# Agentic Workflows

After modifying any `.md` workflow file under `.github/workflows/`, always
recompile both agentic workflows and APM integration files before committing:

```bash
gh aw compile
apm compile
```

Commit the regenerated `.lock.yml` and integration files together with your
changes. The CI `APM Self-Check` job will fail if generated files are stale.
<!-- End source: .apm/instructions/agentic-workflows.instructions.md -->

<!-- Source: .apm/instructions/linting.instructions.md -->
# Linting (canonical contract)

Expand Down
16 changes: 16 additions & 0 deletions .github/instructions/agentic-workflows.instructions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
description: "Agentic workflow recompilation: always recompile after changing workflow files"
---

# Agentic Workflows

After modifying any `.md` workflow file under `.github/workflows/`, always
recompile both agentic workflows and APM integration files before committing:

```bash
gh aw compile
apm compile
```

Commit the regenerated `.lock.yml` and integration files together with your
changes. The CI `APM Self-Check` job will fail if generated files are stale.
11 changes: 11 additions & 0 deletions .github/mcp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"mcpServers": {
"github-agentic-workflows": {
"command": "gh",
"args": [
"aw",
"mcp-server"
]
}
}
}
116 changes: 96 additions & 20 deletions .github/workflows/agentics-maintenance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# \ /\ / (_) | | | | ( | | | | (_) \ V V /\__ \
# \/ \/ \___/|_| |_|\_\|_| |_|\___/ \_/\_/ |___/
#
# This file was automatically generated by pkg/workflow/maintenance_workflow.go (v0.71.5). DO NOT EDIT.
# This file was automatically generated by pkg/workflow/maintenance_workflow.go (v0.74.1). DO NOT EDIT.
#
# To regenerate this workflow, run:
# gh aw compile
Expand Down Expand Up @@ -55,6 +55,7 @@ on:
- 'clean_cache_memories'
- 'update_pull_request_branches'
- 'validate'
- 'forecast'
run_url:
description: 'Run URL or run ID to replay safe outputs from (e.g. https://github.com/owner/repo/actions/runs/12345 or 12345). Required when operation is safe_outputs.'
required: false
Expand All @@ -63,7 +64,7 @@ on:
workflow_call:
inputs:
operation:
description: 'Optional maintenance operation to run (disable, enable, update, upgrade, safe_outputs, create_labels, activity_report, close_agentic_workflows_issues, clean_cache_memories, update_pull_request_branches, validate)'
description: 'Optional maintenance operation to run (disable, enable, update, upgrade, safe_outputs, create_labels, activity_report, close_agentic_workflows_issues, clean_cache_memories, update_pull_request_branches, validate, forecast)'
required: false
type: string
default: ''
Expand Down Expand Up @@ -92,7 +93,7 @@ jobs:
pull-requests: write
steps:
- name: Setup Scripts
uses: github/gh-aw-actions/setup@b8068426813005612b960b5ab0b8bd2c27142323 # v0.71.5
uses: github/gh-aw-actions/setup@b07cf98ac5874e8f51c34ba52099d8a6fac2ef93 # v0.74.1
with:
destination: ${{ runner.temp }}/gh-aw/actions

Expand Down Expand Up @@ -130,7 +131,7 @@ jobs:
actions: write
steps:
- name: Setup Scripts
uses: github/gh-aw-actions/setup@b8068426813005612b960b5ab0b8bd2c27142323 # v0.71.5
uses: github/gh-aw-actions/setup@b07cf98ac5874e8f51c34ba52099d8a6fac2ef93 # v0.74.1
with:
destination: ${{ runner.temp }}/gh-aw/actions

Expand All @@ -144,7 +145,7 @@ jobs:
await main();

run_operation:
if: ${{ (github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call') && inputs.operation != '' && inputs.operation != 'safe_outputs' && inputs.operation != 'create_labels' && inputs.operation != 'activity_report' && inputs.operation != 'close_agentic_workflows_issues' && inputs.operation != 'clean_cache_memories' && inputs.operation != 'update_pull_request_branches' && inputs.operation != 'validate' && (!(github.event.repository.fork)) }}
if: ${{ (github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call') && inputs.operation != '' && inputs.operation != 'safe_outputs' && inputs.operation != 'create_labels' && inputs.operation != 'activity_report' && inputs.operation != 'close_agentic_workflows_issues' && inputs.operation != 'clean_cache_memories' && inputs.operation != 'update_pull_request_branches' && inputs.operation != 'validate' && inputs.operation != 'forecast' && (!(github.event.repository.fork)) }}
runs-on: ubuntu-slim
permissions:
actions: write
Expand All @@ -159,7 +160,7 @@ jobs:
persist-credentials: false

- name: Setup Scripts
uses: github/gh-aw-actions/setup@b8068426813005612b960b5ab0b8bd2c27142323 # v0.71.5
uses: github/gh-aw-actions/setup@b07cf98ac5874e8f51c34ba52099d8a6fac2ef93 # v0.74.1
with:
destination: ${{ runner.temp }}/gh-aw/actions

Expand All @@ -174,9 +175,9 @@ jobs:
await main();

- name: Install gh-aw
uses: github/gh-aw-actions/setup-cli@b8068426813005612b960b5ab0b8bd2c27142323 # v0.71.5
uses: github/gh-aw-actions/setup-cli@b07cf98ac5874e8f51c34ba52099d8a6fac2ef93 # v0.74.1
with:
version: v0.71.5
version: v0.74.1

- name: Run operation
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
Expand Down Expand Up @@ -204,7 +205,7 @@ jobs:
pull-requests: write
steps:
- name: Setup Scripts
uses: github/gh-aw-actions/setup@b8068426813005612b960b5ab0b8bd2c27142323 # v0.71.5
uses: github/gh-aw-actions/setup@b07cf98ac5874e8f51c34ba52099d8a6fac2ef93 # v0.74.1
with:
destination: ${{ runner.temp }}/gh-aw/actions

Expand Down Expand Up @@ -250,7 +251,7 @@ jobs:
persist-credentials: false

- name: Setup Scripts
uses: github/gh-aw-actions/setup@b8068426813005612b960b5ab0b8bd2c27142323 # v0.71.5
uses: github/gh-aw-actions/setup@b07cf98ac5874e8f51c34ba52099d8a6fac2ef93 # v0.74.1
with:
destination: ${{ runner.temp }}/gh-aw/actions

Expand Down Expand Up @@ -294,7 +295,7 @@ jobs:
persist-credentials: false

- name: Setup Scripts
uses: github/gh-aw-actions/setup@b8068426813005612b960b5ab0b8bd2c27142323 # v0.71.5
uses: github/gh-aw-actions/setup@b07cf98ac5874e8f51c34ba52099d8a6fac2ef93 # v0.74.1
with:
destination: ${{ runner.temp }}/gh-aw/actions

Expand All @@ -309,9 +310,9 @@ jobs:
await main();

- name: Install gh-aw
uses: github/gh-aw-actions/setup-cli@b8068426813005612b960b5ab0b8bd2c27142323 # v0.71.5
uses: github/gh-aw-actions/setup-cli@b07cf98ac5874e8f51c34ba52099d8a6fac2ef93 # v0.74.1
with:
version: v0.71.5
version: v0.74.1

- name: Create missing labels
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
Expand Down Expand Up @@ -340,7 +341,7 @@ jobs:
persist-credentials: false

- name: Setup Scripts
uses: github/gh-aw-actions/setup@b8068426813005612b960b5ab0b8bd2c27142323 # v0.71.5
uses: github/gh-aw-actions/setup@b07cf98ac5874e8f51c34ba52099d8a6fac2ef93 # v0.74.1
with:
destination: ${{ runner.temp }}/gh-aw/actions

Expand All @@ -355,9 +356,9 @@ jobs:
await main();

- name: Install gh-aw
uses: github/gh-aw-actions/setup-cli@b8068426813005612b960b5ab0b8bd2c27142323 # v0.71.5
uses: github/gh-aw-actions/setup-cli@b07cf98ac5874e8f51c34ba52099d8a6fac2ef93 # v0.74.1
with:
version: v0.71.5
version: v0.74.1

- name: Restore activity report logs cache
id: activity_report_logs_cache
Expand Down Expand Up @@ -430,14 +431,89 @@ jobs:
});
core.info('Created issue #' + createdIssue.data.number + ': ' + createdIssue.data.html_url);

forecast_report:
if: ${{ (github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call') && inputs.operation == 'forecast' && (!(github.event.repository.fork)) }}
runs-on: ubuntu-slim
timeout-minutes: 60
permissions:
actions: read
contents: read
issues: write
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false

- name: Setup Scripts
uses: github/gh-aw-actions/setup@b07cf98ac5874e8f51c34ba52099d8a6fac2ef93 # v0.74.1
with:
destination: ${{ runner.temp }}/gh-aw/actions

- name: Check admin/maintainer permissions
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');
setupGlobals(core, github, context, exec, io, getOctokit);
const { main } = require('${{ runner.temp }}/gh-aw/actions/check_team_member.cjs');
await main();

- name: Install gh-aw
uses: github/gh-aw-actions/setup-cli@b07cf98ac5874e8f51c34ba52099d8a6fac2ef93 # v0.74.1
with:
version: v0.74.1

- name: Restore forecast report logs cache
id: forecast_report_logs_cache
uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
with:
path: .github/aw/logs
key: ${{ runner.os }}-forecast-report-logs-${{ github.repository }}-${{ github.ref_name }}-${{ github.run_id }}
restore-keys: |
${{ runner.os }}-forecast-report-logs-${{ github.repository }}-
${{ runner.os }}-forecast-report-logs-

- name: Generate forecast report
shell: bash
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_AW_CMD_PREFIX: gh aw
run: |
mkdir -p ./.cache/gh-aw/forecast
${GH_AW_CMD_PREFIX} logs --repo "${{ github.repository }}" --start-date -30d --count 1500 > /dev/null
if ! compgen -G ".github/aw/logs/run-*/run_summary.json" > /dev/null; then
echo "::error::Missing run summary cache in .github/aw/logs after gh aw logs warm-up; cannot run forecast."
exit 1
fi
${GH_AW_CMD_PREFIX} forecast --repo "${{ github.repository }}" --json 2> >(grep -Fv "forecast is an experimental command and may change without notice" >&2) > ./.cache/gh-aw/forecast/report.json

- name: Save forecast report logs cache
if: ${{ always() }}
uses: actions/cache/save@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
with:
path: .github/aw/logs
key: ${{ steps.forecast_report_logs_cache.outputs.cache-primary-key }}

- name: Generate forecast issue
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const { setupGlobals } = require('${{ runner.temp }}/gh-aw/actions/setup_globals.cjs');
setupGlobals(core, github, context, exec, io, getOctokit);
const { main } = require('${{ runner.temp }}/gh-aw/actions/create_forecast_issue.cjs');
await main();

close_agentic_workflows_issues:
if: ${{ (github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_call') && inputs.operation == 'close_agentic_workflows_issues' && (!(github.event.repository.fork)) }}
runs-on: ubuntu-slim
permissions:
issues: write
steps:
- name: Setup Scripts
uses: github/gh-aw-actions/setup@b8068426813005612b960b5ab0b8bd2c27142323 # v0.71.5
uses: github/gh-aw-actions/setup@b07cf98ac5874e8f51c34ba52099d8a6fac2ef93 # v0.74.1
with:
destination: ${{ runner.temp }}/gh-aw/actions

Expand Down Expand Up @@ -474,7 +550,7 @@ jobs:
persist-credentials: false

- name: Setup Scripts
uses: github/gh-aw-actions/setup@b8068426813005612b960b5ab0b8bd2c27142323 # v0.71.5
uses: github/gh-aw-actions/setup@b07cf98ac5874e8f51c34ba52099d8a6fac2ef93 # v0.74.1
with:
destination: ${{ runner.temp }}/gh-aw/actions

Expand All @@ -489,9 +565,9 @@ jobs:
await main();

- name: Install gh-aw
uses: github/gh-aw-actions/setup-cli@b8068426813005612b960b5ab0b8bd2c27142323 # v0.71.5
uses: github/gh-aw-actions/setup-cli@b07cf98ac5874e8f51c34ba52099d8a6fac2ef93 # v0.74.1
with:
version: v0.71.5
version: v0.74.1

- name: Validate workflows and file issue on findings
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
Expand Down
Loading