Skip to content
Snippets Groups Projects
Verified Commit cb51a7f2 authored by Volker Schukai's avatar Volker Schukai :alien:
Browse files

chore: commit save point

parent 9c78f9b7
Branches
Tags
No related merge requests found
......@@ -309,6 +309,9 @@ func createIssue(issue Issue) (*gitlab.Issue, error) {
return gitlabIssue, err
}
printInfo("Created issue %s (%s)", gitlabIssue.Title, gitlabIssue.ID)
printInfo(" %s", gitlabIssue.WebURL)
return gitlabIssue, nil
}
......
......@@ -42,3 +42,16 @@ func printWarning(message string, a ...interface{}) {
color.Warn.Block(message)
}
func printInfo(message string, a ...interface{}) {
message = printer.Sprintf(message, a...)
if lastBlock == "info" {
color.Info.Println(" " + message)
return
}
lastBlock = "info"
color.Info.Block(message)
}
......@@ -78,7 +78,10 @@ func splitYamlParts(content []byte) (error, contentRequirement) {
}
data := requirement{}
node.Decode(&data)
err = node.Decode(&data)
if err != nil {
return err, contentRequirement{}
}
tempItem := []Item{}
for i, _ := range data.Items {
......
......@@ -45,7 +45,9 @@ Issues:
- Gitlab:
Title: Test 1
Status: offen
Description: Lorem Ipsum Lila Rot Blau1 Lila Rot Blau2
Description: |
Lorem Ipsum Lila Rot
Blau1 Lila Rot Blau2
Labels:
- a
- b
......@@ -101,11 +103,7 @@ Privacy:
# Where possible, a general description of the technical and organisational
# security measures referred to in Article 32(1).
TOM: null
Issues:
- Gitlab:
ID: 1
- Gitlab:
ID: 41
...
### {{ .Title }} - {{ .ID }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment