Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
dashboards
Commits
b435259c6cd4
Commit
48e27291
authored
Jul 29, 2021
by
Laurent Peuch
Browse files
fix: sometime I can't read readthedocs
parent
0b0a38c06ea5
Pipeline
#106101
passed with stages
in 5 minutes and 25 seconds
Changes
1
Pipelines
1928
Hide whitespace changes
Inline
Side-by-side
qa_dashboard.py
View file @
b435259c
...
@@ -43,7 +43,10 @@ for number, cube in enumerate(all_cubes):
...
@@ -43,7 +43,10 @@ for number, cube in enumerate(all_cubes):
is_new_format
=
f
"cubicweb_
{
cube_normalized_name
}
"
in
cube_files
is_new_format
=
f
"cubicweb_
{
cube_normalized_name
}
"
in
cube_files
has_doc
=
bool
({
"doc"
,
"docs"
}
&
cube_files
)
# set intersection
has_doc
=
bool
({
"doc"
,
"docs"
}
&
cube_files
)
# set intersection
has_readthedocs
=
requests
.
get
(
f
"https://cubicweb-
{
cube_normalized_name
}
.readthedocs.io"
).
status_code
==
200
try
:
has_readthedocs
=
requests
.
get
(
f
"https://cubicweb-
{
cube_normalized_name
}
.readthedocs.io"
).
status_code
==
200
except
requests
.
exceptions
.
ConnectionError
:
has_readthedocs
=
False
number_of_mrs
=
len
([
mr
for
mr
in
cube
.
mergerequests
.
list
(
all
=
True
)
if
mr
.
state
==
"opened"
])
number_of_mrs
=
len
([
mr
for
mr
in
cube
.
mergerequests
.
list
(
all
=
True
)
if
mr
.
state
==
"opened"
])
number_of_topics
=
len
([
x
for
x
in
cube
.
branches
.
list
()
if
x
.
name
.
startswith
(
"topic/"
)])
number_of_topics
=
len
([
x
for
x
in
cube
.
branches
.
list
()
if
x
.
name
.
startswith
(
"topic/"
)])
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment