Skip to content

Commit b9e5595

Browse files
Copilotpelikhan
andauthored
chore: start update-pull-request merge-base support
Agent-Logs-Url: https://github.com/github/gh-aw/sessions/340b546b-743d-45b6-ac7e-8ec5735124d3 Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
1 parent 5285e62 commit b9e5595

7 files changed

Lines changed: 118 additions & 67 deletions

File tree

.github/workflows/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
"mempalace==3.2.0"
12
markitdown-mcp
23
numpy
34
scikit-learn

.github/workflows/smoke-create-cross-repo-pr.lock.yml

Lines changed: 26 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/smoke-create-cross-repo-pr.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: Smoke Create Cross-Repo PR
3-
description: Smoke test validating cross-repo pull request creation in githubnext/gh-aw-side-repo
3+
description: Smoke test validating cross-repo pull request creation in github/gh-aw-side-repo
44
on:
55
workflow_dispatch:
66
pull_request:
@@ -19,7 +19,7 @@ network:
1919
- github
2020

2121
checkout:
22-
- repository: githubnext/gh-aw-side-repo
22+
- repository: github/gh-aw-side-repo
2323
github-token: ${{ secrets.GH_AW_SIDE_REPO_PAT }}
2424

2525
tools:
@@ -33,7 +33,7 @@ tools:
3333
safe-outputs:
3434
allowed-domains: [default-safe-outputs]
3535
create-pull-request:
36-
target-repo: "githubnext/gh-aw-side-repo"
36+
target-repo: "github/gh-aw-side-repo"
3737
github-token: ${{ secrets.GH_AW_SIDE_REPO_PAT }}
3838
title-prefix: "[smoke] "
3939
labels: [smoke-test]
@@ -50,8 +50,8 @@ safe-outputs:
5050
max: 2
5151
messages:
5252
footer: "> 🔬 *Cross-repo smoke test by [{workflow_name}]({run_url})*{effective_tokens_suffix}{history_link}"
53-
run-started: "🔬 [{workflow_name}]({run_url}) is testing cross-repo PR creation in githubnext/gh-aw-side-repo..."
54-
run-success: "✅ [{workflow_name}]({run_url}) successfully created a cross-repo PR in githubnext/gh-aw-side-repo!"
53+
run-started: "🔬 [{workflow_name}]({run_url}) is testing cross-repo PR creation in github/gh-aw-side-repo..."
54+
run-success: "✅ [{workflow_name}]({run_url}) successfully created a cross-repo PR in github/gh-aw-side-repo!"
5555
run-failure: "❌ [{workflow_name}]({run_url}) failed to create a cross-repo PR: {status}"
5656

5757
timeout-minutes: 10

.github/workflows/smoke-update-cross-repo-pr.lock.yml

Lines changed: 25 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/smoke-update-cross-repo-pr.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: Smoke Update Cross-Repo PR
3-
description: Smoke test validating cross-repo pull request updates in githubnext/gh-aw-side-repo by adding lines from Homer's Odyssey to the README
3+
description: Smoke test validating cross-repo pull request updates in github/gh-aw-side-repo by adding lines from Homer's Odyssey to the README
44

55
on:
66
workflow_dispatch:
@@ -20,7 +20,7 @@ network:
2020
- github
2121

2222
checkout:
23-
- repository: githubnext/gh-aw-side-repo
23+
- repository: github/gh-aw-side-repo
2424
github-token: ${{ secrets.GH_AW_SIDE_REPO_PAT }}
2525
fetch: ["main", "refs/pulls/open/*"] # fetch all open PR refs after checkout
2626
fetch-depth: 0 # fetch full history to ensure we can see all commits and PR details
@@ -44,13 +44,13 @@ safe-outputs:
4444
hide-older-comments: true
4545
max: 2
4646
push-to-pull-request-branch:
47-
target-repo: "githubnext/gh-aw-side-repo"
47+
target-repo: "github/gh-aw-side-repo"
4848
github-token: ${{ secrets.GH_AW_SIDE_REPO_PAT }}
4949
if-no-changes: "error"
5050
target: "1" # PR #1
5151
messages:
5252
footer: "> 📜 *Cross-repo PR update smoke test by [{workflow_name}]({run_url})*{effective_tokens_suffix}{history_link}"
53-
run-started: "📜 [{workflow_name}]({run_url}) is adding the next Odyssey line to githubnext/gh-aw-side-repo PR #1..."
53+
run-started: "📜 [{workflow_name}]({run_url}) is adding the next Odyssey line to github/gh-aw-side-repo PR #1..."
5454
run-success: "✅ [{workflow_name}]({run_url}) successfully updated the cross-repo PR with a new Odyssey line!"
5555
run-failure: "❌ [{workflow_name}]({run_url}) failed to update the cross-repo PR: {status}"
5656

