[Issue #20] Add CI status to dashboard #79

Merged
HugoNijhuis merged 1 commits from issue-20-add-ci-status-to-dashboard into main 2026-01-10 18:21:30 +00:00

View File

@@ -6,8 +6,80 @@ description: Show dashboard of open issues, PRs awaiting review, and CI status.
@~/.claude/skills/gitea/SKILL.md @~/.claude/skills/gitea/SKILL.md
Fetch and display: Fetch and display the following sections:
1. All open issues
2. All open PRs
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.
\`\`\`