1
0
mirror of https://github.com/strongdm/comply synced 2024-07-02 23:14:22 +00:00
This commit is contained in:
Andy Magnusson 2018-12-06 10:39:15 -05:00
commit 1a3e2a2bf7
4 changed files with 61 additions and 60 deletions

View File

@ -6,4 +6,5 @@ Anthony Oliver
Justin Bodeutsch Justin Bodeutsch
Justin McCarthy <justin@strongdm.com> Justin McCarthy <justin@strongdm.com>
Manisha Singh Manisha Singh
Mason Hensley Mason Hensley
Matt Simerson

View File

@ -1 +1 @@
1.3.2 1.3.4

View File

@ -63,10 +63,10 @@ func (g *gitlabPlugin) Configured() bool {
func (g *gitlabPlugin) Links() model.TicketLinks { func (g *gitlabPlugin) Links() model.TicketLinks {
links := model.TicketLinks{} links := model.TicketLinks{}
links.AuditAll = fmt.Sprintf("%s/%s/issues?scope=all&utf8=✓&state=all&label_name[]=audit", g.domain, g.reponame) links.AuditAll = fmt.Sprintf("%s/%s/issues?scope=all&utf8=✓&state=all&label_name[]=comply-audit", g.domain, g.reponame)
links.AuditOpen = fmt.Sprintf("%s/%s/issues?scope=all&utf8=✓&state=opened&label_name[]=audit", g.domain, g.reponame) links.AuditOpen = fmt.Sprintf("%s/%s/issues?scope=all&utf8=✓&state=opened&label_name[]=comply-audit", g.domain, g.reponame)
links.ProcedureAll = fmt.Sprintf("%s/%s/issues?scope=all&utf8=✓&state=all&label_name[]=procedure", g.domain, g.reponame) links.ProcedureAll = fmt.Sprintf("%s/%s/issues?scope=all&utf8=✓&state=all&label_name[]=comply-procedure", g.domain, g.reponame)
links.ProcedureOpen = fmt.Sprintf("%s/%s/issues?scope=all&utf8=✓&state=opened&label_name[]=procedure", g.domain, g.reponame) links.ProcedureOpen = fmt.Sprintf("%s/%s/issues?scope=all&utf8=✓&state=opened&label_name[]=comply-procedure", g.domain, g.reponame)
return links return links
} }
@ -164,10 +164,10 @@ func toTicket(i *gitlab.Issue) *model.Ticket {
for _, l := range i.Labels { for _, l := range i.Labels {
if l == "audit" { if l == "audit" {
t.SetBool("audit") t.SetBool("comply-audit")
} }
if l == "procedure" { if l == "procedure" {
t.SetBool("procedure") t.SetBool("comply-procedure")
} }
} }
return t return t

File diff suppressed because one or more lines are too long