ChatOps for Discord
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Release notes
GitLab ChatOps can now be used with Discord Slash Commands
Problem to solve
I know many hobby developers which use Discord and don't use Slack. If ChatOps gets also implemented for the Discord Platform, these developer (including myself) could use the ChatOps feature.
Proposal
Implement support for the Discord Slash Commands in ChatOps
Intended users
Feature Usage Metrics
Unknown
Additional Links
- https://discord.com/developers/docs/interactions/application-commands#slash-commands
- https://discord.com/developers/docs/interactions/receiving-and-responding
Implementation
I would be interested in implementing this feature if you decide that you want to support Discord.
However, I would need some guidance in how to do so.
Required Functionality
-
Integration Settings -
Application ID -
Bot Token -
GitLab given Endpoint for Discord Interactions Endpoint (https://discord.com/developers/docs/interactions/receiving-and-responding#receiving-an-interaction)
-
-
Commands need to get registered on the Application (https://discord.com/developers/docs/interactions/application-commands#registering-a-command) -
Incoming Webhooks for Interactions must be accepted -
Signature validation (https://discord.com/developers/docs/interactions/receiving-and-responding#security-and-authorization) -
Must handle interactions and pings
-
-
ChatOps -
Mapping Discord User -> GitLab User -
Commands need to work (like runshould create a ChatOps Pipeline) -
Job output needs to be sent back to Discord (if completed in under 15 minutes)
-
Identified Files/Folders
-
lib/gitlab/chatfor responding with the job log
Edited by 🤖 GitLab Bot 🤖