/
index.test.ts.snap
283 lines (256 loc) · 5.81 KB
/
index.test.ts.snap
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`create-an-issue checks the value of update_existing 1`] = `
{
"assignees": [
"octocat",
"JasonEtco",
],
"body": "Goodbye!",
"labels": [],
"milestone": 1,
"title": "Hello!",
}
`;
exports[`create-an-issue creates a new issue 1`] = `
{
"assignees": [],
"body": "Goodbye!",
"labels": [],
"title": "Hello!",
}
`;
exports[`create-an-issue creates a new issue 2`] = `
[
[
"Created issue Hello!#1: www",
],
]
`;
exports[`create-an-issue creates a new issue from a different template 1`] = `
{
"assignees": [],
"body": "Goodbye!",
"labels": [],
"title": "Different file",
}
`;
exports[`create-an-issue creates a new issue from a different template 2`] = `
[
[
"Created issue Different file#1: www",
],
]
`;
exports[`create-an-issue creates a new issue when updating existing issues is enabled but no issues with the same title exist 1`] = `
{
"assignees": [
"octocat",
"JasonEtco",
],
"body": "Goodbye!",
"labels": [],
"milestone": 1,
"title": "Hello!",
}
`;
exports[`create-an-issue creates a new issue with a milestone passed by input 1`] = `
{
"assignees": [
"octocat",
"JasonEtco",
],
"body": "Goodbye!",
"labels": [],
"milestone": 1,
"title": "Hello!",
}
`;
exports[`create-an-issue creates a new issue with an assignee passed by input 1`] = `
{
"assignees": [
"octocat",
],
"body": "Goodbye!",
"labels": [],
"title": "Hello!",
}
`;
exports[`create-an-issue creates a new issue with an assignee passed by input 2`] = `
[
[
"Created issue Hello!#1: www",
],
]
`;
exports[`create-an-issue creates a new issue with assignees and labels as comma-delimited strings 1`] = `
{
"assignees": [
"JasonEtco",
"matchai",
],
"body": "The action create-an-issue is the best action.",
"labels": [
"bug",
"enhancement",
],
"title": "DO EVERYTHING",
}
`;
exports[`create-an-issue creates a new issue with assignees and labels as comma-delimited strings 2`] = `
[
[
"Created issue DO EVERYTHING#1: www",
],
]
`;
exports[`create-an-issue creates a new issue with assignees, labels and a milestone 1`] = `
{
"assignees": [
"JasonEtco",
],
"body": "The action create-an-issue is the best action.",
"labels": [
"bugs",
],
"milestone": 2,
"title": "DO EVERYTHING",
}
`;
exports[`create-an-issue creates a new issue with assignees, labels and a milestone 2`] = `
[
[
"Created issue DO EVERYTHING#1: www",
],
]
`;
exports[`create-an-issue creates a new issue with multiple assignees passed by input 1`] = `
{
"assignees": [
"octocat",
"JasonEtco",
],
"body": "Goodbye!",
"labels": [],
"title": "Hello!",
}
`;
exports[`create-an-issue creates a new issue with multiple assignees passed by input 2`] = `
[
[
"Created issue Hello!#1: www",
],
]
`;
exports[`create-an-issue creates a new issue with some template variables 1`] = `
{
"assignees": [],
"body": "The action create-an-issue is the best action.
Environment variable foo is great.
",
"labels": [],
"title": "Hello create-an-issue",
}
`;
exports[`create-an-issue creates a new issue with some template variables 2`] = `
[
[
"Created issue Hello create-an-issue#1: www",
],
]
`;
exports[`create-an-issue creates a new issue with the context.repo template variables 1`] = `
{
"assignees": [],
"body": "Are you looking for results on our gh-pages branch?
Just click this link! https://JasonEtco.github.io/waddup/path/to/my/pageindex.html
",
"labels": [],
"title": "This Issue has a generalizable GitHub Pages Link",
}
`;
exports[`create-an-issue creates a new issue with the context.repo template variables 2`] = `
[
[
"Created issue This Issue has a generalizable GitHub Pages Link#1: www",
],
]
`;
exports[`create-an-issue finds, but does not update an existing issue with the same title 1`] = `
{
"assignees": [
"octocat",
"JasonEtco",
],
"body": "Goodbye!",
"labels": [],
"milestone": 1,
"title": "Hello!",
}
`;
exports[`create-an-issue logs a helpful error if creating an issue throws an error 1`] = `
[
[
"An error occurred while creating the issue. This might be caused by a malformed issue title, or a typo in the labels or assignees. Check .github/ISSUE_TEMPLATE.md!",
],
[
[HttpError: Validation error],
],
]
`;
exports[`create-an-issue logs a helpful error if creating an issue throws an error with more errors 1`] = `
[
[
"An error occurred while creating the issue. This might be caused by a malformed issue title, or a typo in the labels or assignees. Check .github/ISSUE_TEMPLATE.md!",
],
[
[HttpError: Validation error: {"foo":true}],
],
]
`;
exports[`create-an-issue logs a helpful error if the frontmatter is invalid 1`] = `
[
[
"An error occurred while parsing the issue. This might be caused by a malformed issue title, or a typo in the labels or assignees. Check .github/invalid-frontmatter.md!",
],
[
{
"_errors": [
"Unrecognized key(s) in object: 'name', 'not_a_thing'",
],
"labels": {
"_errors": [
"Expected array, received number",
"Expected string, received number",
],
},
"title": {
"_errors": [
"Required",
],
},
},
],
]
`;
exports[`create-an-issue logs a helpful error if updating an issue throws an error with more errors 1`] = `
[
[
"An error occurred while updating the issue. This might be caused by a malformed issue title, or a typo in the labels or assignees. Check .github/ISSUE_TEMPLATE.md!",
],
[
[HttpError: Validation error: {"foo":true}],
],
]
`;
exports[`create-an-issue updates an existing open issue with the same title 1`] = `
{
"assignees": [
"octocat",
"JasonEtco",
],
"body": "Goodbye!",
"labels": [],
"milestone": 1,
"title": "Hello!",
}
`;