-
Notifications
You must be signed in to change notification settings - Fork 282
Expand file tree
/
Copy pathsetup-milestones.sh
More file actions
executable file
·54 lines (45 loc) · 1.42 KB
/
setup-milestones.sh
File metadata and controls
executable file
·54 lines (45 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/bin/bash
# Setup milestones for schemachange releases
# Usage: ./setup-milestones.sh
# Note: Milestones already exist - this script is for reference
set -e
echo "🎯 Schemachange Milestones Status"
echo ""
# Check if gh is installed
if ! command -v gh &> /dev/null; then
echo "❌ GitHub CLI (gh) is not installed."
echo "Install it: https://cli.github.com/"
exit 1
fi
# Check if authenticated
if ! gh auth status &> /dev/null; then
echo "❌ Not authenticated with GitHub CLI."
echo "Run: gh auth login"
exit 1
fi
echo "✅ GitHub CLI ready"
echo ""
# List existing milestones
echo "📊 Current Milestones:"
echo ""
gh api repos/Snowflake-Labs/schemachange/milestones | \
jq -r '.[] | " \(.number). \(.title) - Due: \(.due_on // "No date") (\(.open_issues) open)"'
echo ""
echo "💡 Milestones already created! To update them:"
echo " - Go to: https://github.com/Snowflake-Labs/schemachange/milestones"
echo " - Click milestone → Edit"
echo ""
echo "📝 To assign issues to milestones:"
echo " gh issue edit <number> --milestone '4.2.0'"
echo ""
echo ""
echo "🎉 Milestone setup complete!"
echo ""
echo "📋 View all milestones:"
echo " https://github.com/Snowflake-Labs/schemachange/milestones"
echo ""
echo "💡 Next steps:"
echo " 1. Assign existing issues to milestones"
echo " 2. Update pinned roadmap issue (if you have one)"
echo " 3. Bookmark milestone URLs for quick access"
echo ""