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