#236  Slack integration
Sebastien Collier opened 10 months 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 10 months 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 10 months ago
Name Previous Value Current Value
Support Request
New Feature
Robin Shen changed title 10 months ago
Previous Value Current Value
Webhook documentation
Slack integration
issue 1 of 1
New Feature
Issue Votes (1)
Watchers (3)
issue onedev/server#236
Please wait...
Page is in error, reload to recover