Setup access token
To access the GitHub API, you need a personal access token - you can set up yours here: github.com/settings/tokens?type=beta. You can either set this token as the environment variableGITHUB_PERSONAL_ACCESS_TOKEN
and it will be automatically pulled in, or you can pass it in directly at initialization as the access_token
named parameter.
Load Issues and PRs
- include_prs
- milestone
- state
- assignee
- creator
- mentioned
- labels
- sort
- direction
- since
Only load issues
By default, the GitHub API returns considers pull requests to also be issues. To only get ‘pure’ issues (i.e., no pull requests), useinclude_prs=False
Load Github File Content
For below code, loads all markdown file in rpeolangchain-ai/langchain