@@ -160,6 +160,10 @@ func getSlackIssuesPayload(p *api.IssuePayload, slack *SlackMeta) (*SlackPayload
160
160
text = fmt .Sprintf ("[%s] Issue labels cleared: %s by %s" , p .Repository .FullName , titleLink , senderLink )
161
161
case api .HookIssueSynchronized :
162
162
text = fmt .Sprintf ("[%s] Issue synchronized: %s by %s" , p .Repository .FullName , titleLink , senderLink )
163
+ case api .HookIssueMilestoned :
164
+ text = fmt .Sprintf ("[%s] Issue milestoned: #%s %s" , p .Repository .FullName , titleLink , senderLink )
165
+ case api .HookIssueDemilestoned :
166
+ text = fmt .Sprintf ("[%s] Issue milestone cleared: #%s %s" , p .Repository .FullName , titleLink , senderLink )
163
167
}
164
168
165
169
return & SlackPayload {
@@ -312,6 +316,10 @@ func getSlackPullRequestPayload(p *api.PullRequestPayload, slack *SlackMeta) (*S
312
316
text = fmt .Sprintf ("[%s] Pull request labels cleared: %s by %s" , p .Repository .FullName , titleLink , senderLink )
313
317
case api .HookIssueSynchronized :
314
318
text = fmt .Sprintf ("[%s] Pull request synchronized: %s by %s" , p .Repository .FullName , titleLink , senderLink )
319
+ case api .HookIssueMilestoned :
320
+ text = fmt .Sprintf ("[%s] Pull request milestoned: #%s %s" , p .Repository .FullName , titleLink , senderLink )
321
+ case api .HookIssueDemilestoned :
322
+ text = fmt .Sprintf ("[%s] Pull request milestone cleared: #%s %s" , p .Repository .FullName , titleLink , senderLink )
315
323
}
316
324
317
325
return & SlackPayload {
0 commit comments