Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tatuya Kamada
gitlab-ce
Commits
c590cd34
Commit
c590cd34
authored
Apr 03, 2015
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mask owner email when updated.
parent
17e23108
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
14 deletions
+10
-14
lib/gitlab/google_code_import/importer.rb
lib/gitlab/google_code_import/importer.rb
+10
-14
No files found.
lib/gitlab/google_code_import/importer.rb
View file @
c590cd34
...
@@ -169,13 +169,9 @@ module Gitlab
...
@@ -169,13 +169,9 @@ module Gitlab
"#428bca"
"#428bca"
when
"Status: Accepted"
when
"Status: Accepted"
"#5cb85c"
"#5cb85c"
when
"Status: NeedInfo"
"#f0ad4e"
when
"Status: Started"
when
"Status: Started"
"#8e44ad"
"#8e44ad"
when
"Status: Wishlist"
"#a8d695"
#
when
"Priority: Critical"
when
"Priority: Critical"
"#ffcfcf"
"#ffcfcf"
when
"Priority: High"
when
"Priority: High"
...
@@ -184,17 +180,17 @@ module Gitlab
...
@@ -184,17 +180,17 @@ module Gitlab
"#fff5cc"
"#fff5cc"
when
"Priority: Low"
when
"Priority: Low"
"#cfe9ff"
"#cfe9ff"
#
when
"Type: Defect"
when
"Type: Defect"
"#d9534f"
"#d9534f"
when
"Type: Enhancement"
when
"Type: Enhancement"
"#44ad8e"
"#44ad8e"
when
"Type: Other"
"#7f8c8d"
when
"Type: Review"
"#8e44ad"
when
"Type: Task"
when
"Type: Task"
"#4b6dd0"
"#4b6dd0"
when
"Type: Review"
"#8e44ad"
when
"Type: Other"
"#7f8c8d"
else
else
"#e2e2e2"
"#e2e2e2"
end
end
...
@@ -253,6 +249,10 @@ module Gitlab
...
@@ -253,6 +249,10 @@ module Gitlab
updates
<<
"*Status:
#{
raw_updates
[
"status"
]
}
*"
updates
<<
"*Status:
#{
raw_updates
[
"status"
]
}
*"
end
end
if
raw_updates
.
has_key?
(
"owner"
)
updates
<<
"*Owner:
#{
mask_email
(
raw_updates
[
"owner"
])
}
*"
end
if
raw_updates
.
has_key?
(
"cc"
)
if
raw_updates
.
has_key?
(
"cc"
)
cc
=
raw_updates
[
"cc"
].
map
do
|
l
|
cc
=
raw_updates
[
"cc"
].
map
do
|
l
|
deleted
=
l
.
start_with?
(
"-"
)
deleted
=
l
.
start_with?
(
"-"
)
...
@@ -277,10 +277,6 @@ module Gitlab
...
@@ -277,10 +277,6 @@ module Gitlab
updates
<<
"*Labels:
#{
labels
.
join
(
", "
)
}
*"
updates
<<
"*Labels:
#{
labels
.
join
(
", "
)
}
*"
end
end
if
raw_updates
.
has_key?
(
"owner"
)
updates
<<
"*Owner:
#{
raw_updates
[
"owner"
]
}
*"
end
if
raw_updates
.
has_key?
(
"mergedInto"
)
if
raw_updates
.
has_key?
(
"mergedInto"
)
updates
<<
"*Merged into: #
#{
raw_updates
[
"mergedInto"
]
}
*"
updates
<<
"*Merged into: #
#{
raw_updates
[
"mergedInto"
]
}
*"
end
end
...
...
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