This commit is contained in:
Buu Nguyen 2016-02-18 20:00:26 -08:00
commit 18b387a467
2 changed files with 5 additions and 2 deletions

View File

@ -6,7 +6,7 @@ const GH_RESERVED_USER_NAMES = [
'search', 'developer', 'account',
'pulls', 'issues', 'features', 'contact',
'security', 'join', 'login', 'watching',
'new', 'integrations'
'new', 'integrations', 'gist'
]
const GH_RESERVED_REPO_NAMES = ['followers', 'following', 'repositories']
const GH_404_SEL = '#parallax_wrapper'

View File

@ -3,6 +3,7 @@ const GL_RESERVED_USER_NAMES = [
'explore', 'profile', 'public', 'groups', 'abuse_reports'
]
const GL_RESERVED_REPO_NAMES = []
const GL_RESERVED_TYPES = ['raw']
const GL_HEADER = '.navbar-gitlab'
const GL_SIDEBAR = '.sidebar-wrapper'
const GL_TITLE = 'h1.title'
@ -118,10 +119,12 @@ class GitLab extends Adapter {
const username = match[1]
const reponame = match[2]
const type = match[3]
// Not a repository, skip
if (~GL_RESERVED_USER_NAMES.indexOf(username) ||
~GL_RESERVED_REPO_NAMES.indexOf(reponame)) {
~GL_RESERVED_REPO_NAMES.indexOf(reponame) ||
~GL_RESERVED_TYPES.indexOf(type)) {
return cb()
}