mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Add default value for TravisCI org/com config
This commit is contained in:
parent
a375d54a57
commit
9d01fc04bd
@ -35,8 +35,8 @@ travisci:
|
|||||||
left: 1
|
left: 1
|
||||||
height: 1
|
height: 1
|
||||||
width: 2
|
width: 2
|
||||||
refreshInterval: 900
|
|
||||||
pro: false
|
pro: false
|
||||||
|
refreshInterval: 900
|
||||||
```
|
```
|
||||||
|
|
||||||
### Attributes
|
### Attributes
|
||||||
|
@ -37,7 +37,7 @@ Key: ↓ Action: Scroll down the list.</description>
|
|||||||
Displays build information for your Travis CI account.
|
Displays build information for your Travis CI account.
|
||||||
Source Code wtf/travisci/ Required ENV Variables Key: WTF_TRAVIS_API_TOKEN Value: Your Travis CI API access token.
|
Source Code wtf/travisci/ Required ENV Variables Key: WTF_TRAVIS_API_TOKEN Value: Your Travis CI API access token.
|
||||||
Keyboard Commands None.
|
Keyboard Commands None.
|
||||||
Configuration travisci:enabled:trueposition:top:4left:1height:1width:2refreshInterval:900 Attributes enabled Determines whether or not this module is executed and if its data displayed onscreen. Values: true, false.
|
Configuration travisci:enabled:trueposition:top:4left:1height:1width:2pro:falserefreshInterval:900 Attributes enabled Determines whether or not this module is executed and if its data displayed onscreen. Values: true, false.
|
||||||
position Defines where in the grid this module&rsquo;s widget will be displayed. refreshInterval How often, in seconds, this module will update its data.</description>
|
position Defines where in the grid this module&rsquo;s widget will be displayed. refreshInterval How often, in seconds, this module will update its data.</description>
|
||||||
</item>
|
</item>
|
||||||
|
|
||||||
|
@ -37,7 +37,7 @@ Key: ↓ Action: Scroll down the list.</description>
|
|||||||
Displays build information for your Travis CI account.
|
Displays build information for your Travis CI account.
|
||||||
Source Code wtf/travisci/ Required ENV Variables Key: WTF_TRAVIS_API_TOKEN Value: Your Travis CI API access token.
|
Source Code wtf/travisci/ Required ENV Variables Key: WTF_TRAVIS_API_TOKEN Value: Your Travis CI API access token.
|
||||||
Keyboard Commands None.
|
Keyboard Commands None.
|
||||||
Configuration travisci:enabled:trueposition:top:4left:1height:1width:2refreshInterval:900 Attributes enabled Determines whether or not this module is executed and if its data displayed onscreen. Values: true, false.
|
Configuration travisci:enabled:trueposition:top:4left:1height:1width:2pro:falserefreshInterval:900 Attributes enabled Determines whether or not this module is executed and if its data displayed onscreen. Values: true, false.
|
||||||
position Defines where in the grid this module&rsquo;s widget will be displayed. refreshInterval How often, in seconds, this module will update its data.</description>
|
position Defines where in the grid this module&rsquo;s widget will be displayed. refreshInterval How often, in seconds, this module will update its data.</description>
|
||||||
</item>
|
</item>
|
||||||
|
|
||||||
|
@ -162,6 +162,7 @@ height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
|
|||||||
</span><span class="w"> </span>left<span class="p">:</span><span class="w"> </span><span class="m">1</span><span class="w">
|
</span><span class="w"> </span>left<span class="p">:</span><span class="w"> </span><span class="m">1</span><span class="w">
|
||||||
</span><span class="w"> </span>height<span class="p">:</span><span class="w"> </span><span class="m">1</span><span class="w">
|
</span><span class="w"> </span>height<span class="p">:</span><span class="w"> </span><span class="m">1</span><span class="w">
|
||||||
</span><span class="w"> </span>width<span class="p">:</span><span class="w"> </span><span class="m">2</span><span class="w">
|
</span><span class="w"> </span>width<span class="p">:</span><span class="w"> </span><span class="m">2</span><span class="w">
|
||||||
|
</span><span class="w"> </span>pro<span class="p">:</span><span class="w"> </span><span class="kc">false</span><span class="w">
|
||||||
</span><span class="w"> </span>refreshInterval<span class="p">:</span><span class="w"> </span><span class="m">900</span></code></pre></div>
|
</span><span class="w"> </span>refreshInterval<span class="p">:</span><span class="w"> </span><span class="m">900</span></code></pre></div>
|
||||||
<h3 id="attributes">Attributes</h3>
|
<h3 id="attributes">Attributes</h3>
|
||||||
|
|
||||||
@ -176,6 +177,10 @@ Defines where in the grid this module’s widget will be displayed. <br /></
|
|||||||
How often, in seconds, this module will update its data. <br />
|
How often, in seconds, this module will update its data. <br />
|
||||||
Values: A positive integer, <code>0..n</code>.</p>
|
Values: A positive integer, <code>0..n</code>.</p>
|
||||||
|
|
||||||
|
<p><code>pro</code> <br />
|
||||||
|
Determines whether or not this module will use the Pro version of Travis CI.<br />
|
||||||
|
Values: <code>true</code>, <code>false</code>.</p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="footer">
|
<div class="footer">
|
||||||
|
@ -18,7 +18,7 @@ const APIEnvToken = "WTF_TRAVIS_API_TOKEN"
|
|||||||
func BuildsFor() (*Builds, error) {
|
func BuildsFor() (*Builds, error) {
|
||||||
builds := &Builds{}
|
builds := &Builds{}
|
||||||
|
|
||||||
pro := wtf.Config.UBool("wtf.mods.travisci.pro")
|
pro := wtf.Config.UBool("wtf.mods.travisci.pro", false)
|
||||||
travisAPIURL.Host = hosts[pro]
|
travisAPIURL.Host = hosts[pro]
|
||||||
|
|
||||||
resp, err := travisRequest("builds")
|
resp, err := travisRequest("builds")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user