Add GitHub OAuth integration for repo indexing via existing pipeline #1175
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds GitHub OAuth App support for indexing repositories using the existing pipeline (
github_to_entries.py
). It allows users to authenticate via GitHub and select repositories for indexing using access tokens.This is primarily a self-contained feature and does not affect other parts of the codebase outside the GitHub integration.
What’s Included
api_github.py
).env
support for:GITHUB_CLIENT_ID
GITHUB_CLIENT_SECRET
GITHUB_REDIRECT_URI
github_to_entries.py
)Notes
/settings/content/github
UI.Testing
To test this PR, you'll need to create a GitHub OAuth App and add the following environment variables:
Let me know if you'd like me to include setup instructions or a sample
.env
file in the repo/docs.Related
github_to_entries.py