Skip to content

Commit 61c6f78

Browse files
committed
fixed unit tests
1 parent fd7fd6a commit 61c6f78

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

App/DL/Repository/Alias/ProjectAliasRepository.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,11 @@ public static ProjectAlias Create(Model.Project.Project project) {
2626
var alias = PrepareAlias(project.name);
2727

2828
var creator = project.Creator();
29-
var owner = creator != null ?
30-
PrepareAlias(creator.login) : PrepareAlias(project.Repository().GithubRepo().Owner.Login);
29+
30+
var owner = creator != null ? PrepareAlias(creator.login) : "_";
31+
#if !DEBUG
32+
if (creator == null) owner = PrepareAlias(project.Repository().GithubRepo().Owner.Login);
33+
#endif
3134

3235
var newAlias = alias;
3336
var postfix = 0;

docker/build_and_push.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ docker build -t registry.gitlab.com/mxss/gitcom-api/gitcom-backend:"$1" -f docke
1010
echo "Pushing image to registy"
1111
docker push registry.gitlab.com/mxss/gitcom-api/gitcom-backend:"$1"
1212

13-
echo "Done. version $1 is built and pushed."
13+
echo "Done. version $1 is built and pushed."

0 commit comments

Comments
 (0)