Fix docs check

This commit is contained in:
alesapin 2021-11-30 10:42:02 +03:00
parent ad4e6a1ebd
commit cc3321f1ff

View File

@ -134,7 +134,7 @@ class PRInfo:
_, ext = os.path.splitext(f)
path_in_docs = 'docs' in f
path_in_website = 'website' in f
if (ext in DIFF_IN_DOCUMENTATION_EXT and path_in_docs and path_in_website) or 'docker/docs' in f:
if (ext in DIFF_IN_DOCUMENTATION_EXT and (path_in_docs or path_in_website)) or 'docker/docs' in f:
return True
return False