Skip to content

fix: fork PR 지원을 위한 Claude Code 워크플로우 수정#13

Merged
haedoang merged 1 commit intoGrowing-Up-Together:masterfrom
haedoang:feature/CLD-1
Jan 17, 2026
Merged

fix: fork PR 지원을 위한 Claude Code 워크플로우 수정#13
haedoang merged 1 commit intoGrowing-Up-Together:masterfrom
haedoang:feature/CLD-1

Conversation

@haedoang
Copy link
Copy Markdown
Contributor

@haedoang haedoang commented Jan 17, 2026

개요

fork 저장소에서 upstream으로 보내는 PR에서 Claude Code가 정상 작동하도록 GitHub Actions 워크플로우를 수정합니다.

문제 상황

에러

fatal: couldn't find remote ref ORD-5
Error: Prepare step failed with error: Command failed: git fetch origin --depth=20 ORD-5

원인

  • PR 구조: haedoang/orderstream (fork, ORD-5 브랜치 존재) → Growing-Up-Together/orderstream (upstream, ORD-5 브랜치 없음)
  • GitHub Actions는 upstream 저장소에서 실행
  • 수동 checkout 단계가 upstream만 체크아웃
  • claude-code-action이 내부적으로 git fetch origin ORD-5 실행 시 브랜치를 찾을 수 없음

해결 방법

변경 사항

  • 수동 checkout 단계 제거: actions/checkout@v5 단계 삭제
  • claude-code-action이 내부적으로 PR context를 인식하여 fork PR 처리
  • action이 자동으로 적절한 저장소(fork)에서 브랜치 체크아웃

기술적 배경

# Before (문제 발생)
steps:
  - name: Checkout repository
    uses: actions/checkout@v5     # upstream만 체크아웃
  - name: Run Claude Code
    uses: anthropics/claude-code-action@v1

# After (해결)
steps:
  - name: Run Claude Code
    uses: anthropics/claude-code-action@v1  # fork PR도 자동 처리

테스트 계획

참고 자료

🤖 Generated with Claude Code

Add GitHub Actions workflow for Claude Code integration to enable automated
code assistance through @claude mentions in issues and pull requests.

Features:
- Trigger Claude on issue comments, PR comments, and PR reviews
- Configure permissions for repository access and CI results
- Support customizable trigger phrases and assignee triggers

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@haedoang haedoang changed the title ci: add Claude Code GitHub Actions workflow ci: Claude Code GitHub Actions 워크플로우 추가 Jan 17, 2026
@haedoang haedoang merged commit 0f33821 into Growing-Up-Together:master Jan 17, 2026
@haedoang haedoang changed the title ci: Claude Code GitHub Actions 워크플로우 추가 fix: fork PR 지원을 위한 Claude Code 워크플로우 수정 Jan 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant