Allow to add a footer to the github issues
This commit is contained in:
parent
5f80e21364
commit
9dd34b5a1b
4 changed files with 43 additions and 13 deletions
|
@ -26,11 +26,12 @@ type ConfigGithub struct {
|
|||
|
||||
// ToDo: add key-value extra params as a map to allow for customfield_whatever = team
|
||||
type Campaign struct {
|
||||
Jira ConfigJira `json:"jira"`
|
||||
Github ConfigGithub `json:"github"`
|
||||
Summary string `json:"summary"`
|
||||
Template string `json:"template"`
|
||||
Tickets []*Ticket `json:"tickets,omitempty"`
|
||||
Jira ConfigJira `json:"jira"`
|
||||
Github ConfigGithub `json:"github"`
|
||||
Summary string `json:"summary"`
|
||||
IssueTemplate string `json:"issue_template"`
|
||||
FooterTemplate string `json:"footer_template"`
|
||||
Tickets []*Ticket `json:"tickets,omitempty"`
|
||||
}
|
||||
|
||||
func (c *Campaign) NextJiraUnpublishedTicket() *Ticket {
|
||||
|
@ -81,7 +82,7 @@ func (c *Campaign) FillTicket(t *Ticket) error {
|
|||
}
|
||||
t.Summary = summaryBytes.String()
|
||||
|
||||
descriptionTemplate, err := template.ParseFiles(c.Template)
|
||||
descriptionTemplate, err := template.ParseFiles(c.IssueTemplate)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue