1
0
mirror of https://github.com/strongdm/comply synced 2025-12-06 06:14:09 +00:00

partial jira implementation; TODO: all Find/Read and Link cases.

This commit is contained in:
Justin McCarthy
2018-05-30 16:28:31 -07:00
parent 0f68acae10
commit 10dc0b70e0
10 changed files with 294 additions and 19 deletions

View File

@@ -5,6 +5,7 @@ import (
"sort"
"time"
"github.com/pkg/errors"
"github.com/strongdm/comply/internal/config"
"github.com/strongdm/comply/internal/model"
)
@@ -93,8 +94,12 @@ func load() (*model.Data, *renderData, error) {
rd.Name = project.OrganizationName
rd.Controls = controls
// TODO: unhardcode plugin
tp := model.GetPlugin(model.GitHub)
ts, err := config.Config().TicketSystem()
if err != nil {
return nil, nil, errors.Wrap(err, "error in ticket system configuration")
}
tp := model.GetPlugin(model.TicketSystem(ts))
if tp.Configured() {
links := tp.Links()
rd.Links = &links