docs/src/content/docs/agent-factory-status.mdx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ These are experimental agentic workflows used by the GitHub Next team to learn,
99

1010
| Workflow | Agent | Status | Schedule | Command |
1111
|:---------|:-----:|:------:|:--------:|:-------:|
12+
| [[aw] Failure Investigator (6h)](https://github.com/github/gh-aw/blob/main/.github/workflows/aw-failure-investigator.md) | claude | [![[aw] Failure Investigator (6h)](https://github.com/github/gh-aw/actions/workflows/aw-failure-investigator.lock.yml/badge.svg)](https://github.com/github/gh-aw/actions/workflows/aw-failure-investigator.lock.yml) | `every 6h` | - |
1213
| [/cloclo](https://github.com/github/gh-aw/blob/main/.github/workflows/cloclo.md) | claude | [![/cloclo](https://github.com/github/gh-aw/actions/workflows/cloclo.lock.yml/badge.svg)](https://github.com/github/gh-aw/actions/workflows/cloclo.lock.yml) | - | `/cloclo` |
1314
| [ACE Editor Session](https://github.com/github/gh-aw/blob/main/.github/workflows/ace-editor.md) | copilot | [![ACE Editor Session](https://github.com/github/gh-aw/actions/workflows/ace-editor.lock.yml/badge.svg)](https://github.com/github/gh-aw/actions/workflows/ace-editor.lock.yml) | - | `/ace` |
1415
| [Agent Container Smoke Test](https://github.com/github/gh-aw/blob/main/.github/workflows/smoke-test-tools.md) | copilot | [![Agent Container Smoke Test](https://github.com/github/gh-aw/actions/workflows/smoke-test-tools.lock.yml/badge.svg)](https://github.com/github/gh-aw/actions/workflows/smoke-test-tools.lock.yml) | - | - |
@@ -47,10 +48,12 @@ These are experimental agentic workflows used by the GitHub Next team to learn,
4748
| [Copilot Agent PR Analysis](https://github.com/github/gh-aw/blob/main/.github/workflows/copilot-agent-analysis.md) | claude | [![Copilot Agent PR Analysis](https://github.com/github/gh-aw/actions/workflows/copilot-agent-analysis.lock.yml/badge.svg)](https://github.com/github/gh-aw/actions/workflows/copilot-agent-analysis.lock.yml) | - | - |
4849
| [Copilot Agent Prompt Clustering Analysis](https://github.com/github/gh-aw/blob/main/.github/workflows/prompt-clustering-analysis.md) | claude | [![Copilot Agent Prompt Clustering Analysis](https://github.com/github/gh-aw/actions/workflows/prompt-clustering-analysis.lock.yml/badge.svg)](https://github.com/github/gh-aw/actions/workflows/prompt-clustering-analysis.lock.yml) | - | - |
4950
| [Copilot CLI Deep Research Agent](https://github.com/github/gh-aw/blob/main/.github/workflows/copilot-cli-deep-research.md) | copilot | [![Copilot CLI Deep Research Agent](https://github.com/github/gh-aw/actions/workflows/copilot-cli-deep-research.lock.yml/badge.svg)](https://github.com/github/gh-aw/actions/workflows/copilot-cli-deep-research.lock.yml) | - | - |
51+
| [Copilot Opt](https://github.com/github/gh-aw/blob/main/.github/workflows/copilot-opt.md) | copilot | [![Copilot Opt](https://github.com/github/gh-aw/actions/workflows/copilot-opt.lock.yml/badge.svg)](https://github.com/github/gh-aw/actions/workflows/copilot-opt.lock.yml) | `weekly on monday` | - |
5052
| [Copilot PR Conversation NLP Analysis](https://github.com/github/gh-aw/blob/main/.github/workflows/copilot-pr-nlp-analysis.md) | copilot | [![Copilot PR Conversation NLP Analysis](https://github.com/github/gh-aw/actions/workflows/copilot-pr-nlp-analysis.lock.yml/badge.svg)](https://github.com/github/gh-aw/actions/workflows/copilot-pr-nlp-analysis.lock.yml) | `daily around 10:00 on weekdays` | - |
5153
| [Copilot PR Prompt Pattern Analysis](https://github.com/github/gh-aw/blob/main/.github/workflows/copilot-pr-prompt-analysis.md) | copilot | [![Copilot PR Prompt Pattern Analysis](https://github.com/github/gh-aw/actions/workflows/copilot-pr-prompt-analysis.lock.yml/badge.svg)](https://github.com/github/gh-aw/actions/workflows/copilot-pr-prompt-analysis.lock.yml) | - | - |
5254
| [Copilot Session Insights](https://github.com/github/gh-aw/blob/main/.github/workflows/copilot-session-insights.md) | claude | [![Copilot Session Insights](https://github.com/github/gh-aw/actions/workflows/copilot-session-insights.lock.yml/badge.svg)](https://github.com/github/gh-aw/actions/workflows/copilot-session-insights.lock.yml) | - | - |
5355
| [Copilot Token Usage Optimizer](https://github.com/github/gh-aw/blob/main/.github/workflows/copilot-token-optimizer.md) | copilot | [![Copilot Token Usage Optimizer](https://github.com/github/gh-aw/actions/workflows/copilot-token-optimizer.lock.yml/badge.svg)](https://github.com/github/gh-aw/actions/workflows/copilot-token-optimizer.lock.yml) | `daily around 14:00 on weekdays` | - |
56+
| [Daily AW Cross-Repo Compile Check](https://github.com/github/gh-aw/blob/main/.github/workflows/daily-aw-cross-repo-compile-check.md) | claude | [![Daily AW Cross-Repo Compile Check](https://github.com/github/gh-aw/actions/workflows/daily-aw-cross-repo-compile-check.lock.yml/badge.svg)](https://github.com/github/gh-aw/actions/workflows/daily-aw-cross-repo-compile-check.lock.yml) | - | - |
5457
| [Daily Choice Type Test](https://github.com/github/gh-aw/blob/main/.github/workflows/daily-choice-test.md) | claude | [![Daily Choice Type Test](https://github.com/github/gh-aw/actions/workflows/daily-choice-test.lock.yml/badge.svg)](https://github.com/github/gh-aw/actions/workflows/daily-choice-test.lock.yml) | `daily around 12:00 on weekdays` | - |
5558
| [Daily CLI Performance Agent](https://github.com/github/gh-aw/blob/main/.github/workflows/daily-cli-performance.md) | copilot | [![Daily CLI Performance Agent](https://github.com/github/gh-aw/actions/workflows/daily-cli-performance.lock.yml/badge.svg)](https://github.com/github/gh-aw/actions/workflows/daily-cli-performance.lock.yml) | - | - |
5659
| [Daily CLI Tools Exploratory Tester](https://github.com/github/gh-aw/blob/main/.github/workflows/daily-cli-tools-tester.md) | copilot | [![Daily CLI Tools Exploratory Tester](https://github.com/github/gh-aw/actions/workflows/daily-cli-tools-tester.lock.yml/badge.svg)](https://github.com/github/gh-aw/actions/workflows/daily-cli-tools-tester.lock.yml) | - | - |
@@ -159,11 +162,13 @@ These are experimental agentic workflows used by the GitHub Next team to learn,
159162
| [Smoke Agent: public/none](https://github.com/github/gh-aw/blob/main/.github/workflows/smoke-agent-public-none.md) | claude | [![Smoke Agent: public/none](https://github.com/github/gh-aw/actions/workflows/smoke-agent-public-none.lock.yml/badge.svg)](https://github.com/github/gh-aw/actions/workflows/smoke-agent-public-none.lock.yml) | - | - |
160163
| [Smoke Agent: scoped/approved](https://github.com/github/gh-aw/blob/main/.github/workflows/smoke-agent-scoped-approved.md) | claude | [![Smoke Agent: scoped/approved](https://github.com/github/gh-aw/actions/workflows/smoke-agent-scoped-approved.lock.yml/badge.svg)](https://github.com/github/gh-aw/actions/workflows/smoke-agent-scoped-approved.lock.yml) | - | - |
161164
| [Smoke Call Workflow](https://github.com/github/gh-aw/blob/main/.github/workflows/smoke-call-workflow.md) | codex | [![Smoke Call Workflow](https://github.com/github/gh-aw/actions/workflows/smoke-call-workflow.lock.yml/badge.svg)](https://github.com/github/gh-aw/actions/workflows/smoke-call-workflow.lock.yml) | - | - |
165+
| [Smoke CI](https://github.com/github/gh-aw/blob/main/.github/workflows/smoke-ci.md) | copilot | [![Smoke CI](https://github.com/github/gh-aw/actions/workflows/smoke-ci.lock.yml/badge.svg)](https://github.com/github/gh-aw/actions/workflows/smoke-ci.lock.yml) | - | - |
162166
| [Smoke Claude](https://github.com/github/gh-aw/blob/main/.github/workflows/smoke-claude.md) | claude | [![Smoke Claude](https://github.com/github/gh-aw/actions/workflows/smoke-claude.lock.yml/badge.svg)](https://github.com/github/gh-aw/actions/workflows/smoke-claude.lock.yml) | - | - |
163167
| [Smoke Codex](https://github.com/github/gh-aw/blob/main/.github/workflows/smoke-codex.md) | codex | [![Smoke Codex](https://github.com/github/gh-aw/actions/workflows/smoke-codex.lock.yml/badge.svg)](https://github.com/github/gh-aw/actions/workflows/smoke-codex.lock.yml) | - | - |
164168
| [Smoke Copilot](https://github.com/github/gh-aw/blob/main/.github/workflows/smoke-copilot.md) | copilot | [![Smoke Copilot](https://github.com/github/gh-aw/actions/workflows/smoke-copilot.lock.yml/badge.svg)](https://github.com/github/gh-aw/actions/workflows/smoke-copilot.lock.yml) | - | - |
165169
| [Smoke Copilot ARM64](https://github.com/github/gh-aw/blob/main/.github/workflows/smoke-copilot-arm.md) | copilot | [![Smoke Copilot ARM64](https://github.com/github/gh-aw/actions/workflows/smoke-copilot-arm.lock.yml/badge.svg)](https://github.com/github/gh-aw/actions/workflows/smoke-copilot-arm.lock.yml) | - | - |
166170
| [Smoke Create Cross-Repo PR](https://github.com/github/gh-aw/blob/main/.github/workflows/smoke-create-cross-repo-pr.md) | copilot | [![Smoke Create Cross-Repo PR](https://github.com/github/gh-aw/actions/workflows/smoke-create-cross-repo-pr.lock.yml/badge.svg)](https://github.com/github/gh-aw/actions/workflows/smoke-create-cross-repo-pr.lock.yml) | - | - |
171+
| [Smoke Crush](https://github.com/github/gh-aw/blob/main/.github/workflows/smoke-crush.md) | crush | [![Smoke Crush](https://github.com/github/gh-aw/actions/workflows/smoke-crush.lock.yml/badge.svg)](https://github.com/github/gh-aw/actions/workflows/smoke-crush.lock.yml) | - | - |
167172
| [Smoke Gemini](https://github.com/github/gh-aw/blob/main/.github/workflows/smoke-gemini.md) | gemini | [![Smoke Gemini](https://github.com/github/gh-aw/actions/workflows/smoke-gemini.lock.yml/badge.svg)](https://github.com/github/gh-aw/actions/workflows/smoke-gemini.lock.yml) | - | - |
168173
| [Smoke Multi PR](https://github.com/github/gh-aw/blob/main/.github/workflows/smoke-multi-pr.md) | copilot | [![Smoke Multi PR](https://github.com/github/gh-aw/actions/workflows/smoke-multi-pr.lock.yml/badge.svg)](https://github.com/github/gh-aw/actions/workflows/smoke-multi-pr.lock.yml) | - | - |
169174
| [Smoke Project](https://github.com/github/gh-aw/blob/main/.github/workflows/smoke-project.md) | copilot | [![Smoke Project](https://github.com/github/gh-aw/actions/workflows/smoke-project.lock.yml/badge.svg)](https://github.com/github/gh-aw/actions/workflows/smoke-project.lock.yml) | - | - |

docs/src/content/docs/reference/frontmatter-full.md

Lines changed: 52 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,13 @@ description: "Description of the workflow"
3434
# (optional)
3535
source: "example-value"
3636

37+
# Optional workflow location redirect for updates. Format: workflow spec or GitHub
38+
# URL (e.g., owner/repo/path@ref or
39+
# https://github.com/owner/repo/blob/main/path.md). When present, update follows
40+
# this location and rewrites source.
41+
# (optional)
42+
redirect: "example-value"
43+
3744
# Optional tracker identifier to tag all created assets (issues, discussions,
3845
# comments, pull requests). Must be at least 8 characters and contain only
3946
# alphanumeric characters, hyphens, and underscores. This identifier will be
@@ -820,9 +827,10 @@ on:
820827
# (optional)
821828
# This field supports multiple formats (oneOf):
822829

823-
# Option 1: Allow any authenticated user to trigger the workflow (⚠️ disables
824-
# permission checking entirely - use with caution)
825-
roles: "all"
830+
# Option 1: Single repository permission level that can trigger the workflow. Use
831+
# 'all' to allow any authenticated user (⚠️ disables permission checking entirely
832+
# - use with caution)
833+
roles: "admin"
826834

827835
# Option 2: List of repository permission levels that can trigger the workflow.
828836
# Permission checks are automatically applied to potentially unsafe triggers.
@@ -1530,8 +1538,8 @@ engine: "example-value"
15301538
# Option 2: Extended engine configuration object with advanced options for model
15311539
# selection, turn limiting, environment variables, and custom steps
15321540
engine:
1533-
# AI engine identifier: built-in ('claude', 'codex', 'copilot', 'gemini',
1534-
# 'crush') or a named catalog entry
1541+
# AI engine identifier: built-in ('claude', 'codex', 'copilot', 'gemini', 'crush')
1542+
# or a named catalog entry
15351543
id: "example-value"
15361544

15371545
# Optional version of the AI engine action (e.g., 'beta', 'stable', 20). Has
@@ -1764,8 +1772,7 @@ engine:
17641772
# Option 4: Engine definition: full declarative metadata for a named engine entry
17651773
# (used in builtin engine shared workflow files such as @builtin:engines/*.md)
17661774
engine:
1767-
# Unique engine identifier (e.g. 'copilot', 'claude', 'codex', 'gemini',
1768-
# 'crush')
1775+
# Unique engine identifier (e.g. 'copilot', 'claude', 'codex', 'gemini', 'crush')
17691776
id: "example-value"
17701777

17711778
# Human-readable display name for the engine
@@ -3407,6 +3414,18 @@ safe-outputs:
34073414
reviewers: []
34083415
# Array items: string
34093416

3417+
# Optional team reviewer(s) to assign to the pull request. Accepts either a single
3418+
# string or an array of team slugs.
3419+
# (optional)
3420+
# This field supports multiple formats (oneOf):
3421+
3422+
# Option 1: Single team slug to assign as a reviewer to the pull request.
3423+
team-reviewers: "example-value"
3424+
3425+
# Option 2: List of team slugs to assign as reviewers to the pull request.
3426+
team-reviewers: []
3427+
# Array items: string
3428+
34103429
# Optional assignee(s) for a fallback issue created when pull request creation
34113430
# cannot proceed, including protected-files fallback-to-issue and pull request
34123431
# creation or push failures. Accepts either a single string or an array of
@@ -3485,6 +3504,14 @@ safe-outputs:
34853504
# (optional)
34863505
base-branch: "example-value"
34873506

3507+
# Optional list of allowed base branch patterns (glob syntax, e.g. 'main',
3508+
# 'release/*'). When configured, the agent may provide a `base` field in
3509+
# create_pull_request output to override base-branch for a single run, but only if
3510+
# it matches one of these patterns.
3511+
# (optional)
3512+
allowed-base-branches: []
3513+
# Array of strings
3514+
34883515
# Controls whether AI-generated footer is added to the pull request. When false,
34893516
# the visible footer content is omitted but XML markers (workflow-id, tracker-id,
34903517
# metadata) are still included for searchability. Defaults to true.
@@ -4036,6 +4063,18 @@ safe-outputs:
40364063
reviewers: []
40374064
# Array of strings
40384065

4066+
# Optional allowed team reviewer or list of allowed team reviewers. If omitted,
4067+
# any team reviewers are allowed.
4068+
# (optional)
4069+
# This field supports multiple formats (oneOf):
4070+
4071+
# Option 1: string
4072+
team-reviewers: "example-value"
4073+
4074+
# Option 2: array
4075+
team-reviewers: []
4076+
# Array items: string
4077+
40394078
# Optional maximum number of reviewers to add (default: 3) Supports integer or
40404079
# GitHub Actions expression (e.g. '${{ inputs.max }}').
40414080
# (optional)
@@ -4576,6 +4615,12 @@ safe-outputs:
45764615
# (optional)
45774616
if-no-changes: "warn"
45784617

4618+
# When true, treat deleted/missing pull request branch errors as a skipped push
4619+
# instead of a hard failure. Useful when the PR branch may be deleted before safe
4620+
# outputs run.
4621+
# (optional)
4622+
ignore-missing-branch-failure: true
4623+
45794624
# Optional suffix to append to generated commit titles (e.g., ' [skip ci]' to
45804625
# prevent triggering CI on the commit)
45814626
# (optional)

0 commit comments

Comments
 (0)