-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgenerate_sample_data.sh
More file actions
executable file
·39 lines (35 loc) · 966 Bytes
/
generate_sample_data.sh
File metadata and controls
executable file
·39 lines (35 loc) · 966 Bytes
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
#!/bin/bash
# Example data generator for GitHub Branch Analyzer
# This script creates sample data for demonstration purposes
echo "Generating sample branch data for demonstration..."
# Create sample data that matches the format of the real analyzer output
cat > branch_data.json << EOF
{
"main": [
"feature/profile-789",
"feature/payment-456",
"feature/auth-123"
],
"release": [
"feature/notification-202",
"feature/search-101",
"feature/auth-123"
],
"common": [
"feature/auth-123"
],
"mainOnly": [
"feature/profile-789",
"feature/payment-456"
],
"releaseOnly": [
"feature/notification-202",
"feature/search-101"
],
"timestamp": "$(date -Iseconds)",
"repository": "example/private-repo"
}
EOF
echo "Sample data generated in branch_data.json"
echo "This file can be used for testing the visualization website."
echo "For real data, you'll need to run the analyzer with your GitHub credentials."