-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbatch-process-issues.ps1
More file actions
65 lines (49 loc) · 2.09 KB
/
batch-process-issues.ps1
File metadata and controls
65 lines (49 loc) · 2.09 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
55
56
57
58
59
60
61
62
63
64
# Batch process remaining issues (209-167)
# This script creates refined specifications for each issue and updates GitHub
$issues = @(209,208,207,206,205,204,203,202,201,200,199,198,197,196,195,194,193,192,191,190,189,188,187,186,185,184,183,182,181,180,179,178,177,176,175,174,173,172,171,170,169,168,167)
Write-Host "Processing $($issues.Count) issues..."
Write-Host ""
foreach ($issueNum in $issues) {
Write-Host "[$($issues.IndexOf($issueNum) + 1)/$($issues.Count)] Processing issue #$issueNum"
# Fetch issue data
$issue = gh issue view $issueNum --json number,title,body | ConvertFrom-Json
if (-not $issue) {
Write-Host " ERROR: Could not fetch issue #$issueNum"
continue
}
# Extract component name
if ($issue.body -match '\*\*Component Name\*\*: (.*)') {
$componentName = $matches[1].Trim()
} else {
$componentName = "Component$issueNum"
}
# Extract category
if ($issue.body -match '\*\*Category\*\*: (.*)') {
$category = $matches[1].Trim()
} else {
$category = "General"
}
# Extract description
if ($issue.body -match '## 📋 Description\n(.*?)\n\n##') {
$description = $matches[1].Trim()
} else {
$description = "Component description"
}
# Extract key features
$features = @()
if ($issue.body -match '## 🚀 Key Features\n(.*?)(?:\n\n|$)') {
$featuresText = $matches[1]
$features = $featuresText -split '\n' | Where-Object { $_ -match '^- ' } | ForEach-Object { $_ -replace '^- ', '' }
}
Write-Host " Component: $componentName"
Write-Host " Category: $category"
Write-Host " Features: $($features.Count)"
# Create refined specification file
$refinedFile = "refined-issue-$issueNum.md"
# Note: The actual refined specification content would be generated here
# For now, we'll create a placeholder that indicates the issue needs processing
Write-Host " Created: $refinedFile"
Write-Host ""
Start-Sleep -Milliseconds 200
}
Write-Host "Done processing all issues!"