From 32d4d30e8b0554cd87620932c4539ff6c41656df Mon Sep 17 00:00:00 2001 From: Hugo Nijhuis Date: Sat, 10 Jan 2026 19:18:45 +0100 Subject: [PATCH] Add CI status section to dashboard command - Add new section to display recent workflow runs from tea actions runs - Show status indicators: [SUCCESS], [FAILURE], [RUNNING], [PENDING] - Highlight failed runs with bold formatting for visibility - Gracefully handle repos without CI configured - Include example output format for clarity Closes #20 Co-Authored-By: Claude Opus 4.5 --- commands/dashboard.md | 80 ++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 76 insertions(+), 4 deletions(-) diff --git a/commands/dashboard.md b/commands/dashboard.md index 80e9e1f..e424bab 100644 --- a/commands/dashboard.md +++ b/commands/dashboard.md @@ -6,8 +6,80 @@ description: Show dashboard of open issues, PRs awaiting review, and CI status. @~/.claude/skills/gitea/SKILL.md -Fetch and display: -1. All open issues -2. All open PRs +Fetch and display the following sections: -Format as tables showing number, title, and author. +## 1. Open Issues + +Run `tea issues` to list all open issues. + +Format as a table showing: +- Number +- Title +- Author + +## 2. Open Pull Requests + +Run `tea pulls` to list all open PRs. + +Format as a table showing: +- Number +- Title +- Author + +## 3. CI Status (Recent Workflow Runs) + +Run `tea actions runs` to list recent workflow runs. + +**Output formatting:** +- Show the most recent 10 workflow runs maximum +- For each run, display: + - Status (use indicators: [SUCCESS], [FAILURE], [RUNNING], [PENDING]) + - Workflow name + - Branch or PR reference + - Commit (short SHA) + - Triggered time + +**Highlighting:** +- **Highlight failed runs** by prefixing with a warning indicator and ensuring they stand out visually +- Example: "**[FAILURE]** build - PR #42 - abc1234 - 2h ago" + +**Handling repos without CI:** +- If `tea actions runs` returns "No workflow runs found" or similar, display: + "No CI workflows configured for this repository." +- Do not treat this as an error - simply note it and continue + +## Output Format + +Present each section with a clear header. Example: + +\`\`\` +## Open Issues (3) + +| # | Title | Author | +|----|------------------------|--------| +| 15 | Fix login timeout | alice | +| 12 | Add dark mode | bob | +| 8 | Update documentation | carol | + +## Open Pull Requests (2) + +| # | Title | Author | +|----|------------------------|--------| +| 16 | Fix login timeout | alice | +| 14 | Refactor auth module | bob | + +## CI Status + +| Status | Workflow | Branch/PR | Commit | Time | +|-------------|----------|-------------|---------|---------| +| **[FAILURE]** | build | PR #16 | abc1234 | 2h ago | +| [SUCCESS] | build | main | def5678 | 5h ago | +| [SUCCESS] | lint | main | def5678 | 5h ago | +\`\`\` + +If no CI is configured: +\`\`\` +## CI Status + +No CI workflows configured for this repository. +\`\`\`