Skip to content

Commit 7efd763

Browse files
committed
Constant name updated
1 parent 8caf425 commit 7efd763

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

readthedocs/builds/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
from readthedocs.projects.constants import (
2323
BITBUCKET_COMMIT_URL,
2424
BITBUCKET_URL,
25-
GITHUB,
25+
GITHUB_BRAND,
2626
GITHUB_COMMIT_URL,
2727
GITHUB_URL,
2828
GITHUB_PULL_REQUEST_URL,
@@ -838,7 +838,7 @@ def is_external(self):
838838
@property
839839
def external_version_name(self):
840840
if self.is_external:
841-
if self.project.git_provider_name == GITHUB:
841+
if self.project.git_provider_name == GITHUB_BRAND:
842842
return GITHUB_EXTERNAL_VERSION_NAME
843843
# TODO: Add External Version Name for other Git Providers
844844

readthedocs/projects/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,4 +357,4 @@
357357
GITHUB_PR_PULL_PATTERN = 'pull/{id}/head:external-{id}'
358358

359359
# Git provider names
360-
GITHUB = 'GitHub'
360+
GITHUB_BRAND = 'GitHub'

readthedocs/projects/tasks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
from readthedocs.oauth.models import RemoteRepository
6666
from readthedocs.oauth.notifications import GitBuildStatusFailureNotification
6767
from readthedocs.oauth.services.github import GitHubService
68-
from readthedocs.projects.constants import GITHUB
68+
from readthedocs.projects.constants import GITHUB_BRAND
6969
from readthedocs.projects.models import APIProject, Feature
7070
from readthedocs.search.utils import index_new_files, remove_indexed_files
7171
from readthedocs.sphinx_domains.models import SphinxDomain
@@ -1892,7 +1892,7 @@ def send_build_status(build_pk, commit, status):
18921892
build = Build.objects.get(pk=build_pk)
18931893
provider_name = build.project.git_provider_name
18941894

1895-
if provider_name == GITHUB:
1895+
if provider_name == GITHUB_BRAND:
18961896
# get the service class for the project e.g: GitHubService.
18971897
service_class = build.project.git_service_class()
18981898
try:

0 commit comments

Comments
 (0)