Add documentation around travis-ci

This commit is contained in:
turt2live 2017-05-28 11:13:36 -06:00
parent 81f937b55c
commit e50eb7003e

View file

@ -50,7 +50,31 @@ None of these are officially documented, and are subject to change.
}
}
},
"self":false
"self": false
}]
}
```
**Travis-CI Bot Response**:
```
{
"bot_user_id": "@_neb_travisci_=40travis=3at2l.io:matrix.org",
"integrations": [{
"type": "travis-ci",
"user_id": "@travis:t2l.io",
"config": {
"webhook_url": "https://scalar.vector.im/api/neb/services/hooks/some_long_string",
"rooms": {
"!JmvocvDuPTYUfuvKgs:t2l.io": {
"repos": {
"turt2live/matrix-dimension": {
"template": "%{repository}#%{build_number} (%{branch} - %{commit} : %{author}): %{message}\n Change view : %{compare_url}\n Build details : %{build_url}\n"
}
}
}
}
},
"self": true
}]
}
```
@ -76,4 +100,21 @@ None of these are officially documented, and are subject to change.
"https://ci.t2l.io/view/all/rssAll": {}
}
}
```
## POST `/api/integrations/travis-ci/configureService?scalar_token=...`
**Body**:
```
{
"rooms": {
"!JmvocvDuPTYUfuvKgs:t2l.io": {
"repos": {
"turt2live/matrix-dimension": {
"template": "%{repository}#%{build_number} (%{branch} - %{commit} : %{author}): %{message}\n Change view : %{compare_url}\n Build details : %{build_url}\n"
}
}
}
}
}
```