blob: 1fcf5df2d5b3429bc9819b66a0128944bfd5233f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/bin/bash
# Resolve (delete) a bug by ID
if [ -z "$1" ]; then
echo "Usage: resolve-bug <bug_id>"
exit 1
fi
BUG_ID="$1"
# Show the bug being resolved
echo "Resolving bug #$BUG_ID:"
sqlite3 -column /site/doot.terst.org/data/dashboard.db "SELECT description FROM bugs WHERE id = $BUG_ID"
# Delete the bug
sqlite3 /site/doot.terst.org/data/dashboard.db "DELETE FROM bugs WHERE id = $BUG_ID"
if [ $? -eq 0 ]; then
echo "Bug #$BUG_ID resolved."
else
echo "Failed to resolve bug #$BUG_ID"
exit 1
fi
|