Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Gepetto
dashboard
Commits
558d07db
Commit
558d07db
authored
Nov 23, 2018
by
Guilhem Saurel
Browse files
update: update keep_doc field
parent
7bed1f31
Pipeline
#1894
failed with stages
in 1 minute and 4 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
rainboard/management/commands/update.py
View file @
558d07db
...
@@ -3,6 +3,7 @@ import logging
...
@@ -3,6 +3,7 @@ import logging
from
django.conf
import
settings
from
django.conf
import
settings
from
django.core.management
import
call_command
from
django.core.management
import
call_command
from
django.core.management.base
import
BaseCommand
from
django.core.management.base
import
BaseCommand
from
django.db.models
import
F
,
Q
from
rainboard.models
import
Branch
,
Project
,
Repo
,
Robotpkg
from
rainboard.models
import
Branch
,
Project
,
Repo
,
Robotpkg
from
rainboard.utils
import
update_robotpkg
from
rainboard.utils
import
update_robotpkg
...
@@ -37,4 +38,9 @@ class Command(BaseCommand):
...
@@ -37,4 +38,9 @@ class Command(BaseCommand):
logger
.
info
(
f
'
{
project
}
'
)
logger
.
info
(
f
'
{
project
}
'
)
project
.
update
()
project
.
update
()
Branch
.
objects
.
filter
(
Q
(
name__endswith
=
'master'
)
|
Q
(
name__endswith
=
'devel'
),
repo__namespace
=
F
(
'project__main_namespace'
),
repo__forge__source
=
SOURCES
.
gitlab
).
update
(
keep_doc
=
True
)
call_command
(
'delete_perso'
)
call_command
(
'delete_perso'
)
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