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
2 changes: 2 additions & 0 deletions .github/workflows/trigger-agent-suggestions.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is auto-generated by scripts/dogfood.sh. Do not edit directly.
# Edit gh-agent-workflows/agent-suggestions/example.yml and run 'make compile' to regenerate.
name: Trigger Agent Suggestions
on:
schedule:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/trigger-breaking-change-detector.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is auto-generated by scripts/dogfood.sh. Do not edit directly.
# Edit gh-agent-workflows/breaking-change-detector/example.yml and run 'make compile' to regenerate.
name: Trigger Breaking Change Detector
on:
schedule:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/trigger-bug-exterminator.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is auto-generated by scripts/dogfood.sh. Do not edit directly.
# Edit gh-agent-workflows/bug-exterminator/example.yml and run 'make compile' to regenerate.
name: Trigger Bug Exterminator
on:
schedule:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/trigger-bug-hunter.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is auto-generated by scripts/dogfood.sh. Do not edit directly.
# Edit gh-agent-workflows/bug-hunter/example.yml and run 'make compile' to regenerate.
name: Trigger Bug Hunter
on:
schedule:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/trigger-code-duplication-detector.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is auto-generated by scripts/dogfood.sh. Do not edit directly.
# Edit gh-agent-workflows/code-duplication-detector/example.yml and run 'make compile' to regenerate.
name: Trigger Code Duplication Detector
on:
schedule:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/trigger-code-duplication-fixer.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is auto-generated by scripts/dogfood.sh. Do not edit directly.
# Edit gh-agent-workflows/code-duplication-fixer/example.yml and run 'make compile' to regenerate.
name: Trigger Code Duplication Fixer
on:
schedule:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/trigger-code-simplifier.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is auto-generated by scripts/dogfood.sh. Do not edit directly.
# Edit gh-agent-workflows/code-simplifier/example.yml and run 'make compile' to regenerate.
name: Trigger Code Simplifier
on:
schedule:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/trigger-docs-patrol.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is auto-generated by scripts/dogfood.sh. Do not edit directly.
# Edit gh-agent-workflows/docs-patrol/example.yml and run 'make compile' to regenerate.
name: Trigger Docs Patrol
on:
schedule:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/trigger-docs-pr-review.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is auto-generated by scripts/dogfood.sh. Do not edit directly.
# Edit gh-agent-workflows/docs-pr-review/example.yml and run 'make compile' to regenerate.
name: Trigger Docs PR Review
on:
issue_comment:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/trigger-downstream-health.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is auto-generated by scripts/dogfood.sh. Do not edit directly.
# Edit gh-agent-workflows/downstream-health/example.yml and run 'make compile' to regenerate.
name: Trigger Downstream Health
on:
schedule:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/trigger-duplicate-issue-detector.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is auto-generated by scripts/dogfood.sh. Do not edit directly.
# Edit gh-agent-workflows/duplicate-issue-detector/example.yml and run 'make compile' to regenerate.
name: Trigger Duplicate Issue Detector
on:
issues:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/trigger-issue-triage.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is auto-generated by scripts/dogfood.sh. Do not edit directly.
# Edit gh-agent-workflows/issue-triage/example.yml and run 'make compile' to regenerate.
name: Trigger Issue Triage
on:
issues:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/trigger-mention-in-issue.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is auto-generated by scripts/dogfood.sh. Do not edit directly.
# Edit gh-agent-workflows/mention-in-issue/example.yml and run 'make compile' to regenerate.
name: Trigger Mention in Issue
on:
issue_comment:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/trigger-mention-in-pr.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is auto-generated by scripts/dogfood.sh. Do not edit directly.
# Edit gh-agent-workflows/mention-in-pr/example.yml and run 'make compile' to regenerate.
name: Trigger Mention in PR
on:
issue_comment:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/trigger-newbie-contributor-fixer.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is auto-generated by scripts/dogfood.sh. Do not edit directly.
# Edit gh-agent-workflows/newbie-contributor-fixer/example.yml and run 'make compile' to regenerate.
name: Trigger Newbie Contributor Fixer
on:
schedule:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/trigger-newbie-contributor-patrol.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is auto-generated by scripts/dogfood.sh. Do not edit directly.
# Edit gh-agent-workflows/newbie-contributor-patrol/example.yml and run 'make compile' to regenerate.
name: Trigger Newbie Contributor Patrol
on:
schedule:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/trigger-plan.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is auto-generated by scripts/dogfood.sh. Do not edit directly.
# Edit gh-agent-workflows/plan/example.yml and run 'make compile' to regenerate.
name: Trigger Plan
on:
issue_comment:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/trigger-pr-actions-detective.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is auto-generated by scripts/dogfood.sh. Do not edit directly.
# Edit gh-agent-workflows/pr-actions-detective/example.yml and run 'make compile' to regenerate.
name: Trigger PR Actions Detective
on:
workflow_run:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/trigger-pr-actions-fixer.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is auto-generated by scripts/dogfood.sh. Do not edit directly.
# Edit gh-agent-workflows/pr-actions-fixer/example.yml and run 'make compile' to regenerate.
name: Trigger PR Actions Fixer
on:
workflow_dispatch:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/trigger-pr-buildkite-detective.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is auto-generated by scripts/dogfood.sh. Do not edit directly.
# Edit gh-agent-workflows/pr-buildkite-detective/example.yml and run 'make compile' to regenerate.
name: Trigger PR Buildkite Detective
on:
workflow_run:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/trigger-pr-review.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is auto-generated by scripts/dogfood.sh. Do not edit directly.
# Edit gh-agent-workflows/pr-review/example.yml and run 'make compile' to regenerate.
name: Trigger PR Review
on:
pull_request:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/trigger-project-summary.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is auto-generated by scripts/dogfood.sh. Do not edit directly.
# Edit gh-agent-workflows/project-summary/example.yml and run 'make compile' to regenerate.
name: Trigger Project Summary
on:
schedule:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/trigger-release-update.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is auto-generated by scripts/dogfood.sh. Do not edit directly.
# Edit gh-agent-workflows/release-update/example.yml and run 'make compile' to regenerate.
name: Trigger Release Update Check
on:
schedule:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/trigger-small-problem-fixer.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is auto-generated by scripts/dogfood.sh. Do not edit directly.
# Edit gh-agent-workflows/small-problem-fixer/example.yml and run 'make compile' to regenerate.
name: Trigger Small Problem Fixer
on:
schedule:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/trigger-stale-issues.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is auto-generated by scripts/dogfood.sh. Do not edit directly.
# Edit gh-agent-workflows/stale-issues/example.yml and run 'make compile' to regenerate.
name: Trigger Stale Issues
on:
schedule:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/trigger-test-improver.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is auto-generated by scripts/dogfood.sh. Do not edit directly.
# Edit gh-agent-workflows/test-improver/example.yml and run 'make compile' to regenerate.
name: Trigger Test Improver
on:
schedule:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/trigger-text-auditor.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is auto-generated by scripts/dogfood.sh. Do not edit directly.
# Edit gh-agent-workflows/text-auditor/example.yml and run 'make compile' to regenerate.
name: Trigger Text Auditor
on:
schedule:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/trigger-text-beautifier.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is auto-generated by scripts/dogfood.sh. Do not edit directly.
# Edit gh-agent-workflows/text-beautifier/example.yml and run 'make compile' to regenerate.
name: Trigger Text Beautifier
on:
schedule:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/trigger-update-pr-body.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file is auto-generated by scripts/dogfood.sh. Do not edit directly.
# Edit gh-agent-workflows/update-pr-body/example.yml and run 'make compile' to regenerate.
name: Trigger Update PR Body
on:
pull_request:
Expand Down
6 changes: 5 additions & 1 deletion gh-agent-workflows/DEVELOPING.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,9 @@ Trigger `example.yml` files are copied from `gh-agent-workflows/*/` by `scripts/
1. Edit workflows in `.github/workflows/gh-aw-*.md`, triggers in `gh-agent-workflows/*/example.yml`, or fragments in `.github/workflows/gh-aw-fragments/`
2. Run `make compile` (syncs triggers, then compiles)
3. Verify 0 errors, 0 warnings
4. Commit all source files, trigger files, and generated `.lock.yml` files
4. Commit source files (`gh-aw-*.md`, `example.yml`, fragments) and the generated `.lock.yml` and `trigger-*.yml` files

> **Do not edit `.lock.yml` files directly.** They are compiled output generated by `make compile` from the corresponding `.md` workflow source. Any manual edits will be overwritten on the next compile.

```bash
make compile # sync + compile
Expand Down Expand Up @@ -198,6 +200,8 @@ Consumer repos call the compiled `.lock.yml` via `uses:` in a plain YAML workflo

Each non-internal workflow has a corresponding `example.yml` in `gh-agent-workflows/<name>/` that defines the actual event triggers and calls the compiled `.lock.yml`. These are plain YAML (not compiled by gh-aw) and are copied to `.github/workflows/trigger-<name>.yml` by `scripts/dogfood.sh` for dogfooding when the workflow is not listed in `EXCLUDED_WORKFLOWS` (see `scripts/dogfood.sh` for the current list).

> **Do not edit `trigger-*.yml` files directly.** They are auto-generated by `scripts/dogfood.sh` (run via `make compile`) and any manual changes will be overwritten. To change a trigger, edit `gh-agent-workflows/<name>/example.yml` (or `dogfood-with.yml` for dogfood-only overrides) and run `make compile`.

Consumer repos copy a workflow's `example.yml` into their `.github/workflows/` directory and customize the `with:` inputs. The `uses:` path already points to the remote compiled workflow.

### Dogfood overrides
Expand Down
7 changes: 5 additions & 2 deletions scripts/dogfood.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,11 @@ for f in gh-agent-workflows/*/example.yml; do
continue
fi
target=".github/workflows/trigger-$dir.yml"
sed 's|uses: elastic/ai-github-actions/\(.*\)@v0|uses: ./\1|; s|^name: |name: Trigger |' "$f" \
> "$target"
{
echo "# This file is auto-generated by scripts/dogfood.sh. Do not edit directly."
echo "# Edit gh-agent-workflows/$dir/example.yml and run 'make compile' to regenerate."
sed 's|uses: elastic/ai-github-actions/\(.*\)@v0|uses: ./\1|; s|^name: |name: Trigger |' "$f"
} > "$target"

# Inject dogfood-with.yml overrides into the generated trigger.
overrides="gh-agent-workflows/$dir/dogfood-with.yml"
Expand Down
Loading