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
49e2df72ba75
Commit
b920bb0f
authored
Apr 13, 2021
by
Laurent Peuch
Browse files
fix: since I've been added in logilab group we need a more precise match for public cubes
parent
f8c726c79a78
Pipeline
#48977
canceled with stages
Changes
4
Pipelines
11
Hide whitespace changes
Inline
Side-by-side
add_badges_to_projects.py
View file @
49e2df72
...
@@ -5,7 +5,7 @@ import gitlab
...
@@ -5,7 +5,7 @@ import gitlab
gl
=
gitlab
.
Gitlab
(
"https://forge.extranet.logilab.fr"
,
oauth_token
=
os
.
environ
.
get
(
"GITLAB_TOKEN"
))
gl
=
gitlab
.
Gitlab
(
"https://forge.extranet.logilab.fr"
,
oauth_token
=
os
.
environ
.
get
(
"GITLAB_TOKEN"
))
all_core_projects
=
[
x
for
x
in
gl
.
projects
.
list
(
all
=
True
)
if
"cw-core"
in
x
.
tag_list
]
all_core_projects
=
[
x
for
x
in
gl
.
projects
.
list
(
all
=
True
)
if
"cw-core"
in
x
.
tag_list
]
all_cubes
=
[
x
for
x
in
gl
.
projects
.
list
(
all
=
True
)
if
x
.
namespace
[
"
name"
]
==
"
cubes"
]
all_cubes
=
[
x
for
x
in
gl
.
projects
.
list
(
all
=
True
)
if
x
.
namespace
[
"
full_path"
]
==
"cubicweb/
cubes"
]
for
project
in
all_core_projects
+
all_cubes
:
for
project
in
all_core_projects
+
all_cubes
:
existing_badges
=
{
x
.
name
for
x
in
project
.
badges
.
list
(
all
=
True
)}
existing_badges
=
{
x
.
name
for
x
in
project
.
badges
.
list
(
all
=
True
)}
...
...
mr_center.py
View file @
49e2df72
...
@@ -43,7 +43,7 @@ context: Dict[str, list] = {
...
@@ -43,7 +43,7 @@ context: Dict[str, list] = {
if
not
args
.
cache
or
not
os
.
path
.
exists
(
args
.
cache
):
if
not
args
.
cache
or
not
os
.
path
.
exists
(
args
.
cache
):
all_core_projects
=
[
x
for
x
in
gl
.
projects
.
list
(
all
=
True
)
if
"cw-core"
in
x
.
tag_list
]
all_core_projects
=
[
x
for
x
in
gl
.
projects
.
list
(
all
=
True
)
if
"cw-core"
in
x
.
tag_list
]
all_cubes
=
[
x
for
x
in
gl
.
projects
.
list
(
all
=
True
)
if
x
.
namespace
[
"
name"
]
==
"
cubes"
]
all_cubes
=
[
x
for
x
in
gl
.
projects
.
list
(
all
=
True
)
if
x
.
namespace
[
"
full_path"
]
==
"cubicweb/
cubes"
]
for
category
,
projects
in
[(
"core-projects"
,
all_core_projects
),
(
"cubes"
,
all_cubes
)]:
for
category
,
projects
in
[(
"core-projects"
,
all_core_projects
),
(
"cubes"
,
all_cubes
)]:
...
...
pipelines_status.py
View file @
49e2df72
...
@@ -42,7 +42,7 @@ for project in all_core_projects:
...
@@ -42,7 +42,7 @@ for project in all_core_projects:
context
[
"projects"
]
=
sorted
(
context
[
"projects"
],
key
=
lambda
x
:
x
[
"project"
][
"name"
].
lower
())
context
[
"projects"
]
=
sorted
(
context
[
"projects"
],
key
=
lambda
x
:
x
[
"project"
][
"name"
].
lower
())
all_cubes
=
[
x
for
x
in
gl
.
projects
.
list
(
all
=
True
)
if
x
.
namespace
[
"
name"
]
==
"
cubes"
]
all_cubes
=
[
x
for
x
in
gl
.
projects
.
list
(
all
=
True
)
if
x
.
namespace
[
"
full_path"
]
==
"cubicweb/
cubes"
]
logger
.
info
(
"parsing all cubes..."
)
logger
.
info
(
"parsing all cubes..."
)
for
cube
in
all_cubes
:
for
cube
in
all_cubes
:
...
...
qa_dashboard.py
View file @
49e2df72
...
@@ -13,7 +13,7 @@ gl = gitlab.Gitlab("https://forge.extranet.logilab.fr", oauth_token=os.environ.g
...
@@ -13,7 +13,7 @@ gl = gitlab.Gitlab("https://forge.extranet.logilab.fr", oauth_token=os.environ.g
context
=
{
"cubes"
:
[]}
context
=
{
"cubes"
:
[]}
all_cubes
=
[
x
for
x
in
gl
.
projects
.
list
(
all
=
True
)
if
x
.
namespace
[
"
name"
]
==
"
cubes"
]
all_cubes
=
[
x
for
x
in
gl
.
projects
.
list
(
all
=
True
)
if
x
.
namespace
[
"
full_path"
]
==
"cubicweb/
cubes"
]
PYTEST_CAPTURE_DEPRECATEDWARNINGS_PACKAGE_URI
=
"git+https://github.com/psycojoker/pytest-capture-deprecatedwarnings"
PYTEST_CAPTURE_DEPRECATEDWARNINGS_PACKAGE_URI
=
"git+https://github.com/psycojoker/pytest-capture-deprecatedwarnings"
...
...
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