Files
heretek-actions/.github/actions/check-status/action.yml
T
John SmithandClaude c3633b2b14 Initial commit: Heretek Actions — agent-facing GitHub Actions
Complete implementation of all 7 phases:

Phase 1: Foundation
- Repository directory structure
- .agent/schema.json — Standard JSON envelope schema
- .github/CODEOWNERS, LICENSE (MIT), .gitignore
- README.md shell

Phase 2: Agent-Facing Actions (5 composite actions)
- agent-context — Scans repo, detects stack, queries GitHub API
- pr-summary — Analyzes PR diff, categorizes files, links issues
- issue-triage — Classifies, labels, detects duplicates
- check-status — Watches CI checks, produces merged status
- review — Lightweight structural code analysis
- Shared agent-envelope.sh helper for standardized .agent/output.json

Phase 3: Pre-commit Hooks
- .pre-commit-config.yaml — Universal hook config
- pre-commit-ci.yml — CI workflow running pre-commit

Phase 4: CI Composite Actions
- rust-ci — fmt, clippy, test, coverage (opt), audit (opt)
- js-ci — lint, typecheck, test (npm/pnpm/yarn/bun)
- python-ci — lint (ruff), typecheck (mypy), test (pytest)

Phase 5: Universal CI Orchestrator
- check.yml — Auto-detects languages, routes to CI actions

Phase 6: Universal Release
- release action — Docker, Flatpak, npm, GitHub releases
- release.yml — workflow_call reusable workflow

Phase 7: Documentation
- Full README with quick start, per-action docs, agent integration guide

Co-Authored-By: Claude <[email protected]>
2026-07-30 10:58:06 -04:00

61 lines
1.6 KiB
YAML

name: "Check Status"
description: |
Watches all CI check runs on a commit and produces a clean merged status
summary. Agent can use this to determine if a PR is ready to merge or
what failed and where.
author: "Heretek-AI"
inputs:
github-token:
description: "GitHub token for API access"
default: "${{ github.token }}"
required: false
wait-for-completion:
description: "Poll until all checks complete (max seconds)"
default: "600"
required: false
poll-interval:
description: "Seconds between polls"
default: "15"
required: false
outputs:
agent_action:
description: "Always 'check-status'"
value: "check-status"
status:
description: "success | failure | running | timeout"
value: ${{ steps.watch.outputs.status }}
summary:
description: "Check status summary"
value: ${{ steps.watch.outputs.summary }}
runs:
using: "composite"
steps:
- name: "Checkout"
uses: actions/checkout@v4
with:
fetch-depth: "1"
- name: "Watch Checks"
id: watch
shell: bash
env:
GH_TOKEN: ${{ inputs.github-token }}
WAIT_MAX: ${{ inputs.wait-for-completion }}
POLL_INTERVAL: ${{ inputs.poll-interval }}
HEAD_SHA: ${{ github.event.pull_request.head.sha || github.sha }}
PR_NUMBER: ${{ github.event.pull_request.number }}
run: |
${{ github.action_path }}/watch-checks.sh
- name: "Upload Agent Output"
uses: actions/upload-artifact@v4
with:
name: agent-output
path: .agent/output.json
if-no-files-found: warn
retention-days: 7