#236  Slack integration
Released
Sebastien Collier opened 3 years ago

We'd like to have OneDev post to a slack channel with the webhook interface.

Unfortunately generating a slack app and entering the webhook URL into OneDev didn't work. Do you have any specifications of how this works?

Posting this works from command line.

curl -X POST -H 'Content-type: application/json' --data '{"text":"Hello, World!"}' https://hooks.slack.com/services/<redacted>/<redacted>/<redacted>
Robin Shen commented 3 years ago

OneDev currently serialize various events into json with Jackson automatically, and you may use a http server to capture the posted json to check the detailed format. As to posting to Slack, it looks like that Slack expects a "text" field in posted json and OneDev does not have that field.

Will add slack integration as well as Restful api in next major release.

Robin Shen changed fields 3 years ago
Name Previous Value Current Value
Type
Support Request
New Feature
Robin Shen changed title 3 years ago
Previous Value Current Value
Webhook documentation
Slack integration
OneDev changed state to 'Closed' 2 years ago
Previous Value Current Value
Open
Closed
OneDev commented 2 years ago

State changed as code fixing the issue is committed

Robin Shen added to milestone "7.5.0" 2 years ago
OneDev changed state to 'Released' 2 years ago
Previous Value Current Value
Closed
Released
OneDev commented 2 years ago

State changed as build #2972 is successful

issue 1 of 1
Type
New Feature
Priority
Normal
Assignee
Milestones
Issue Votes (2)
Watchers (3)
Reference
onedev/server#236
Please wait...
Page is in error, reload to recover