File tree 1 file changed +2
-2
lines changed 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -709,7 +709,7 @@ def validate_readthedocs(repo):
709
709
errors .append (ERROR_RTD_ADABOT_MISSING )
710
710
711
711
valid_versions = requests .get (
712
- "https://readthedocs.org/api/v2/project/{}/valid_versions /" .format (subproject ["id" ]),
712
+ "https://readthedocs.org/api/v2/project/{}/active_versions /" .format (subproject ["id" ]),
713
713
timeout = 15 )
714
714
if not valid_versions .ok :
715
715
errors .append (ERROR_RTD_VALID_VERSIONS_FAILED )
@@ -719,7 +719,7 @@ def validate_readthedocs(repo):
719
719
if not latest_release .ok :
720
720
errors .append (ERROR_GITHUB_RELEASE_FAILED )
721
721
else :
722
- if latest_release .json ()["tag_name" ] not in valid_versions ["flat" ]:
722
+ if latest_release .json ()["tag_name" ] not in [ tag [ "verbose_name" ] for tag in valid_versions ["versions" ] ]:
723
723
errors .append (ERROR_RTD_MISSING_LATEST_RELEASE )
724
724
725
725
# There is no API which gives access to a list of builds for a project so we parse the html
You can’t perform that action at this time.
0 commit comments