@@ -18,12 +18,9 @@ title: Issue Labels API v3 | dev.github.com
1818
1919### Input
2020
21- <pre class =" highlight " ><code class =" language-javascript " >
22- {
23- name: "String",
24- color: "hex" // "ffffff" (6 characters, no '#')
25- }
26- </code ></pre >
21+ <%= json : name => "String", : color => "hex" %>
22+
23+ * Note* : ` color ` takes a 6 character hex code, without a leading ` # ` .
2724
2825### Response
2926
@@ -43,12 +40,9 @@ title: Issue Labels API v3 | dev.github.com
4340
4441### Input
4542
46- <pre class =" highlight " ><code class =" language-javascript " >
47- {
48- name: "String",
49- color: "hex" // "ffffff" (6 characters, no '#')
50- }
51- </code ></pre >
43+ <%= json : name => "String", : color => "hex" %>
44+
45+ * Note* : ` color ` takes a 6 character hex code, without a leading ` # ` .
5246
5347### Response
5448
@@ -70,17 +64,13 @@ title: Issue Labels API v3 | dev.github.com
7064
7165<%= json(: label ) { |h| [ h] } %>
7266
73- ## Add a Label to an Issue
67+ ## Add Labels to an Issue
7468
7569 POST /repos/:user/:repo/issues/:id/labels.json
7670
7771### Input
7872
79- <pre class =" highlight " ><code class =" language-javascript " >
80- [{
81- name: "String"
82- }, ...]
83- </code ></pre >
73+ <%= json({name: "String"}) { |h| [ h] } %>
8474
8575### Response
8676
@@ -100,11 +90,7 @@ title: Issue Labels API v3 | dev.github.com
10090
10191### Input
10292
103- <pre class =" highlight " ><code class =" language-javascript " >
104- [{
105- name: "String"
106- }, ...]
107- </code ></pre >
93+ <%= json({name: "String"}) { |h| [ h] } %>
10894
10995### Response
11096
0 commit comments