Refined-github: API calls need Personal Token to support frequent calls and private repos

Created on 14 Jun 2018  路  26Comments  路  Source: sindresorhus/refined-github

Refined GitHub needs

bug good first issue help wanted meta

All 26 comments

Features that can use API:

  • Embedded gists (https://developer.github.com/v3/gists/#get-a-single-gist)
  • Public gist count
  • Searching issues
  • CI/CD status links (https://developer.github.com/v3/repos/statuses/#get-the-combined-status-for-a-specific-ref)
  • Get users full name (https://developer.github.com/v3/users/#get-a-single-user)

Can also use GraphQL API to request only required data.

Maybe its just me, I feel very unconformable with the token being displayed with one click. In your issue linker its 2 steps (1. click the ext. 2. Click options).

Can we collapse the token area once its filled in (add a + symbol)?

In your issue linker its 2 steps (1. click the ext. 2. Click options).

How is it different here? The token appears in the options

Its 2 steps

1.
image
Then Step 2 opens the options

Right, how is that different from Refined GitHub?

@bfred-it clicking on the ext shows the token.

Why is your button not hidden in the overflow? It's pretty much useless

Why is your button not hidden in the overflow? It's pretty much useless

What?

image

This overflow:

extensions overflow

@bfred-it 馃憤, ok...

Would rather not do that.

Im not saying that there is no way to get my key, I just feel unconformable the way its setup now.

@sindresorhus thoughts?

If someone has access/control of your computer, all bets are off anyway, so I don't fully agree with your reasoning. That being said, I don't mind making it a password type input. GitHub hides it too: https://github.com/settings/tokens

The issue is not the access, it just doesn't feel right to have it displayed in plain text.
@bfred-it had an issue with using password as it gives a false sense of security.

Also I work in an office and a screenshot is taken every min of my screen, so having it in plain text...

@sindresorhus GitHub doesn't store them on your computer in plain text like Chrome does

Also I work in an office and a screenshot is taken every min of my screen, so having it in plain text...

That's some serious trust issues. We can think of something...

type=password is the last resort, so how about making the field shorter so it won't be displayed in full? Am I thinking too hard?

width: 50%

Also I work in an office and a screenshot is taken every min of my screen, so having it in plain text...

馃様

@yakov116 now I wonder how you're going to get that token in the first place without having it on screen since GitHub does this: 馃槄

@bfred-it lol,
I have my ways :)

Just want to point out its nothing to do with trust. My boss does it so we know that he CAN look back at what we were doing.
But knowing that he can....

Can we collapse the text area after its full? And only show it with clicking the + symbol?

Which scopes should be selected for the token? Just repo or anything else?

Can you open a new issue for that? We can change the url to include the required scopes

Some instructions on the scopes that should be given to the token would be very welcome. Right now, there are a lot, and I'm not sure which ones RG can utilize.

image

@archon810 No need to do anything else. The "Repo" scope is automatically checked.

Understood, but to the user, it's not obvious. A small clarification that the right set has been pre-selected would go a long way.

@archon810 PRs are welcome to make it more obvious or an issue with mockups of what you would propose to change.

Was this page helpful?
0 / 5 - 0 ratings