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
33519376
Commit
33519376
authored
Nov 27, 2018
by
Guilhem Saurel
Browse files
github & gitlab: ignore archived projects
parent
0405ac12
Pipeline
#1928
passed with stages
in 45 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
rainboard/models.py
View file @
33519376
...
...
@@ -872,6 +872,8 @@ def get_default_forge(project):
def
update_gitlab
(
forge
,
data
):
if
data
[
'archived'
]:
return
if
'default_branch'
not
in
data
or
data
[
'default_branch'
]
is
None
:
return
logger
.
info
(
f
'update
{
data
[
"name"
]
}
from
{
forge
}
'
)
...
...
@@ -912,6 +914,8 @@ def update_gitlab(forge, data):
def
update_github
(
forge
,
namespace
,
data
):
if
data
[
'archived'
]:
return
logger
.
info
(
f
'update
{
data
[
"name"
]
}
from
{
forge
}
'
)
project
,
_
=
Project
.
objects
.
get_or_create
(
name
=
valid_name
(
data
[
'name'
]),
defaults
=
{
...
...
Write
Preview
Markdown
is supported
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