@@ -135,43 +135,34 @@ func getTelegramIssuesPayload(p *api.IssuePayload) (*TelegramPayload, error) {
135135 case api .HookIssueClosed :
136136 title = fmt .Sprintf (`[<a href="%s">%s</a>] Issue closed: <a href="%s">#%d %s</a>` , p .Repository .HTMLURL , p .Repository .FullName ,
137137 p .Issue .URL , p .Index , p .Issue .Title )
138- text = p .Issue .Body
139138 case api .HookIssueReOpened :
140139 title = fmt .Sprintf (`[<a href="%s">%s</a>] Issue re-opened: <a href="%s">#%d %s</a>` , p .Repository .HTMLURL , p .Repository .FullName ,
141140 p .Issue .URL , p .Index , p .Issue .Title )
142- text = p .Issue .Body
143141 case api .HookIssueEdited :
144142 title = fmt .Sprintf (`[<a href="%s">%s</a>] Issue edited: <a href="%s">#%d %s</a>` , p .Repository .HTMLURL , p .Repository .FullName ,
145143 p .Issue .URL , p .Index , p .Issue .Title )
146144 text = p .Issue .Body
147145 case api .HookIssueAssigned :
148146 title = fmt .Sprintf (`[<a href="%s">%s</a>] Issue assigned to %s: <a href="%s">#%d %s</a>` , p .Repository .HTMLURL , p .Repository .FullName ,
149147 p .Issue .Assignee .UserName , p .Issue .URL , p .Index , p .Issue .Title )
150- text = p .Issue .Body
151148 case api .HookIssueUnassigned :
152149 title = fmt .Sprintf (`[<a href="%s">%s</a>] Issue unassigned: <a href="%s">#%d %s</a>` , p .Repository .HTMLURL , p .Repository .FullName ,
153150 p .Issue .URL , p .Index , p .Issue .Title )
154- text = p .Issue .Body
155151 case api .HookIssueLabelUpdated :
156152 title = fmt .Sprintf (`[<a href="%s">%s</a>] Issue labels updated: <a href="%s">#%d %s</a>` , p .Repository .HTMLURL , p .Repository .FullName ,
157153 p .Issue .URL , p .Index , p .Issue .Title )
158- text = p .Issue .Body
159154 case api .HookIssueLabelCleared :
160155 title = fmt .Sprintf (`[<a href="%s">%s</a>] Issue labels cleared: <a href="%s">#%d %s</a>` , p .Repository .HTMLURL , p .Repository .FullName ,
161156 p .Issue .URL , p .Index , p .Issue .Title )
162- text = p .Issue .Body
163157 case api .HookIssueSynchronized :
164158 title = fmt .Sprintf (`[<a href="%s">%s</a>] Issue synchronized: <a href="%s">#%d %s</a>` , p .Repository .HTMLURL , p .Repository .FullName ,
165159 p .Issue .URL , p .Index , p .Issue .Title )
166- text = p .Issue .Body
167160 case api .HookIssueMilestoned :
168161 title = fmt .Sprintf (`[<a href="%s">%s</a>] Issue milestone: <a href="%s">#%d %s</a>` , p .Repository .HTMLURL , p .Repository .FullName ,
169162 p .Issue .URL , p .Index , p .Issue .Title )
170- text = p .Issue .Body
171163 case api .HookIssueDemilestoned :
172164 title = fmt .Sprintf (`[<a href="%s">%s</a>] Issue clear milestone: <a href="%s">#%d %s</a>` , p .Repository .HTMLURL , p .Repository .FullName ,
173165 p .Issue .URL , p .Index , p .Issue .Title )
174- text = p .Issue .Body
175166 }
176167
177168 return & TelegramPayload {
@@ -215,11 +206,9 @@ func getTelegramPullRequestPayload(p *api.PullRequestPayload) (*TelegramPayload,
215206 title = fmt .Sprintf (`[<a href="%s">%s</a>] Pull request closed: <a href="%s">#%d %s</a>` , p .Repository .HTMLURL , p .Repository .FullName ,
216207 p .PullRequest .HTMLURL , p .Index , p .PullRequest .Title )
217208 }
218- text = p .PullRequest .Body
219209 case api .HookIssueReOpened :
220210 title = fmt .Sprintf (`[<a href="%s">%s</a>] Pull request re-opened: <a href="%s">#%d %s</a>` , p .Repository .HTMLURL , p .Repository .FullName ,
221211 p .PullRequest .HTMLURL , p .Index , p .PullRequest .Title )
222- text = p .PullRequest .Body
223212 case api .HookIssueEdited :
224213 title = fmt .Sprintf (`[<a href="%s">%s</a>] Pull request edited: <a href="%s">#%d %s</a>` , p .Repository .HTMLURL , p .Repository .FullName ,
225214 p .PullRequest .HTMLURL , p .Index , p .PullRequest .Title )
@@ -231,31 +220,24 @@ func getTelegramPullRequestPayload(p *api.PullRequestPayload) (*TelegramPayload,
231220 }
232221 title = fmt .Sprintf (`[<a href="%s">%s</a>] Pull request assigned to %s: <a href="%s">#%d %s</a>` , p .Repository .HTMLURL , p .Repository .FullName ,
233222 list , p .PullRequest .HTMLURL , p .Index , p .PullRequest .Title )
234- text = p .PullRequest .Body
235223 case api .HookIssueUnassigned :
236224 title = fmt .Sprintf (`[<a href="%s">%s</a>] Pull request unassigned: <a href="%s">#%d %s</a>` , p .Repository .HTMLURL , p .Repository .FullName ,
237225 p .PullRequest .HTMLURL , p .Index , p .PullRequest .Title )
238- text = p .PullRequest .Body
239226 case api .HookIssueLabelUpdated :
240227 title = fmt .Sprintf (`[<a href="%s">%s</a>] Pull request labels updated: <a href="%s">#%d %s</a>` , p .Repository .HTMLURL , p .Repository .FullName ,
241228 p .PullRequest .HTMLURL , p .Index , p .PullRequest .Title )
242- text = p .PullRequest .Body
243229 case api .HookIssueLabelCleared :
244230 title = fmt .Sprintf (`[<a href="%s">%s</a>] Pull request labels cleared: <a href="%s">#%d %s</a>` , p .Repository .HTMLURL , p .Repository .FullName ,
245231 p .PullRequest .HTMLURL , p .Index , p .PullRequest .Title )
246- text = p .PullRequest .Body
247232 case api .HookIssueSynchronized :
248233 title = fmt .Sprintf (`[<a href="%s">%s</a>] Pull request synchronized: <a href="%s">#%d %s</a>` , p .Repository .HTMLURL , p .Repository .FullName ,
249234 p .PullRequest .HTMLURL , p .Index , p .PullRequest .Title )
250- text = p .PullRequest .Body
251235 case api .HookIssueMilestoned :
252236 title = fmt .Sprintf (`[<a href="%s">%s</a>] Pull request milestone: <a href="%s">#%d %s</a>` , p .Repository .HTMLURL , p .Repository .FullName ,
253237 p .PullRequest .HTMLURL , p .Index , p .PullRequest .Title )
254- text = p .PullRequest .Body
255238 case api .HookIssueDemilestoned :
256239 title = fmt .Sprintf (`[<a href="%s">%s</a>] Pull request clear milestone: <a href="%s">#%d %s</a>` , p .Repository .HTMLURL , p .Repository .FullName ,
257240 p .PullRequest .HTMLURL , p .Index , p .PullRequest .Title )
258- text = p .PullRequest .Body
259241 }
260242
261243 return & TelegramPayload {
0 commit comments