You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sequenceDiagram
participant User
participant CLI
participant Auth
participant Cache
participant API
participant GitHub
User->>CLI: ghp item list project-123
CLI->>Auth: Get Token
Auth-->>CLI: Token
CLI->>Cache: Check Cache
alt Cache Hit
Cache-->>CLI: Cached Data
CLI-->>User: Display Results
else Cache Miss
CLI->>API: GraphQL Query
API->>GitHub: API Request
GitHub-->>API: Response
API-->>CLI: Parsed Data
CLI->>Cache: Store in Cache
CLI-->>User: Display Results
end
# 필드 목록 조회
ghp field list <project-id># 필드 생성
ghp field create <project-id><name> --type text|number|date|single_select|iteration
# 필드 수정
ghp field update <project-id><field-id> [--name <name>] [--options <json>]
# 필드 삭제
ghp field delete <project-id><field-id> [--force]
3.2 Phase 2: Advanced - 2개월
3.2.1 뷰 관리
# 뷰 목록 조회
ghp view list <project-id># 뷰 생성
ghp view create <project-id><name> --layout table|board|roadmap
# 뷰 설정
ghp view config <project-id><view-id> \
[--filter <expression>] \
[--sort <field>:<direction>] \
[--group-by <field>]
# 뷰 삭제
ghp view delete <project-id><view-id>
# 대화형 프로젝트 선택
ghp interactive
# 대화형 아이템 추가
ghp item add --interactive
# 대화형 필드 업데이트
ghp item update --interactive
3.3 Phase 3: Automation & Analytics - 2개월
3.3.1 자동화
# 워크플로우 목록
ghp automation list <project-id># 워크플로우 생성
ghp automation create <project-id><name> --trigger <event> --action <action># 워크플로우 실행
ghp automation run <project-id><workflow-id># 워크플로우 삭제
ghp automation delete <project-id><workflow-id># 조건부 자동화
ghp automation create <project-id>"Auto Archive" \
--trigger "item.status=Done" \
--action "archive"
3.3.2 보고서 및 분석
# 프로젝트 통계
ghp stats <project-id> [--period 7d|30d|90d]
# 번다운 차트
ghp report burndown <project-id> --sprint <iteration-field># 속도 차트
ghp report velocity <project-id> --sprints <n># 사이클 타임
ghp report cycle-time <project-id> [--from <date>] [--to <date>]
# 커스텀 보고서
ghp report custom <project-id> --template <template-file> --output <file>
3.4 Phase 4: Enterprise - 3개월
3.4.1 고급 기능
# 크로스 레포지토리 프로젝트
ghp cross-repo add <project-id> --repos <repo1,repo2,repo3># 대규모 프로젝트 지원 (50,000+ 아이템)
ghp config set max-items 50000
# 프로젝트 백업
ghp backup <project-id> --output <file># 프로젝트 복원
ghp restore --file <backup-file># 마이그레이션
ghp migrate --from jira|trello|asana --config <config-file>
3.4.2 팀 협업
# 권한 관리
ghp permission grant <project-id> --user <username> --role admin|write|read
# 팀 할당
ghp team assign <project-id> --team <team-slug># 활동 로그
ghp activity <project-id> [--user <username>] [--since <date>]
4. 사용자 인터페이스
4.1 출력 형식
테이블 출력 (기본)
┌────────┬──────────────┬─────────┬──────────┬───────────┐
│ ID │ Title │ Status │ Assignee │ Updated │
├────────┼──────────────┼─────────┼──────────┼───────────┤
│ PVTI_1 │ Setup CI/CD │ In Prog │ @john │ 2h ago │
│ PVTI_2 │ Add tests │ Todo │ @jane │ 1d ago │
│ PVTI_3 │ Fix bug #123 │ Done │ @bob │ 3d ago │
└────────┴──────────────┴─────────┴──────────┴───────────┘
? Select a project:
❯ roboco-io/ghp-cli (12 items)
roboco-io/website (8 items)
roboco-io/api (24 items)
? What would you like to do?
❯ View items
Add item
Update field
Generate report
? Select items to update: (Space to select, Enter to confirm)
◯ PVTI_1: Setup CI/CD
◉ PVTI_2: Add tests
◯ PVTI_3: Fix bug #123
Error [E2001]: Failed to fetch project
The project 'PVT_123' could not be found.
Possible causes:
• The project ID is incorrect
• You don't have access to this project
• The project has been deleted
Try:
• Run 'ghp list' to see available projects
• Check your permissions with 'ghp permission check'
8. 테스트 전략
8.1 테스트 범위
단위 테스트: 80% 이상 커버리지
통합 테스트: 핵심 워크플로우
E2E 테스트: 주요 사용 시나리오
성능 테스트: 대용량 데이터 처리
8.2 테스트 자동화
# .github/workflows/test.ymlname: Teston: [push, pull_request]jobs:
test:
runs-on: ubuntu-lateststeps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4with:
go-version: '1.21'
- run: make test
- run: make coverage
gantt
title ghp-cli Development Timeline
dateFormat YYYY-MM-DD
section Phase 1 - Core
프로젝트 설정 & 아키텍처 :2024-01-01, 14d
인증 & API 클라이언트 :14d
프로젝트 관리 기능 :14d
아이템 & 필드 관리 :14d
section Phase 2 - Advanced
뷰 관리 시스템 :2024-03-01, 14d
일괄 작업 기능 :14d
대화형 모드 :14d
테스트 & 문서화 :14d
section Phase 3 - Analytics
자동화 워크플로우 :2024-05-01, 21d
보고서 & 분석 :21d
성능 최적화 :14d
section Phase 4 - Enterprise
엔터프라이즈 기능 :2024-07-01, 28d
팀 협업 기능 :14d
마이그레이션 도구 :14d
GA 준비 & 출시 :28d