Skip to content

Support fine-grained tokens in the options and update the widget - #6956

Merged
fregante merged 4 commits into
refined-github:mainfrom
134130:fine-grained-token
Sep 27, 2023
Merged

fregante merged 4 commits into
refined-github:mainfrom
134130:fine-grained-token

Conversation

@134130

@134130 134130 commented Sep 24, 2023

Copy link
Copy Markdown
Contributor

Description

Test URLs

  • Your extension's options page

Screenshot

default.mp4

Comment thread source/options.tsx Resolved
Comment thread source/options.tsx Resolved
Comment thread source/options.tsx Resolved

@fregante fregante left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😍 fantastic

Comment thread source/options.tsx
import {doesBrowserActionOpenOptions} from './helpers/feature-utils.js';
import {state as bisectState} from './helpers/bisect.js';

type TokenType = 'classic' | 'fine_grained';

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Snake case is only used by GitHub's own permissions, but the rest of the form only uses camelCase. Let's stick to that here

@fregante
fregante merged commit db62e3b into refined-github:main Sep 27, 2023
@134130
134130 deleted the fine-grained-token branch October 17, 2023 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

Detect fine-grained tokens in the options and update the widget

3 participants