@@ -133,25 +133,25 @@ func orderAttachments(attachments []*Attachment) []*Attachment {
133
133
func newAttachmentFromVersion (path * changelog.Path , version * changelog.Version ) []* Attachment {
134
134
attachments := make ([]* Attachment , 0 )
135
135
for _ , change := range version .Changes {
136
- attachments = append (attachments , newAttachmentFromChange (version .Version , path .HTTPMethod , path .URI , change ))
136
+ attachments = append (attachments , newAttachmentFromChange (version .Version , path .HTTPMethod , path .URI , path . ChangeType , change ))
137
137
}
138
138
139
139
return attachments
140
140
}
141
141
142
- func newAttachmentFromChange (version , method , path string , change * changelog.Change ) * Attachment {
142
+ func newAttachmentFromChange (version , method , path , changeType string , change * changelog.Change ) * Attachment {
143
143
return & Attachment {
144
- Text : newAttachmentText (version , method , path , change . Code , change .Description , strconv . FormatBool ( change .BackwardCompatible ) ,
144
+ Text : newAttachmentText (version , method , path , changeType , change .Code , change .Description ,
145
145
strconv .FormatBool (change .HideFromChangelog )),
146
146
Color : newColorFromBackwardCompatible (change .BackwardCompatible ),
147
147
AttachmentType : attachmentTypeDefault ,
148
148
}
149
149
}
150
150
151
- func newAttachmentText (version , method , path , changeCode , change , backwardCompatible , hiddenFromChangelog string ) string {
151
+ func newAttachmentText (version , method , path , changeType , changeCode , change , hiddenFromChangelog string ) string {
152
152
return fmt .Sprintf (
153
- "\n • *Version*: `%s`\n • *Path *: `%s %s `\n • *Hidden from Changelog *: `%s`\n • *Change Code *: `%s`\n • *Change*: `%s`\n • *Backward Compatible *: `%s`" ,
154
- version , method , path , hiddenFromChangelog , changeCode , change , backwardCompatible )
153
+ "\n • *Version*: `%s` | *Hidden from Changelog *: `%s`\n • *Path *: `%s %s `\n • *Change Type *: `%s` | *Change Code *: `%s`\n • *Change *: `%s`" ,
154
+ version , hiddenFromChangelog , method , path , changeType , changeCode , change )
155
155
}
156
156
157
157
func newColorFromBackwardCompatible (backwardCompatible bool ) string {
0 commit comments