Skip to content
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

feat: check for github scopes #673

Merged
merged 8 commits into from
Dec 8, 2023
Merged

feat: check for github scopes #673

merged 8 commits into from
Dec 8, 2023

Conversation

afonsojramos
Copy link
Member

@afonsojramos afonsojramos commented Oct 17, 2023

Alternative to #660, also attempting to fix #624, since enabling colors for existing users is breaking notifications for those without the repo scope.

This PR notifies the user every time that he doesn't have the required scopes and disables colors in case he doesn't. Opted by not logging out to not be too annoying.

Warning: Implementation might not be the best.

@afonsojramos
Copy link
Member Author

A test to validate that it does not allow to disable colors needs to be added, but I need to fix this axios error beforehand

src/routes/Settings.tsx Outdated Show resolved Hide resolved
Copy link
Collaborator

@bmulholland bmulholland left a comment

Choose a reason for hiding this comment

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

Changes look generally good, just the comments about testing

@afonsojramos afonsojramos merged commit 463c544 into main Dec 8, 2023
7 checks passed
@afonsojramos afonsojramos deleted the chore/check-scopes branch December 8, 2023 18:05
@setchy setchy added the enhancement New feature or enhancement to existing functionality label Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or enhancement to existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

No New notifications after update to 4.4
3 participants