add team add event

This commit is contained in:
Vladimir Vitkov 2022-08-12 11:21:42 +03:00
parent dfdfcc662e
commit 4ae69b2e3c
1 changed files with 11 additions and 0 deletions

View File

@ -159,6 +159,17 @@ const githubEvents = {
attachments: [attachment]
}
};
},
team_add(request) {
const team = request.content.team.name;
const permission = request.content.team.permission;
return {
content: {
text: 'Team ' + team + ' with permissions ' + permission + ' added!'
}
};
}
};