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
5 changes: 5 additions & 0 deletions .github/aw/actions-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@
"repo": "github/gh-aw/actions/setup",
"version": "v0.50.1",
"sha": "fad43e3c91a4e1d43e458f68e96574127934e7d1"
},
"github/gh-aw/actions/setup@v0.50.4": {
"repo": "github/gh-aw/actions/setup",
"version": "v0.50.4",
"sha": "90ebf8057e8e005103b8d123732d2c64c30e9b27"
}
}
}
37 changes: 17 additions & 20 deletions .github/workflows/agent-deep-dive.lock.yml

Large diffs are not rendered by default.

37 changes: 17 additions & 20 deletions .github/workflows/agent-efficiency.lock.yml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .github/workflows/agentics-maintenance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
pull-requests: write
steps:
- name: Setup Scripts
uses: github/gh-aw/actions/setup@v0.50.1
uses: github/gh-aw/actions/setup@v0.50.4
with:
destination: /opt/gh-aw/actions

Expand Down
30 changes: 16 additions & 14 deletions .github/workflows/downstream-users.lock.yml

Large diffs are not rendered by default.

81 changes: 56 additions & 25 deletions .github/workflows/gh-aw-agent-suggestions.lock.yml

Large diffs are not rendered by default.

11 changes: 9 additions & 2 deletions .github/workflows/gh-aw-agent-suggestions.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ imports:
- gh-aw-fragments/mcp-pagination.md
- gh-aw-fragments/messages-footer.md
- gh-aw-fragments/safe-output-create-issue.md
- gh-aw-fragments/previous-findings.md
- gh-aw-fragments/best-of-three-investigation.md
- gh-aw-fragments/scheduled-audit.md
- gh-aw-fragments/network-ecosystems.md
engine:
Expand Down Expand Up @@ -43,6 +45,11 @@ on:
type: string
required: false
default: ""
title-prefix:
description: "Title prefix for created issues (e.g. '[agent-suggestions]')"
type: string
required: false
default: "[agent-suggestions]"
secrets:
COPILOT_GITHUB_TOKEN:
required: true
Expand All @@ -67,7 +74,7 @@ safe-outputs:
noop:
create-issue:
max: 1
title-prefix: "[agent-suggestions] "
title-prefix: "${{ inputs.title-prefix }} "
close-older-issues: false
expires: 7d
timeout-minutes: 90
Expand All @@ -92,7 +99,7 @@ Suggest new agent workflows that would materially improve software development f
2. **Check for duplicates or in-flight work**
- Search open issues for existing requests: `repo:{owner}/{repo} is:issue is:open (agent OR workflow OR automation)`.
- Search open PRs for new workflows: `repo:{owner}/{repo} is:pr is:open (agent OR workflow)`.
- Search past reports: `repo:{owner}/{repo} is:issue in:title "[agent-suggestions]"`.
- Search past reports: `repo:{owner}/{repo} is:issue in:title "${{ inputs.title-prefix }}"`.

3. **Evaluate software development needs in this repo**
- Review open issues and PRs updated in the last 30 days for recurring work patterns (maintenance, docs, testing, releases, dependency updates).
Expand Down
75 changes: 47 additions & 28 deletions .github/workflows/gh-aw-branch-actions-detective.lock.yml

Large diffs are not rendered by default.

19 changes: 10 additions & 9 deletions .github/workflows/gh-aw-branch-actions-detective.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ imports:
- gh-aw-fragments/mcp-pagination.md
- gh-aw-fragments/messages-footer.md
- gh-aw-fragments/safe-output-create-issue.md
- gh-aw-fragments/previous-findings.md
- gh-aw-fragments/network-ecosystems.md
engine:
id: copilot
Expand Down Expand Up @@ -41,6 +42,11 @@ on:
type: string
required: false
default: ""
title-prefix:
description: "Title prefix for created issues (e.g. '[branch-actions-detective]')"
type: string
required: false
default: "[branch-actions-detective]"
Comment on lines +45 to +49
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major

Configurable prefix is not propagated to duplicate-check instructions.

You made title-prefix configurable, but the prompt still tells the agent to search for hardcoded [branch-actions-detective] issues. If callers override the prefix, dedup checks in the prompt can miss existing findings.

Suggested fix
-3. Check for existing open issues with the `[branch-actions-detective]` title prefix to avoid duplicates:
+3. Check for existing open issues with the `${{ inputs.title-prefix }}` title prefix to avoid duplicates:
    ````bash
    gh api 'repos/{owner}/{repo}/issues?state=open&per_page=10' \
-     --jq '.[] | select(.title | startswith("[branch-actions-detective]")) | {number: .number, title: .title, html_url: .html_url}'
+     --jq '.[] | select(.title | startswith("${{ inputs.title-prefix }}")) | {number: .number, title: .title, html_url: .html_url}'
    ````
...
-**If an existing open `[branch-actions-detective]` issue tracks the same root cause:**
+**If an existing open `${{ inputs.title-prefix }}` issue tracks the same root cause:**

