summaryrefslogtreecommitdiffstatshomepage
path: root/bridge/gitlab/import_notes.go
diff options
context:
space:
mode:
authorAmine Hilaly <hilalyamine@gmail.com>2019-07-22 00:13:47 +0200
committerAmine Hilaly <hilalyamine@gmail.com>2019-07-23 17:18:04 +0200
commitb27647c7a0dd95fdbbe4d22962129615fc5c9325 (patch)
tree285303bbb522f90266ac99cf7f5a196bbafd0843 /bridge/gitlab/import_notes.go
parentb18507836cd1716ba842e82eb8d42c82b8d62d71 (diff)
downloadgit-bug-b27647c7a0dd95fdbbe4d22962129615fc5c9325.tar.gz
git-bug-b27647c7a0dd95fdbbe4d22962129615fc5c9325.zip
bridge/gitlab: Fix test project path
bridge/gitlab: update comments
Diffstat (limited to 'bridge/gitlab/import_notes.go')
-rw-r--r--bridge/gitlab/import_notes.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/bridge/gitlab/import_notes.go b/bridge/gitlab/import_notes.go
index 37bf2834..a096b14e 100644
--- a/bridge/gitlab/import_notes.go
+++ b/bridge/gitlab/import_notes.go
@@ -26,10 +26,7 @@ const (
NOTE_UNKNOWN
)
-// GetNoteType parses note body a give it type
-// Since gitlab api return all these NoteType event as the same object
-// and doesn't provide a field to specify the note type. We must parse the
-// note body to detect it type.
+// GetNoteType parse a note system and body and return the note type and it content
func GetNoteType(n *gitlab.Note) (NoteType, string) {
if !n.System {
return NOTE_COMMENT, n.Body