You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let's offer a quick setup script which creates the right GitHub pat, creates a secret in the repo, makes a branch, adds our recommended gh-aw workflows, pushes the branch and makes a PR
tl;dr: Add a scripts/quick-setup.sh that uses gh to mint/refresh a token, set COPILOT_GITHUB_TOKEN, fetch recommended gh-agent-workflows/*/example.yml (plus agentics-maintenance.yml), then push a branch and open a PR; document it in README and gh-agent-workflows/README.md.
Recommendation
Implement a single-shot setup script (using gh) that creates a branch, installs a curated set of workflow trigger files, sets the COPILOT_GITHUB_TOKEN secret, and opens a PR. Default to the caller-based install path (download example.yml files) and include agentics-maintenance.yml up front.
Findings
The caller-based install path already expects example.yml triggers and the COPILOT_GITHUB_TOKEN secret:
`gh-agent-workflows/README.md:32-48`32: # .github/workflows/pr-review.yml33: name: PR Review34: on:35: pull_request:36: types: [opened, synchronize, reopened, ready_for_review]37: jobs:38: run:39: uses: elastic/ai-github-actions/.github/workflows/gh-aw-pr-review.lock.yml@v040: with:41: setup-commands: |42: pip install -e ".[dev]"43: additional-instructions: |44: Focus on Python best practices and type safety.45: secrets:46: COPILOT_GITHUB_TOKEN: $\{\{ secrets.COPILOT_GITHUB_TOKEN }}
Classic install (gh-aw) exists but is optional; a quick setup script can stay on the caller-based path:
`gh-agent-workflows/README.md:101-111`
101: # Install a workflow (classic install pulls the workflow .md from this repo)
102: gh aw add elastic/ai-github-actions/gh-agent-workflows/pr-review.md
103:
104: # Compile to generate the lock file
105: gh aw compile
106:
107: # Commit both files and push
108: git add .github/workflows/gh-aw-pr-review.md .github/workflows/gh-aw-pr-review.lock.yml
109: git commit -m "Add PR review workflow"
110: git push
Some workflows require agentics-maintenance; the quick setup can always install it:
`gh-agent-workflows/README.md:56-62`
56: Any workflow that uses safe-outputs with `expires` (create-issue, create-pull-request, create-discussion) requires the `agentics-maintenance` workflow so expired items are closed automatically. Install it once per repo:
57:
58: mkdir -p .github/workflows && curl -sL \
59: https://raw.githubusercontent.com/elastic/ai-github-actions/v0/.github/workflows/agentics-maintenance.yml \
60: -o .github/workflows/agentics-maintenance.yml
Verification
No tests run (triage only).
Detailed Action Plan
Add scripts/quick-setup.sh (new file) that:
Requires gh + gh auth status and accepts --repo and --branch (e.g., --branchai-gh-aw-setup).
Uses gh auth refresh -s repo,workflow (or prompts for a token) and pipes the result into gh secret set COPILOT_GITHUB_TOKEN --body (do not echo).
Creates .github/workflows/, downloads a default workflow set from gh-agent-workflows/(name)/example.yml, and writes them into .github/workflows/ (rename as needed).
Downloads agentics-maintenance.yml (see gh-agent-workflows/README.md:56-62) to cover expiring safe-outputs.
Commits, pushes, and opens a PR via gh pr create --fill.
Document the script in the repo’s top-level Quick Start (place near README.md:5-52) and in the agentic workflow Quick Start (near gh-agent-workflows/README.md:28-52) with a minimal usage example and the default workflow list.
Optionally add flags (--workflows, --skip-secret, --dry-run) to keep the script safe and reusable.
Activity
github-actions commentedon Feb 19, 2026
tl;dr: Add a
scripts/quick-setup.shthat usesghto mint/refresh a token, setCOPILOT_GITHUB_TOKEN, fetch recommendedgh-agent-workflows/*/example.yml(plusagentics-maintenance.yml), then push a branch and open a PR; document it in README andgh-agent-workflows/README.md.Recommendation
gh) that creates a branch, installs a curated set of workflow trigger files, sets theCOPILOT_GITHUB_TOKENsecret, and opens a PR. Default to the caller-based install path (downloadexample.ymlfiles) and includeagentics-maintenance.ymlup front.Findings
The caller-based install path already expects
example.ymltriggers and theCOPILOT_GITHUB_TOKENsecret:Classic install (gh-aw) exists but is optional; a quick setup script can stay on the caller-based path:
Some workflows require
agentics-maintenance; the quick setup can always install it:Verification
No tests run (triage only).
Detailed Action Plan
scripts/quick-setup.sh(new file) that:gh+gh auth statusand accepts--repoand--branch(e.g.,--branchai-gh-aw-setup).gh auth refresh -s repo,workflow(or prompts for a token) and pipes the result intogh secret set COPILOT_GITHUB_TOKEN --body(do not echo)..github/workflows/, downloads a default workflow set fromgh-agent-workflows/(name)/example.yml, and writes them into.github/workflows/(rename as needed).agentics-maintenance.yml(seegh-agent-workflows/README.md:56-62) to cover expiring safe-outputs.gh pr create --fill.README.md:5-52) and in the agentic workflow Quick Start (neargh-agent-workflows/README.md:28-52) with a minimal usage example and the default workflow list.--workflows,--skip-secret,--dry-run) to keep the script safe and reusable.Related Items
gh-agent-workflows/README.md:28-112README.md:5-52What is this? | From workflow: Issue Triage Agent
Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not. for issue #140
strawgate commentedon Feb 19, 2026
/ai make a pr
strawgate commentedon Feb 19, 2026
/ai make a pr
github-actions commentedon Feb 19, 2026
Summary:
scripts/quick-setup.shto install recommended trigger workflows, addagentics-maintenance.yml, setCOPILOT_GITHUB_TOKEN, and open a PRREADME.mdandgh-agent-workflows/README.mdTesting:
make lintPR opened: "Add quick setup script for gh-aw workflows".
What is this? | From workflow: Issue Assistant
Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not. for issue #140
strawgate commentedon Feb 19, 2026
/ai make a new pr please
strawgate commentedon Feb 19, 2026
/ai make a new pr please
github-actions commentedon Feb 19, 2026
Implemented and opened a new PR for this issue.
What changed
scripts/quick-setup.shto bootstrap a target repo with recommended gh-aw workflows.gh-agent-workflows/*/example.ymlfiles into.github/workflows/trigger-*.yml.github/workflows/agentics-maintenance.ymlCOPILOT_GITHUB_TOKEN(fromCOPILOT_GITHUB_TOKENenv var, or viagh auth refresh -s copilot-requests+gh auth token)README.mdgh-agent-workflows/README.mdValidation
make lintsuccessfully.What is this? | From workflow: Issue Assistant
Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not. for issue #140