Skip to content

Commit 7861b0e

Browse files
authored
Merge pull request #5948 from saadmk11/pr-builder-update
Small Changes to PR Builder Code
2 parents ea09b41 + b3128ae commit 7861b0e

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

docs/guides/feature-flags.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ e.g. python-reno release notes manager is known to do that
3030

3131
``USE_TESTING_BUILD_IMAGE``: :featureflags:`USE_TESTING_BUILD_IMAGE`
3232

33-
``ENABLE_EXTERNAL_VERSION_BUILD``: :featureflags:`ENABLE_EXTERNAL_VERSION_BUILD`
33+
``EXTERNAL_VERSION_BUILD``: :featureflags:`EXTERNAL_VERSION_BUILD`

readthedocs/api/v2/views/footer_views.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from rest_framework_jsonp.renderers import JSONPRenderer
1010

1111
from readthedocs.api.v2.signals import footer_response
12-
from readthedocs.builds.constants import LATEST, TAG, INTERNAL
12+
from readthedocs.builds.constants import LATEST, TAG
1313
from readthedocs.builds.models import Version
1414
from readthedocs.projects.models import Project
1515
from readthedocs.projects.version_handling import (

readthedocs/builds/constants.py

+10-10
Original file line numberDiff line numberDiff line change
@@ -62,33 +62,33 @@
6262
STABLE,
6363
)
6464

65-
# GitHub Build Statuses
66-
GITHUB_BUILD_STATE_FAILURE = 'failure'
67-
GITHUB_BUILD_STATE_PENDING = 'pending'
68-
GITHUB_BUILD_STATE_SUCCESS = 'success'
69-
7065
# General Build Statuses
7166
BUILD_STATUS_FAILURE = 'failed'
7267
BUILD_STATUS_PENDING = 'pending'
7368
BUILD_STATUS_SUCCESS = 'success'
7469

70+
# GitHub Build Statuses
71+
GITHUB_BUILD_STATUS_FAILURE = 'failure'
72+
GITHUB_BUILD_STATUS_PENDING = 'pending'
73+
GITHUB_BUILD_STATUS_SUCCESS = 'success'
74+
7575
# Used to select correct Build status and description to be sent to each service API
7676
SELECT_BUILD_STATUS = {
7777
BUILD_STATUS_FAILURE: {
78-
'github': GITHUB_BUILD_STATE_FAILURE,
78+
'github': GITHUB_BUILD_STATUS_FAILURE,
7979
'description': 'The build failed!',
8080
},
8181
BUILD_STATUS_PENDING: {
82-
'github': GITHUB_BUILD_STATE_PENDING,
82+
'github': GITHUB_BUILD_STATUS_PENDING,
8383
'description': 'The build is pending!',
8484
},
8585
BUILD_STATUS_SUCCESS: {
86-
'github': GITHUB_BUILD_STATE_SUCCESS,
86+
'github': GITHUB_BUILD_STATUS_SUCCESS,
8787
'description': 'The build succeeded!',
8888
},
8989
}
9090

91+
RTD_BUILD_STATUS_API_NAME = 'continuous-documentation/read-the-docs'
92+
9193
GITHUB_EXTERNAL_VERSION_NAME = 'Pull Request'
9294
GENERIC_EXTERNAL_VERSION_NAME = 'External Version'
93-
94-
RTD_BUILD_STATUS_API_NAME = 'continuous-documentation/read-the-docs'

readthedocs/projects/models.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1407,7 +1407,7 @@ def add_features(sender, **kwargs):
14071407
SHARE_SPHINX_DOCTREE = 'share_sphinx_doctree'
14081408
DEFAULT_TO_MKDOCS_0_17_3 = 'default_to_mkdocs_0_17_3'
14091409
CLEAN_AFTER_BUILD = 'clean_after_build'
1410-
EXTERNAL_VERSION_BUILD = 'enable_external_version_build'
1410+
EXTERNAL_VERSION_BUILD = 'external_version_build'
14111411
UPDATE_CONDA_STARTUP = 'update_conda_startup'
14121412

14131413
FEATURES = (

0 commit comments

Comments
 (0)