Also applies to: 74-74

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.github/workflows/gh-aw-branch-actions-detective.md around lines 45 - 49,
Replace the hardcoded "[branch-actions-detective]" literal with the configurable
input variable for the title prefix everywhere it’s used: use ${{
inputs.title-prefix }} in the GH API jq filter (change select(.title |
startswith("[branch-actions-detective]")) to select(.title | startswith("${{
inputs.title-prefix }}"))) and update any prompt/markdown strings (e.g., the
sentence beginning "If an existing open ...") to reference ${{
inputs.title-prefix }} instead of the fixed bracketed string; ensure all
occurrences (including the other instance noted) are updated so dedup checks
honor the configured title-prefix input.

secrets:
COPILOT_GITHUB_TOKEN:
required: true
Expand All @@ -65,7 +71,7 @@ safe-outputs:
noop:
create-issue:
max: 1
title-prefix: "[branch-actions-detective] "
title-prefix: "${{ inputs.title-prefix }} "
close-older-issues: true
expires: 7d
timeout-minutes: 60
Expand Down Expand Up @@ -101,21 +107,16 @@ Analyze failed GitHub Actions CI runs on protected branches (e.g. `main`) in ${{
2. Fetch workflow run details and logs with `bash` + `gh api`:
- List jobs and their conclusions:
````bash
gh api repos/{owner}/{repo}/actions/runs/{run_id}/jobs \
gh api repos/${{ github.repository }}/actions/runs/{run_id}/jobs \
--jq '.jobs[] | {id: .id, name: .name, conclusion: .conclusion, html_url: .html_url}'
````
- Download logs to `/tmp/gh-aw/agent/` and inspect the failing step output:
````bash
gh api repos/{owner}/{repo}/actions/runs/{run_id}/logs \
gh api repos/${{ github.repository }}/actions/runs/{run_id}/logs \
-H "Accept: application/vnd.github+json" \
> /tmp/gh-aw/agent/workflow-logs-{run_id}.zip
unzip -o /tmp/gh-aw/agent/workflow-logs-{run_id}.zip -d /tmp/gh-aw/agent/workflow-logs-{run_id}/
````
3. Check for existing open issues with the `[branch-actions-detective]` title prefix to avoid duplicates:
````bash
gh api 'repos/{owner}/{repo}/issues?state=open&per_page=10' \
--jq '.[] | select(.title | startswith("[branch-actions-detective]")) | {number: .number, title: .title, html_url: .html_url}'
````

### Step 2: Analyze

Expand All @@ -127,7 +128,7 @@ Analyze failed GitHub Actions CI runs on protected branches (e.g. `main`) in ${{

### Step 3: Respond

**If an existing open `[branch-actions-detective]` issue tracks the same root cause:**
**If an existing open `${{ inputs.title-prefix }}` issue tracks the same root cause:**
Call `noop` with a message explaining that the failure is already tracked by the existing issue (include the issue number).

**If this is a new or distinct failure:**
Expand Down
77 changes: 52 additions & 25 deletions .github/workflows/gh-aw-breaking-change-detect.lock.yml

Large diffs are not rendered by default.

77 changes: 52 additions & 25 deletions .github/workflows/gh-aw-breaking-change-detector.lock.yml

Large diffs are not rendered by default.

11 changes: 9 additions & 2 deletions .github/workflows/gh-aw-breaking-change-detector.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ imports:
- gh-aw-fragments/mcp-pagination.md
- gh-aw-fragments/messages-footer.md
- gh-aw-fragments/safe-output-create-issue.md
- gh-aw-fragments/previous-findings.md
- gh-aw-fragments/best-of-three-investigation.md
- gh-aw-fragments/scheduled-audit.md
- gh-aw-fragments/network-ecosystems.md
engine:
Expand Down Expand Up @@ -44,6 +46,11 @@ on:
type: string
required: false
default: ""
title-prefix:
description: "Title prefix for created issues (e.g. '[breaking-change]')"
type: string
required: false
default: "[breaking-change]"
secrets:
COPILOT_GITHUB_TOKEN:
required: true
Expand All @@ -68,7 +75,7 @@ safe-outputs:
noop:
create-issue:
max: 1
title-prefix: "[breaking-change] "
title-prefix: "${{ inputs.title-prefix }} "
close-older-issues: false
expires: 7d
timeout-minutes: 90
Expand All @@ -93,7 +100,7 @@ Run `git log --since="<window>" --oneline --stat` to get a summary of recent com

For each commit (or cluster of related commits):
- Review the full diff (`git show <sha>` or `git diff <sha>^!`) to understand what changed.
- Map commits to PRs using `github-search_pull_requests` with query `repo:elastic/ai-github-actions sha:<sha>`.
- Map commits to PRs using `github-search_pull_requests` with query `repo:{owner}/{repo} sha:<sha>`.
- Read the PR body and related discussion for documentation or migration notes.
- Check for documentation updates in README, DEVELOPING, RELEASE, gh-agent-workflows/README, or any `CHANGELOG*` files (if present).

Expand Down
49 changes: 19 additions & 30 deletions .github/workflows/gh-aw-bug-exterminator.lock.yml

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion .github/workflows/gh-aw-bug-exterminator.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ imports:
- gh-aw-fragments/formatting.md
- gh-aw-fragments/rigor.md
- gh-aw-fragments/mcp-pagination.md
- gh-aw-fragments/workflow-edit-guardrails.md
- gh-aw-fragments/messages-footer.md
- gh-aw-fragments/safe-output-create-pr.md
- gh-aw-fragments/scheduled-fix.md
Expand Down
Loading
Loading