Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/agents/sage-github.agent.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
description: 'Expert assistant for managing SAGE project GitHub Issues using sage-github-manager CLI tool'
tools: []
tools: ['vscode', 'execute', 'read', 'agent', 'edit', 'search', 'web', 'copilot-container-tools/*', 'pylance-mcp-server/*', 'todo', 'github.vscode-pull-request-github/copilotCodingAgent', 'github.vscode-pull-request-github/issue_fetch', 'github.vscode-pull-request-github/suggest-fix', 'github.vscode-pull-request-github/searchSyntax', 'github.vscode-pull-request-github/doSearch', 'github.vscode-pull-request-github/renderIssues', 'github.vscode-pull-request-github/activePullRequest', 'github.vscode-pull-request-github/openPullRequest', 'ms-python.python/getPythonEnvironmentInfo', 'ms-python.python/getPythonExecutableCommand', 'ms-python.python/installPythonPackage', 'ms-python.python/configurePythonEnvironment']
---

# SAGE GitHub Issues Management Agent
Expand Down
47 changes: 26 additions & 21 deletions .github/copilot-instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,50 +161,55 @@ export GITHUB_REPO=SAGE
# Download all SAGE issues
github-manager download

# List issues with filters
# List issues with filters (IMPLEMENTED)
github-manager list --state open --label bug
github-manager list --assignee shuhao
github-manager list --milestone "v2.0" --sort created --limit 20
github-manager list --label "priority:high" --label "bug" # Multiple labels

# Show analytics for SAGE issues
github-manager analytics
# Shows: issue distribution, activity trends, contributor stats

# Export SAGE issues for reporting
github-manager export --format csv --output sage_issues.csv
github-manager export --format markdown --output ROADMAP.md

# Batch operations on SAGE issues
github-manager batch close --label "wontfix"
github-manager batch label --add "priority:high" --filter "bug"
github-manager batch assign --assignee shuhao --label "p0"

# AI-powered features
github-manager summarize --issue 123
github-manager detect-duplicates
github-manager suggest-labels --issue 456
# ✅ Export SAGE issues for reporting (IMPLEMENTED)
github-manager export sage_issues.csv --state open
github-manager export issues.json -f json --label bug
github-manager export roadmap.md -f markdown --template roadmap
github-manager export report.md -f markdown --template report --milestone "v2.0"

# ✅ Batch operations on SAGE issues (IMPLEMENTED)
github-manager batch-close --label "wontfix" --dry-run # 预览模式
github-manager batch-label --add "priority:high" --label "bug"
github-manager batch-assign -a shuhao --label "p0"
github-manager batch-milestone "v3.0" --state open

# ❌ AI-powered features (NOT YET IMPLEMENTED)
# github-manager summarize --issue 123
# github-manager detect-duplicates
# github-manager suggest-labels --issue 456
```

### Typical Workflows

1. **Daily Issue Triage**
```bash
github-manager download # Sync latest issues
github-manager list --state open --sort created --limit 20
github-manager list --state open --sort created --limit 20 # ✅ WORKING
github-manager analytics # Check issue health metrics
```

2. **Sprint Planning**
```bash
github-manager list --milestone "v2.0" --state open
github-manager export --format markdown --filter milestone=v2.0
github-manager batch assign --milestone "v2.0"
github-manager list --milestone "v2.0" --state open # ✅ WORKING
github-manager export sprint.md -f markdown --milestone "v2.0" --template roadmap # ✅ WORKING
# github-manager batch assign --milestone "v2.0" # ❌ NOT YET IMPLEMENTED
```

3. **Release Preparation**
```bash
github-manager list --label "release-blocker"
github-manager batch label --add "resolved" --milestone "v1.5"
github-manager export --format csv --output release_report.csv
github-manager list --label "release-blocker" # ✅ WORKING
github-manager export release_report.csv --state closed --milestone "v1.5" # ✅ WORKING
# github-manager batch label --add "resolved" --milestone "v1.5" # ❌ NOT YET IMPLEMENTED
```

## Testing & Quality
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,5 @@ Thumbs.db
*.swp
*.swo
*~

config.json
5 changes: 2 additions & 3 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,8 @@
"files.trimTrailingWhitespace": true,
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true,
"ruff.lint.run": "onSave",
"ruff.format.args": ["--config", "${workspaceFolder}/ruff.toml"],
"ruff.lint.args": ["--config", "${workspaceFolder}/ruff.toml"],
"ruff.configurationPreference": "filesystemFirst",
"ruff.path": ["ruff"],
"mypy-type-checker.args": [
"--ignore-missing-imports",
"--show-error-codes"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ github-manager status
github-manager download --state all

# Show statistics
github-manager stats
github-manager analytics

# Team analysis
github-manager team
Expand Down Expand Up @@ -110,7 +110,7 @@ github-manager sync --direction both

```bash
# Show statistics
github-manager stats
github-manager analytics

# Team analysis
github-manager team
Expand Down
23 changes: 23 additions & 0 deletions config.example.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"github": {
"owner": "your-org",
"repo": "your-repo",
"token_env_names": [
"GITHUB_TOKEN",
"GH_TOKEN",
"GIT_TOKEN"
]
},
"paths": {
"base_dir": ".github-manager",
"workspace": "workspace",
"output": "output",
"metadata": "metadata"
},
"settings": {
"sync_update_history": true,
"auto_backup": true,
"verbose_output": false
},
"expertise_rules": {}
}
File renamed without changes.
File renamed without changes.
12 changes: 6 additions & 6 deletions DEVELOPMENT.md → docs/DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,13 +146,13 @@ from typing import Dict, List

def load_config(path: str) -> Dict[str, Any]:
"""Load configuration from file.

Args:
path: Path to configuration file

Returns:
Configuration dictionary

Raises:
FileNotFoundError: If config file doesn't exist
ValueError: If config file is invalid
Expand All @@ -162,7 +162,7 @@ def load_config(path: str) -> Dict[str, Any]:
f"Config file not found: {path}. "
f"Please create it from .env.template"
)

with open(path) as f:
return yaml.safe_load(f)
```
Expand Down Expand Up @@ -228,10 +228,10 @@ from typing import List, Dict

def new_feature_function(data: List[Dict]) -> str:
"""Process data for new feature.

Args:
data: List of dictionaries

Returns:
Processed result
"""
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion docs/FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ jobs:
- run: github-manager download
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: github-manager stats
- run: github-manager analytics
```

### Q: Can I export data to other formats?
Expand Down
Loading
Loading