-
Notifications
You must be signed in to change notification settings - Fork 0
Borrow chapter token fix #19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Change file reading from doc_path to dest_file before processing to attempt to fix error identified while testing this branch
Contributor
…er-fix Update file reading for content modification
Contributor
|
@carriewright11 as described in #20 (which I merged into this branch), I've verified that ottrpal borrow chapter works as expected now! Good to merge this to main? |
Contributor
|
kweav
approved these changes
Dec 16, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Purpose/implementation Section
Talking to @kweav, It was decided that the borrow chapter functionality should be limited to public repos only. This means there does not need to be a token present for the api call. We also decided it would be best to refactor the method to use the GitHub API like the rest of the methods in this file.
However, the
check_git_repofunction would fail if a token was not provided as it falls back onget_token(app_name = "github"which itself errors ifauthorize("github")has not previously been called.What changes are being implemented in this Pull Request
tokenparameter from the borrow chapter implementationcheck_git_repofunction to still allow a token, but not fail if it is not provided with onecheck_git_repofunction to utilize the GitHub api rather thangit remote-lsA couple of other notes:
git@rather thanhttpsreturn_reporesult file that we lose as part of moving away fromgit remote-lsWhat GitHub issue does your pull request address?
N/A
Tell potential reviewers what kind of feedback you are soliciting.
Any! This was tested as follows: