-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Improve and fix remove-projects-tab
#3103
Improve and fix remove-projects-tab
#3103
Conversation
Exclude settings from org `set-default-repo...`
Yes, but this is not an organization repo check, it's an organization check. It applies to: https://github.com/babel I suggest renaming them to
/** @deprecated use canUserEditRepo */
export const isRepoWithAccess = canUserEditRepo |
This whole feature can be rewritten in 2 init functions:
They have very different conditions, however both depend on function getProjectsTab() {
return elementReady([
'[data-hotkey="g b"]', // In organizations and repos
'.user-profile-nav [href$="?tab=projects"]' // In user profiles
].join());
} |
Blocked by refined-github/github-url-detection#3 |
remove-projects-tab
remove-projects-tab
This needs more work. Dont review this PR yet (But I can still use refined-github/github-url-detection#3) |
Co-authored-by: Fregante <[email protected]>
Co-authored-by: Fregante <[email protected]>
There's a comment about it
Updated logic and first post. Dont have a org with projects to test on. |
This comment has been minimized.
This comment has been minimized.
This works, but there's a little big problem: counters are loaded after dom-ready so sometimes the tab is removed even on https://github.com/microsoft |
This seems to work. Thoughts? |
Awesome! Very clean (love the emojis) 😄 |
remove-projects-tab
remove-projects-tab
🙌 |
Split
remove-projects-tab
into 2 parts.Test on:
https://github.com/microsoft
https://github.com/twbs/bootstrap
https://github.com/babel