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
12 changes: 12 additions & 0 deletions .github/workflows/gh-aw-code-simplifier.lock.yml

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

12 changes: 12 additions & 0 deletions .github/workflows/gh-aw-code-simplifier.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,16 @@ Simplify overcomplicated code with high-confidence, behavior-preserving refactor
- If no safe simplification is found, call `noop` with a brief reason.
- **Most runs should end with `noop`.** Only open a PR for simplifications that are obviously correct at a glance. If a reviewer would need to think hard about whether behavior is preserved, it's not simple enough.

## Bar for merit

A simplification must clear at least one of these bars to be worth submitting:

1. **Style conformance** — the code is a clear outlier compared to the rest of the codebase (e.g., one function uses a verbose pattern that every other function avoids). The change brings it in line with the established style.
2. **Helper reuse** — an existing utility or helper function already does what the code is reimplementing. The change replaces the inline logic with a call to the existing helper.
3. **Significant clarity or DRY improvement** — the change meaningfully reduces complexity or duplication (e.g., collapses 10+ lines of tangled logic into 2–3 readable lines, or eliminates a non-trivial copy-paste pattern across multiple sites).

**Do not submit** micro-changes that swap one valid idiom for another (e.g., replacing a two-line map lookup + nil check with a one-line direct access, renaming variables for style, or reordering equivalent expressions). These changes take longer to review than they provide benefit. If the best candidate you found is a micro-change, call `noop`.

## Step 1: Find candidates

1. Call `generate_agents_md` to get repository conventions (if it fails, continue).
Expand All @@ -94,6 +104,8 @@ Simplify overcomplicated code with high-confidence, behavior-preserving refactor
- redundant conditionals
- duplicated logic
- verbose helpers that can be simplified
- code that is a style outlier compared to the rest of the codebase
- inline logic that reimplements an existing helper

## Step 2: Select a target

Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/trigger-agent-suggestions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Agent Suggestions
on:
schedule:
- cron: "0 12 * * 1"
workflow_dispatch:

permissions:
contents: read
issues: write
pull-requests: read

jobs:
run:
uses: ./.github/workflows/gh-aw-agent-suggestions.lock.yml
secrets:
COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }}
2 changes: 0 additions & 2 deletions .github/workflows/trigger-mention-in-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,5 @@ jobs:
github.event.issue.pull_request == null &&
startsWith(github.event.comment.body, '/ai')
uses: ./.github/workflows/gh-aw-mention-in-issue.lock.yml

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 MEDIUM: draft-prs override was dropped, changing PR creation behavior

Removing the with.draft-prs: "false" input means this caller now inherits the reusable workflow default (draft-prs: "true" in .github/workflows/gh-aw-mention-in-issue.lock.yml), so /ai issue flows will start creating draft PRs instead of ready-for-review PRs.

This is a behavior change from the previous trigger configuration and can slow triage/automation that expects non-draft PRs.

with:
draft-prs: "false"
secrets:
COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }}
21 changes: 21 additions & 0 deletions .github/workflows/trigger-pr-ci-detective.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: PR CI Detective
on:
workflow_run:
workflows: ["CI", "Build", "Test"]
types: [completed]

permissions:
actions: read
contents: read
discussions: write
issues: write
pull-requests: write # required by gh-aw compiler for add-comment (github/gh-aw#16673)

jobs:
run:
if: >-
github.event.workflow_run.conclusion == 'failure' &&
toJSON(github.event.workflow_run.pull_requests) != '[]'
uses: ./.github/workflows/gh-aw-pr-ci-detective.lock.yml
secrets:
COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }}
23 changes: 23 additions & 0 deletions .github/workflows/trigger-pr-ci-fixer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: PR CI Fixer
on:
workflow_dispatch:
inputs:
workflow-run-id:
description: "Failed workflow run ID to analyze"
required: true
type: string

permissions:
actions: read
contents: write
discussions: write
issues: write
pull-requests: write # required by gh-aw compiler for add-comment (github/gh-aw#16673)

jobs:
run:
uses: ./.github/workflows/gh-aw-pr-ci-fixer.lock.yml
with:
workflow-run-id: ${{ inputs.workflow-run-id }}
secrets:
COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }}
16 changes: 16 additions & 0 deletions .github/workflows/trigger-release-update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Release Update Check
on:
schedule:
- cron: "0 11 * * 1"
workflow_dispatch:

permissions:
contents: write
issues: write
pull-requests: write

jobs:
run:
uses: ./.github/workflows/gh-aw-release-update.lock.yml
secrets:
COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }}
2 changes: 2 additions & 0 deletions .github/workflows/trigger-semantic-function-clustering.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,7 @@ permissions:
jobs:
run:
uses: ./.github/workflows/gh-aw-semantic-function-clustering.lock.yml
with:
languages: "go,python,typescript"
secrets:
COPILOT_GITHUB_TOKEN: ${{ secrets.COPILOT_GITHUB_TOKEN }}
Loading