name:"Issue #"+req.body.number+" opened by "+req.body.issue.user.username,
name:"Issue #"+req.body.number+" opened by "+req.body.issue.user.username,
icon_url:req.body.issue.user.avatar_url
icon_url:req.body.issue.user.avatar_url
},
},
color:11731199,
color:11731199,
description:"**"+req.body.issue.title+":**\n\n"+req.body.issue.body+"\n\n[Link to Issue]("+req.body.issue.html_url+")",
description:"**"+req.body.issue.title+":**\n\n"+ParseAttachments(ParseMentions(req.body.issue.body))+"\n\n[Link to Issue]("+req.body.issue.html_url+")",
description:"__**"+req.body.issue.title+"**__\nCommented by **"+req.body.comment.user.username+":**\n"+req.body.comment.body+"\n\n[Link to Comment]("+req.body.comment.html_url+")",
description:"__**"+req.body.issue.title+"**__\nCommented by **"+req.body.comment.user.username+":**\n"+ParseAttachments(ParseMentions(req.body.comment.body))+"\n\n[Link to Comment]("+req.body.comment.html_url+")",
}]
}]
})
})
}break;
}break;
case"edited":{
case"edited":{
axios.post(process.env.GITEA_WEBHOOK,{embeds:[{
if(req.body.comment){
embedItems=[{
author:{
author:{
name:"Comment edited on Issue #"+req.body.issue.number,
name:"Comment edited on Issue #"+req.body.issue.number,
icon_url:req.body.comment.user.avatar_url
icon_url:req.body.comment.user.avatar_url
},
},
color:11731199,
color:11731199,
description:"__**"+req.body.issue.title+"**__\nCommented by **"+req.body.comment.user.username+":**\n"+req.body.comment.body+"\n\n[Link to Comment]("+req.body.comment.html_url+")",
description:"__**"+req.body.issue.title+"**__\nCommented by **"+req.body.comment.user.username+":**\n"+ParseAttachments(ParseMentions(req.body.comment.body))+"\n\n[Link to Comment]("+req.body.comment.html_url+")",
description:"__**"+req.body.issue.title+"**__\nEdited by **"+req.body.issue.user.username+":**\n"+ParseAttachments(ParseMentions(req.body.issue.body))+"\n\n[Link to Issue]("+req.body.issue.html_url+")",