simplify webhooks page
This commit is contained in:
parent
a45c1c618f
commit
df5ac63fc2
@ -48,16 +48,8 @@ $this->params['breadcrumbs'][] = 'bower.json';
|
||||
<p>Adding a webhook to your repository will update minetest-bower with the latest information each time you push a change.</p>
|
||||
|
||||
<?php if (strpos($model->url, 'github.com')) { ?>
|
||||
<p>1) Go to the <?= Html::a('repository', Git::getUrl($model->url)) ?>, then click
|
||||
<em>Settings</em> from the right-hand menu.</p>
|
||||
<?= Html::img('https://cloud.githubusercontent.com/assets/51875/9213427/6689597c-40d1-11e5-8f9c-5582e4d77dd2.png'); ?>
|
||||
<br><br>
|
||||
|
||||
<p>2) Click <em>Webhooks and Services</em>, then click <em>Add webhook</em>.</p>
|
||||
<?= Html::img('https://cloud.githubusercontent.com/assets/51875/9213433/7507bd2c-40d1-11e5-9a42-4f5e3a1da18e.png'); ?>
|
||||
<br><br>
|
||||
|
||||
<p>3) Enter <code><?= Url::to(['view', 'name' => $model->name], true); ?></code> into the
|
||||
<p>Create a <?= Html::a('new webhook', Git::getUrl($model->url) . '/settings/hooks/new') ?> and enter
|
||||
<code><?= Url::to(['view', 'name' => $model->name], true); ?></code> into the
|
||||
<em>Payload URL</em>, then click <em>Add webhook</em>.</p>
|
||||
<?= Html::img('https://cloud.githubusercontent.com/assets/51875/9213435/7cf27a68-40d1-11e5-888a-c4692ad9f4b9.png'); ?>
|
||||
<?php } ?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user