mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-16 13:56:53 +00:00
Update TravisCi component configuration variable (#6726)
* Update TravisCi component configuration variable
* 🚑 Try to fix
* Remove scan_interval
This commit is contained in:
parent
c70d845103
commit
f9c3aa9b1d
@ -24,16 +24,35 @@ sensor:
|
|||||||
api_key: 123456789
|
api_key: 123456789
|
||||||
```
|
```
|
||||||
|
|
||||||
Configuration variables:
|
{% configuration %}
|
||||||
|
api_key:
|
||||||
- **api_key** (*Required*): GitHub [access token](https://github.com/settings/tokens) with the following scopes: *read:org*, *user:email*, *repo_deployment*, *repo:status*, *write:repo_hook*.
|
description: "GitHub [access token](https://github.com/settings/tokens) with the following scopes: *read:org*, *user:email*, *repo_deployment*, *repo:status*, *write:repo_hook*."
|
||||||
- **branch** (*Optional*): Determine which default branch should be used by the **state** condition. Defaults to *master*.
|
required: true
|
||||||
- **scan_interval** (*Optional*): How frequently to query for new data. Defaults to 30 seconds.
|
type: string
|
||||||
- **monitored_conditions** array (*Optional*): Conditions to display in the frontend. If not specified, all conditions below will be enabled by default. The following conditions can be monitored.
|
branch:
|
||||||
- **last_build_id**: Turn the last build job ID.
|
description: "Determine which default branch should be used by the **state** condition."
|
||||||
- **last_build_duration**: Return the time elapsed in seconds to run the last test job.
|
required: false
|
||||||
- **last_build_finished_at**: Return the timestamp of when the last test job finished.
|
default: master
|
||||||
- **last_build_started_at**: Return the timestamp of when the last test job started.
|
type: string
|
||||||
- **last_build_state**: Return the state from the latest test job/PR. The conditions can be: 'passed', 'failed' or 'started'.
|
monitored_conditions:
|
||||||
- **state**: Return the build test from the branch specified at by **branch** parameter.
|
description: Conditions to display in the frontend. If not specified, all conditions below will be enabled by default. The following conditions can be monitored.
|
||||||
- **repository:** array (*Optional*): Name from the GitHub repositories to be monitored. If not specified, all GitHub repositories linked to Travis-CI will be enabled by default.
|
required: false
|
||||||
|
type: list
|
||||||
|
keys:
|
||||||
|
last_build_id:
|
||||||
|
description: Turn the last build job ID.
|
||||||
|
last_build_duration:
|
||||||
|
description: Return the time elapsed in seconds to run the last test job.
|
||||||
|
last_build_finished_at:
|
||||||
|
description: Return the timestamp of when the last test job finished.
|
||||||
|
last_build_started_at:
|
||||||
|
description: Return the timestamp of when the last test job started.
|
||||||
|
last_build_state:
|
||||||
|
description: "Return the state from the latest test job/PR. The conditions can be: 'passed', 'failed' or 'started'."
|
||||||
|
state:
|
||||||
|
description: "Return the build test from the branch specified at by **branch** parameter."
|
||||||
|
repository:
|
||||||
|
description: Name from the GitHub repositories to be monitored. If not specified, all GitHub repositories linked to Travis-CI will be enabled by default.
|
||||||
|
required: false
|
||||||
|
type: list
|
||||||
|
{% endconfiguration %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user