access token 설정
GitHub API에 접근하려면 personal access token이 필요합니다 - 여기에서 설정할 수 있습니다: github.com/settings/tokens?type=beta. 이 token을 환경 변수GITHUB_PERSONAL_ACCESS_TOKEN으로 설정하면 자동으로 가져오거나, 초기화 시 access_token named parameter로 직접 전달할 수 있습니다.
Issue와 PR 로드하기
- include_prs
- milestone
- state
- assignee
- creator
- mentioned
- labels
- sort
- direction
- since
issue만 로드하기
기본적으로 GitHub API는 pull request도 issue로 간주합니다. pull request를 제외한 ‘순수한’ issue만 가져오려면include_prs=False를 사용하세요.
Github 파일 내용 로드하기
아래 코드는langchain-ai/langchain repository의 모든 markdown 파일을 로드합니다.
Connect these docs programmatically to Claude, VSCode, and more via MCP for real-time answers.