Commit e78bc987 authored by Adam Harrison-Fuller's avatar Adam Harrison-Fuller
Browse files

Only increment the issues_created counter if we create an issue



Signed-off-by: default avatarAdam Harrison-Fuller <adam@adamhf.io>
parent 86a9aad7
......@@ -108,9 +108,8 @@ func (feed Feed) checkFeed(db *gorm.DB, gitlabClient *gitlab.Client) {
} else {
fmt.Printf("Created Gitlab Issue '%s' in project: %d' \n", item.Title, feed.GitlabProjectID)
db.Create(&SyncedItems{UUID: item.GUID, Feed: feed.ID})
issuesCreatedCounter.Inc()
}
issuesCreatedCounter.Inc()
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment