git_sitrep() works again without error if token is expired#2014
Closed
olivroy wants to merge 1 commit intor-lib:mainfrom
Closed
git_sitrep() works again without error if token is expired#2014olivroy wants to merge 1 commit intor-lib:mainfrom
git_sitrep() works again without error if token is expired#2014olivroy wants to merge 1 commit intor-lib:mainfrom
Conversation
git_sitrep() works again without error if token is absent
Member
Can you open a separate issue about that, so we don't lose track of it? |
Member
|
I can't seem to reproduce the problem. I just installed from Do you understand why we are having such a different experience? |
Contributor
Author
|
I have |
Member
|
So do I: Are you sure this isn't about scopes for the token? I don't see how this can be about the token being absent. |
git_sitrep() works again without error if token is absentgit_sitrep() works again without error if token is expired
Contributor
Author
Member
|
Ok yeah absent and expired are pretty different! |
Member
|
I found a simpler solution to this. I think this was just a think-o that probably predated the switch to cli. |
Member
|
What you see now with an expired token: |
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
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.

@jennybc this is a fix to a regression that is caused by the switch to cli.
Basically, this removes some elements to the message object, since it contains many things that should not be printed.
usethis 2.2.3



Current main
This PR
Doesn't show
Error in gh():While working on this workaround fix, I saw another issue (not fixed).
The bullets are not properly formatted if a token is missing, but couldn't figure out how to fix this.
I'd recommend you running
usethis::git_sitrep()with an expired token to notice it.Issue I am noticing (not addressed)
