feat: Add a comprehensive development plan for new mobile app features and infrastructure, updating issue creation tooling.

This commit is contained in:
Achintha Isuru
2025-12-02 23:49:17 -05:00
parent 8fa1df711d
commit 850441ca64
3 changed files with 37 additions and 5 deletions

View File

@@ -2,18 +2,21 @@
import subprocess
import os
import re
import argparse
# --- Configuration ---
INPUT_FILE = "issues-to-create.md"
PROJECT_TITLE = "Krow"
DEFAULT_PROJECT_TITLE = "Krow"
# ---
def create_issue(title, body, labels, milestone):
def create_issue(title, body, labels, milestone, project_title=None):
"""Creates a GitHub issue using the gh CLI."""
command = ["gh", "issue", "create"]
command.extend(["--title", title])
command.extend(["--body", body])
command.extend(["--project", PROJECT_TITLE])
if project_title:
command.extend(["--project", project_title])
if milestone:
command.extend(["--milestone", milestone])
@@ -33,7 +36,18 @@ def create_issue(title, body, labels, milestone):
def main():
"""Main function to parse the file and create issues."""
parser = argparse.ArgumentParser(description="Bulk create GitHub issues from a markdown file.")
parser.add_argument("--project", default=DEFAULT_PROJECT_TITLE, help="GitHub Project title to add issues to.")
parser.add_argument("--no-project", action="store_true", help="Do not add issues to any project.")
args = parser.parse_args()
project_title = args.project if not args.no_project else None
print(f"🚀 Starting bulk creation of GitHub issues from '{INPUT_FILE}'...")
if project_title:
print(f" Target Project: '{project_title}'")
else:
print(" Target Project: (None)")
if subprocess.run(["which", "gh"], capture_output=True).returncode != 0:
print("❌ ERROR: GitHub CLI (gh) is not installed.")
@@ -84,7 +98,7 @@ def main():
print("⚠️ Skipping block with no title.")
continue
create_issue(title, body, labels, milestone)
create_issue(title, body, labels, milestone, project_title)
print("\n🎉 Bulk issue creation complete!")