mirror of
https://github.com/turt2live/matrix-dimension.git
synced 2024-10-01 01:05:53 -04:00
Add documentation around travis-ci
This commit is contained in:
parent
81f937b55c
commit
e50eb7003e
@ -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
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
@ -77,3 +101,20 @@ None of these are officially documented, and are subject to change.
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## 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"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
Loading…
Reference in New Issue
Block a user