|
| 1 | +#!/usr/bin/env bash |
| 2 | +# Demo script for RepoKeeper |
| 3 | +# This is used with asciinema to record the demo |
| 4 | + |
| 5 | +set -e |
| 6 | + |
| 7 | +echo "# RepoKeeper Demo" |
| 8 | +echo "# ================" |
| 9 | +echo "" |
| 10 | +sleep 1 |
| 11 | + |
| 12 | +echo "# Starting RepoKeeper..." |
| 13 | +echo "$ pnpm start" |
| 14 | +sleep 1 |
| 15 | +echo '{"timestamp":"...","level":"info","message":"RepoKeeper listening on port 3001"}' |
| 16 | +echo '{"timestamp":"...","level":"info","message":"AI provider: claude (claude-haiku-4-5)"}' |
| 17 | +echo '{"timestamp":"...","level":"info","message":"Triage: enabled"}' |
| 18 | +echo '{"timestamp":"...","level":"info","message":"PR summariser: enabled"}' |
| 19 | +echo "" |
| 20 | +sleep 2 |
| 21 | + |
| 22 | +echo "# Creating a test issue via GitHub CLI..." |
| 23 | +echo '$ gh issue create --title "Login page crashes on mobile" --body "The login page crashes when I try to log in on my iPhone. I see a white screen after tapping the login button. Using Safari on iOS 17. The error in console shows: TypeError: Cannot read property of undefined."' |
| 24 | +sleep 2 |
| 25 | + |
| 26 | +echo "" |
| 27 | +echo "# Issue created: #7" |
| 28 | +echo "" |
| 29 | +sleep 1 |
| 30 | + |
| 31 | +echo "# RepoKeeper received the webhook and is triaging..." |
| 32 | +sleep 1 |
| 33 | +echo '{"level":"info","message":"Received webhook: issues.opened"}' |
| 34 | +echo '{"level":"info","message":"Triaging issue #7: Login page crashes on mobile"}' |
| 35 | +sleep 1 |
| 36 | +echo '{"level":"info","message":"Added labels [bug] to #7"}' |
| 37 | +echo '{"level":"info","message":"Posted comment on #7"}' |
| 38 | +echo '{"level":"info","message":"Issue #7 classified as \"bug\", labelled [bug]"}' |
| 39 | +echo "" |
| 40 | +sleep 2 |
| 41 | + |
| 42 | +echo "# Checking the issue on GitHub..." |
| 43 | +echo '$ gh issue view 7 --repo GodsBoy/repokeeper' |
| 44 | +echo "" |
| 45 | +echo "Login page crashes on mobile #7" |
| 46 | +echo "Open · GodsBoy opened about 1 minute ago · 1 comment" |
| 47 | +echo "" |
| 48 | +echo "Labels: bug" |
| 49 | +echo "" |
| 50 | +echo " The login page crashes when I try to log in on my iPhone. I see a" |
| 51 | +echo " white screen after tapping the login button. Using Safari on iOS 17." |
| 52 | +echo " The error in console shows: TypeError: Cannot read property of undefined." |
| 53 | +echo "" |
| 54 | +echo "--- RepoKeeper comment ---" |
| 55 | +echo " Thanks for reporting this crash on the mobile login page. The TypeError" |
| 56 | +echo " you're seeing on Safari iOS 17 suggests a compatibility issue we'll need" |
| 57 | +echo " to investigate. We'll look into this and follow up." |
| 58 | +echo "" |
| 59 | +sleep 3 |
| 60 | + |
| 61 | +echo "# RepoKeeper automatically:" |
| 62 | +echo "# 1. Classified the issue as 'bug'" |
| 63 | +echo "# 2. Applied the 'bug' label" |
| 64 | +echo "# 3. Posted a contextual comment referencing the specific issue" |
| 65 | +echo "" |
| 66 | +echo "# That's RepoKeeper — AI-powered repo maintenance on autopilot." |
| 67 | +sleep 2 |
0 commit comments