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 2 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.
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.