Skip to content

Conversation

@JamesPrial
Copy link
Owner

Summary

  • Add actions-status script - dashboard showing latest GitHub Actions run per workflow across configured repos
  • Outputs JSON with repos/workflows structure and summary counts (success, failure, in_progress)
  • Add 24 BATS tests (20 unit + 4 integration tests)
  • Update dotfiles-fix-perms with new script entries

Test plan

  • All 24 BATS tests pass (bats bin/tests/test-actions-status.bats)
  • Manual verification with real repos produces valid JSON output
  • Help flag works (./bin/actions-status --help)
  • Verbose mode works (./bin/actions-status -v)
  • Existing actions-fails tests still pass

Generated with Claude Code

JamesPrial and others added 4 commits January 25, 2026 18:43
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Adds complete implementation of bin/actions-status script for checking
GitHub Actions workflow status across configured repositories.

Features:
- Fetches latest 50 runs per repo with workflow details
- Groups runs by workflow, keeping latest per workflow
- Maps null conclusion to "in_progress" status
- Calculates duration_seconds for completed runs
- Outputs nested JSON structure (repos[].workflows[])
- Provides summary counts by status (success, failure, in_progress, etc)
- Supports ACTIONS_STATUS_CONFIG env var for custom config path
- Includes verbose logging and comprehensive error handling

All helper functions implemented:
- die/warn/info logging functions
- command_exists and check_dependencies
- show_help and parse_args argument parsing
- get_config_file and read_repos config handling
- fetch_repo_status for GitHub API access
- process_repo_workflows for data transformation
- main function with execution guard

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Fix show_help() to extract only documentation comment block (lines 5-31)
  instead of including set/IFS commands
- Change --limit from 50 to 100 for consistency with actions-fails script
  and better workflow history visibility

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@JamesPrial JamesPrial merged commit 1997a4c into main Jan 26, 2026
4 checks passed
@JamesPrial JamesPrial deleted the feat/ci-bats-tests branch January 26, 2026 00:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant