View workflow

From TheBushidoCollective/han · View interactive version

View workflow is an AI agent skill from the GitHub repository TheBushidoCollective/han. View GitHub Actions workflow runs and status

How to use this skill

Skill file

View GitHub Actions Workflow

Name

github:view-workflow - View GitHub Actions workflow runs and status

Synopsis

/view-workflow [arguments]

Description

View GitHub Actions workflow runs and status

Implementation

View the status of GitHub Actions workflow runs for a repository or pull request.

Usage

/view-workflow [owner/repo] [run-id or pr-number]

This command displays comprehensive workflow and job information.

What This Command Does

  1. Fetches workflow run data for a repository or PR
  2. Retrieves all jobs in the workflow using list_workflow_runs
  3. Displays:

Prerequisites

Example Interaction

View Latest Workflow Runs

User: /view-workflow my-org/my-repo

Claude: Fetching workflow runs for my-org/my-repo...

## Recent Workflow Runs

### Run #1234 - CI Pipeline
**Status**: Running
**Branch**: feature/user-auth
**Triggered by**: Push by @johndoe
**Started**: 3 minutes ago

Jobs:
- build: Passed (1m 23s)
- test: Running (2m 15s elapsed)
- lint: Pending
- deploy: Pending

### Run #1233 - CI Pipeline
**Status**: Success
**Branch**: main
**Duration**: 4m 32s
**Completed**: 1 hour ago

All jobs passed.

View Failed Workflow

User: /view-workflow my-org/my-repo 1232

Claude: Fetching workflow run #1232...

## Workflow Run #1232 - CI Pipeline
**Status**: Failed
**Branch**: feature/new-feature
**Duration**: 2m 45s

### Jobs by Status

#### Failed
- test (2m 15s)
  **Error**: Test suite failed with 3 failures
  ```

  FAIL src/auth.test.ts
    Authentication API
      POST /login
        should return JWT token
        Expected: 200
        Received: 500

  ```

#### Passed
- build (1m 18s)
- lint (24s)

#### Skipped
- deploy (skipped due to test failure)

### Recommendations
1. Check database connection in test environment
2. Review test timeout settings
3. Re-run workflow after fixes

Arguments

Tips

Common Issues

Failed Tests

Build Errors

Timeout Issues

Related Commands

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.