Skip to content

Commit

Permalink
feat: add client_payload to repository_dispatch event example (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
octokitbot authored and gr2m committed Oct 22, 2019
1 parent f6fcd7c commit 6556f8a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
19 changes: 9 additions & 10 deletions cache/event-types-and-payloads.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,18 +70,12 @@
<div id="js-dropdown-menu" class="dropdown-menu">
<a class="dropdown-menu-item" data-proofer-ignore>github.com</a>

<a class="dropdown-menu-item" data-proofer-ignore>GitHub Enterprise Server 2.18</a>

<a class="dropdown-menu-item" data-proofer-ignore>GitHub Enterprise Server 2.17</a>



<a class="dropdown-menu-item" data-proofer-ignore>GitHub Enterprise Server 2.16</a>



<a class="dropdown-menu-item" data-proofer-ignore>GitHub Enterprise 2.15</a>


</div>
</div>
<form accept-charset="UTF-8" action="#" class="site-header-nav-item site-header-search">
Expand Down Expand Up @@ -127,6 +121,8 @@








Expand Down Expand Up @@ -7894,7 +7890,7 @@ <h2>

<div class="alert note">

<p>GitHub Package Registry is currently available in limited public beta. To request to join the limited public beta, see the "<a href="https://github.com/features/package-registry">GitHub Package Registry page</a>."</p>
<p><strong>Note:</strong> GitHub Package Registry is currently available in limited public beta. To request to join the limited public beta, see the "<a href="https://github.com/features/package-registry">GitHub Package Registry page</a>."</p>

</div>

Expand Down Expand Up @@ -8413,9 +8409,12 @@ <h3>
<a id="webhook-payload-example-34" class="anchor" href="#webhook-payload-example-34" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>Webhook payload example</h3>

<pre class="highlight highlight-json"><code><span class="p">{</span><span class="w">
</span><span class="nt">"action"</span><span class="p">:</span><span class="w"> </span><span class="s2">"html.preview"</span><span class="p">,</span><span class="w">
</span><span class="nt">"action"</span><span class="p">:</span><span class="w"> </span><span class="s2">"on-demand-test"</span><span class="p">,</span><span class="w">
</span><span class="nt">"branch"</span><span class="p">:</span><span class="w"> </span><span class="s2">"master"</span><span class="p">,</span><span class="w">
</span><span class="nt">"ref"</span><span class="p">:</span><span class="w"> </span><span class="s2">"270d8ccac611aa63ce26a31049570fb0e4f41586"</span><span class="p">,</span><span class="w">
</span><span class="nt">"client_payload"</span><span class="p">:</span><span class="w"> </span><span class="p">{</span><span class="w">
</span><span class="nt">"unit"</span><span class="p">:</span><span class="w"> </span><span class="kc">false</span><span class="p">,</span><span class="w">
</span><span class="nt">"integration"</span><span class="p">:</span><span class="w"> </span><span class="kc">true</span><span class="w">
</span><span class="p">},</span><span class="w">
</span><span class="nt">"repository"</span><span class="p">:</span><span class="w"> </span><span class="p">{</span><span class="w">
</span><span class="nt">"id"</span><span class="p">:</span><span class="w"> </span><span class="mi">17273051</span><span class="p">,</span><span class="w">
</span><span class="nt">"node_id"</span><span class="p">:</span><span class="w"> </span><span class="s2">"MDEwOlJlcG9zaXRvcnkxNzI3MzA1MQ=="</span><span class="p">,</span><span class="w">
Expand Down
7 changes: 5 additions & 2 deletions index.json
Original file line number Diff line number Diff line change
Expand Up @@ -6292,9 +6292,12 @@
"actions": [],
"examples": [
{
"action": "html.preview",
"action": "on-demand-test",
"branch": "master",
"ref": "270d8ccac611aa63ce26a31049570fb0e4f41586",
"client_payload": {
"unit": false,
"integration": true
},
"repository": {
"id": 17273051,
"node_id": "MDEwOlJlcG9zaXRvcnkxNzI3MzA1MQ==",
Expand Down

0 comments on commit 6556f8a

Please sign in to comment.