Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cookiecutter-data-analysis
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SASC
cookiecutter-data-analysis
Commits
59202e38
Commit
59202e38
authored
8 years ago
by
Laros
Browse files
Options
Downloads
Patches
Plain Diff
Better namespace support.
parent
9b112fe2
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cookiecutter.json
+1
-2
1 addition, 2 deletions
cookiecutter.json
hooks/post_gen_project.sh
+14
-4
14 additions, 4 deletions
hooks/post_gen_project.sh
with
15 additions
and
6 deletions
cookiecutter.json
+
1
−
2
View file @
59202e38
...
...
@@ -8,6 +8,5 @@
"molecular_type"
:
"RNA"
,
"experiment_type"
:
"RNASeq"
,
"project_name"
:
"jdoe-rnaseq"
,
"namespace"
:
"sasc"
,
"namespace_id"
:
"8"
"namespace"
:
"sasc"
}
This diff is collapsed.
Click to expand it.
hooks/post_gen_project.sh
+
14
−
4
View file @
59202e38
#!/bin/sh
gitlab project create
\
--name
{{
cookiecutter.project_name
}}
\
--namespace-id
{{
cookiecutter.namespace_id
}}
get_value
()
{
grep
"
$1
: "
|
cut
-f
2
-d
' '
}
namespace
={{
cookiecutter.namespace
}}
namespace_id
=
$(
gitlab group search
--query
$namespace
| get_value
id
)
namespace_opt
=
""
if
[
$namespace_id
]
;
then
namespace_opt
=
"--namespace-id
$namespace_id
"
else
namespace
=
$(
gitlab current-user get | get_value username
)
fi
git init
git add
.
git commit
-m
"Initial commit."
gitlab project create
--name
{{
cookiecutter.project_name
}}
$namespace_opt
git remote add origin
\
git@git.lumc.nl:
{{
cookiecutter.
namespace
}}
/
{{
cookiecutter.project_name
}}
.git
git@git.lumc.nl:
$
namespace
/
{{
cookiecutter.project_name
}}
.git
git push
--set-upstream
origin master
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment