all-contributors-for-repository 0.2.2 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/lib/collect/adding/addAcceptedIssues.js +15 -6
- package/lib/collect/adding/addAcceptedIssues.js.map +1 -1
- package/lib/collect/collecting/collectAcceptedIssues.d.ts +78 -217
- package/lib/collect/collecting/collectIssueEvents.d.ts +129 -268
- package/lib/collect/collecting/collectMergedPulls.d.ts +82 -221
- package/lib/collect/collecting/collectRepoEvents.d.ts +113 -252
- package/lib/collect/parsing/parseMergedPullAuthors.js +2 -2
- package/lib/collect/parsing/parseMergedPullAuthors.js.map +1 -1
- package/lib/collect/parsing/parseMergedPullType.js +3 -2
- package/lib/collect/parsing/parseMergedPullType.js.map +1 -1
- package/lib/options.js +2 -0
- package/lib/options.js.map +1 -1
- package/package.json +22 -22
package/README.md
CHANGED
|
@@ -132,7 +132,7 @@ Thanks! 💖
|
|
|
132
132
|
<tbody>
|
|
133
133
|
<tr>
|
|
134
134
|
<td align="center" valign="top" width="14.28%"><a href="https://www.fdlpm.com"><img src="https://avatars.githubusercontent.com/u/9667945?v=4?s=100" width="100px;" alt="Fabian De La Peña Montero"/><br /><sub><b>Fabian De La Peña Montero</b></sub></a><br /><a href="https://github.com/JoshuaKGoldberg/all-contributors-for-repository/commits?author=fdlpm" title="Documentation">📖</a></td>
|
|
135
|
-
<td align="center" valign="top" width="14.28%"><a href="http://www.joshuakgoldberg.com"><img src="https://avatars.githubusercontent.com/u/3335181?v=4?s=100" width="100px;" alt="Josh Goldberg"/><br /><sub><b>Josh Goldberg</b></sub></a><br /><a href="#tool-JoshuaKGoldberg" title="Tools">🔧</a> <a href="https://github.com/JoshuaKGoldberg/all-contributors-for-repository/issues?q=author%3AJoshuaKGoldberg" title="Bug reports">🐛</a> <a href="https://github.com/JoshuaKGoldberg/all-contributors-for-repository/commits?author=JoshuaKGoldberg" title="Code">💻</a> <a href="#maintenance-JoshuaKGoldberg" title="Maintenance">🚧</a> <a href="https://github.com/JoshuaKGoldberg/all-contributors-for-repository/pulls?q=is%3Apr+reviewed-by%3AJoshuaKGoldberg" title="Reviewed Pull Requests">👀</a> <a href="https://github.com/JoshuaKGoldberg/all-contributors-for-repository/commits?author=JoshuaKGoldberg" title="Documentation">📖</a> <a href="#infra-JoshuaKGoldberg" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="https://github.com/JoshuaKGoldberg/all-contributors-for-repository/commits?author=JoshuaKGoldberg" title="Tests">⚠️</a></td>
|
|
135
|
+
<td align="center" valign="top" width="14.28%"><a href="http://www.joshuakgoldberg.com"><img src="https://avatars.githubusercontent.com/u/3335181?v=4?s=100" width="100px;" alt="Josh Goldberg"/><br /><sub><b>Josh Goldberg</b></sub></a><br /><a href="#tool-JoshuaKGoldberg" title="Tools">🔧</a> <a href="https://github.com/JoshuaKGoldberg/all-contributors-for-repository/issues?q=author%3AJoshuaKGoldberg" title="Bug reports">🐛</a> <a href="https://github.com/JoshuaKGoldberg/all-contributors-for-repository/commits?author=JoshuaKGoldberg" title="Code">💻</a> <a href="#maintenance-JoshuaKGoldberg" title="Maintenance">🚧</a> <a href="https://github.com/JoshuaKGoldberg/all-contributors-for-repository/pulls?q=is%3Apr+reviewed-by%3AJoshuaKGoldberg" title="Reviewed Pull Requests">👀</a> <a href="https://github.com/JoshuaKGoldberg/all-contributors-for-repository/commits?author=JoshuaKGoldberg" title="Documentation">📖</a> <a href="#infra-JoshuaKGoldberg" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="https://github.com/JoshuaKGoldberg/all-contributors-for-repository/commits?author=JoshuaKGoldberg" title="Tests">⚠️</a> <a href="#ideas-JoshuaKGoldberg" title="Ideas, Planning, & Feedback">🤔</a></td>
|
|
136
136
|
</tr>
|
|
137
137
|
</tbody>
|
|
138
138
|
</table>
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { descriptionToCoAuthors } from "description-to-co-authors";
|
|
1
2
|
function addAcceptedIssues(acceptedIssues, contributors, options) {
|
|
2
3
|
for (const acceptedIssue of acceptedIssues) {
|
|
3
4
|
const labels = acceptedIssue.labels.map(
|
|
@@ -13,12 +14,20 @@ function addAcceptedIssues(acceptedIssues, contributors, options) {
|
|
|
13
14
|
// - 🔧 `tool`: authors of merged PRs that address issues labeled as tooling
|
|
14
15
|
[options.labelTypeTool, "tool"]
|
|
15
16
|
]) {
|
|
16
|
-
if (labels.some((label) => label === labelType)) {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
);
|
|
17
|
+
if (!labels.some((label) => label === labelType)) {
|
|
18
|
+
continue;
|
|
19
|
+
}
|
|
20
|
+
const logins = [];
|
|
21
|
+
if (acceptedIssue.user) {
|
|
22
|
+
logins.push(acceptedIssue.user.login);
|
|
23
|
+
}
|
|
24
|
+
if (acceptedIssue.body) {
|
|
25
|
+
for (const coAuthor of descriptionToCoAuthors(acceptedIssue.body)) {
|
|
26
|
+
logins.push(coAuthor.username);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
for (const login of logins) {
|
|
30
|
+
contributors.add(login, acceptedIssue.number, contribution);
|
|
22
31
|
}
|
|
23
32
|
}
|
|
24
33
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/collect/adding/addAcceptedIssues.ts"],"sourcesContent":["import { ContributorsCollection } from \"../../ContributorsCollection.js\";\nimport { AllContributorsForRepositoryOptions } from \"../../options.js\";\nimport { AcceptedIssue } from \"../collecting/collectAcceptedIssues.js\";\n\nexport function addAcceptedIssues(\n\tacceptedIssues: AcceptedIssue[],\n\tcontributors: Pick<ContributorsCollection, \"add\">,\n\toptions: Pick<\n\t\tAllContributorsForRepositoryOptions,\n\t\t`labelType${string}` & keyof AllContributorsForRepositoryOptions\n\t>,\n) {\n\tfor (const acceptedIssue of acceptedIssues) {\n\t\tconst labels = acceptedIssue.labels.map((label) =>\n\t\t\ttypeof label === \"string\" ? label : label.name,\n\t\t);\n\n\t\tfor (const [labelType, contribution] of [\n\t\t\t// 🐛 `bug`: anybody who filed an issue labeled as accepting PRs and a bug\n\t\t\t[options.labelTypeBug, \"bug\"],\n\t\t\t// - 📖 `doc`: authors of merged PRs that address issues labeled as docs\n\t\t\t[options.labelTypeDocs, \"docs\"],\n\t\t\t// 💡 `ideas`: anybody who filed an issue labeled as accepting PRs and a feature\n\t\t\t[options.labelTypeIdeas, \"ideas\"],\n\t\t\t// - 🔧 `tool`: authors of merged PRs that address issues labeled as tooling\n\t\t\t[options.labelTypeTool, \"tool\"],\n\t\t] as const) {\n\t\t\tif (labels.some((label) => label === labelType)) {\n\t\t\t\
|
|
1
|
+
{"version":3,"sources":["../../../src/collect/adding/addAcceptedIssues.ts"],"sourcesContent":["import { descriptionToCoAuthors } from \"description-to-co-authors\";\nimport { ContributorsCollection } from \"../../ContributorsCollection.js\";\nimport { AllContributorsForRepositoryOptions } from \"../../options.js\";\nimport { AcceptedIssue } from \"../collecting/collectAcceptedIssues.js\";\n\nexport function addAcceptedIssues(\n\tacceptedIssues: AcceptedIssue[],\n\tcontributors: Pick<ContributorsCollection, \"add\">,\n\toptions: Pick<\n\t\tAllContributorsForRepositoryOptions,\n\t\t`labelType${string}` & keyof AllContributorsForRepositoryOptions\n\t>,\n) {\n\tfor (const acceptedIssue of acceptedIssues) {\n\t\tconst labels = acceptedIssue.labels.map((label) =>\n\t\t\ttypeof label === \"string\" ? label : label.name,\n\t\t);\n\n\t\tfor (const [labelType, contribution] of [\n\t\t\t// 🐛 `bug`: anybody who filed an issue labeled as accepting PRs and a bug\n\t\t\t[options.labelTypeBug, \"bug\"],\n\t\t\t// - 📖 `doc`: authors of merged PRs that address issues labeled as docs\n\t\t\t[options.labelTypeDocs, \"docs\"],\n\t\t\t// 💡 `ideas`: anybody who filed an issue labeled as accepting PRs and a feature\n\t\t\t[options.labelTypeIdeas, \"ideas\"],\n\t\t\t// - 🔧 `tool`: authors of merged PRs that address issues labeled as tooling\n\t\t\t[options.labelTypeTool, \"tool\"],\n\t\t] as const) {\n\t\t\tif (!labels.some((label) => label === labelType)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tconst logins = [];\n\n\t\t\tif (acceptedIssue.user) {\n\t\t\t\tlogins.push(acceptedIssue.user.login);\n\t\t\t}\n\n\t\t\tif (acceptedIssue.body) {\n\t\t\t\tfor (const coAuthor of descriptionToCoAuthors(acceptedIssue.body)) {\n\t\t\t\t\tlogins.push(coAuthor.username);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor (const login of logins) {\n\t\t\t\tcontributors.add(login, acceptedIssue.number, contribution);\n\t\t\t}\n\t\t}\n\t}\n}\n"],"mappings":"AAAA,SAAS,8BAA8B;AAKhC,SAAS,kBACf,gBACA,cACA,SAIC;AACD,aAAW,iBAAiB,gBAAgB;AAC3C,UAAM,SAAS,cAAc,OAAO;AAAA,MAAI,CAAC,UACxC,OAAO,UAAU,WAAW,QAAQ,MAAM;AAAA,IAC3C;AAEA,eAAW,CAAC,WAAW,YAAY,KAAK;AAAA;AAAA,MAEvC,CAAC,QAAQ,cAAc,KAAK;AAAA;AAAA,MAE5B,CAAC,QAAQ,eAAe,MAAM;AAAA;AAAA,MAE9B,CAAC,QAAQ,gBAAgB,OAAO;AAAA;AAAA,MAEhC,CAAC,QAAQ,eAAe,MAAM;AAAA,IAC/B,GAAY;AACX,UAAI,CAAC,OAAO,KAAK,CAAC,UAAU,UAAU,SAAS,GAAG;AACjD;AAAA,MACD;AAEA,YAAM,SAAS,CAAC;AAEhB,UAAI,cAAc,MAAM;AACvB,eAAO,KAAK,cAAc,KAAK,KAAK;AAAA,MACrC;AAEA,UAAI,cAAc,MAAM;AACvB,mBAAW,YAAY,uBAAuB,cAAc,IAAI,GAAG;AAClE,iBAAO,KAAK,SAAS,QAAQ;AAAA,QAC9B;AAAA,MACD;AAEA,iBAAW,SAAS,QAAQ;AAC3B,qBAAa,IAAI,OAAO,cAAc,QAAQ,YAAY;AAAA,MAC3D;AAAA,IACD;AAAA,EACD;AACD;","names":[]}
|
|
@@ -13,12 +13,12 @@ declare function collectAcceptedIssues(defaults: RequestDefaults, octokit: Octok
|
|
|
13
13
|
html_url: string;
|
|
14
14
|
number: number;
|
|
15
15
|
state: string;
|
|
16
|
-
state_reason?: "completed" | "reopened" | "not_planned" | null
|
|
16
|
+
state_reason?: "completed" | "reopened" | "not_planned" | null;
|
|
17
17
|
title: string;
|
|
18
|
-
body?: string | null
|
|
18
|
+
body?: string | null;
|
|
19
19
|
user: {
|
|
20
|
-
name?: string | null
|
|
21
|
-
email?: string | null
|
|
20
|
+
name?: string | null;
|
|
21
|
+
email?: string | null;
|
|
22
22
|
login: string;
|
|
23
23
|
id: number;
|
|
24
24
|
node_id: string;
|
|
@@ -37,20 +37,20 @@ declare function collectAcceptedIssues(defaults: RequestDefaults, octokit: Octok
|
|
|
37
37
|
received_events_url: string;
|
|
38
38
|
type: string;
|
|
39
39
|
site_admin: boolean;
|
|
40
|
-
starred_at?: string
|
|
40
|
+
starred_at?: string;
|
|
41
41
|
} | null;
|
|
42
42
|
labels: (string | {
|
|
43
|
-
id?: number
|
|
44
|
-
node_id?: string
|
|
45
|
-
url?: string
|
|
46
|
-
name?: string
|
|
47
|
-
description?: string | null
|
|
48
|
-
color?: string | null
|
|
49
|
-
default?: boolean
|
|
43
|
+
id?: number;
|
|
44
|
+
node_id?: string;
|
|
45
|
+
url?: string;
|
|
46
|
+
name?: string;
|
|
47
|
+
description?: string | null;
|
|
48
|
+
color?: string | null;
|
|
49
|
+
default?: boolean;
|
|
50
50
|
})[];
|
|
51
51
|
assignee: {
|
|
52
|
-
name?: string | null
|
|
53
|
-
email?: string | null
|
|
52
|
+
name?: string | null;
|
|
53
|
+
email?: string | null;
|
|
54
54
|
login: string;
|
|
55
55
|
id: number;
|
|
56
56
|
node_id: string;
|
|
@@ -69,11 +69,11 @@ declare function collectAcceptedIssues(defaults: RequestDefaults, octokit: Octok
|
|
|
69
69
|
received_events_url: string;
|
|
70
70
|
type: string;
|
|
71
71
|
site_admin: boolean;
|
|
72
|
-
starred_at?: string
|
|
72
|
+
starred_at?: string;
|
|
73
73
|
} | null;
|
|
74
74
|
assignees?: {
|
|
75
|
-
name?: string | null
|
|
76
|
-
email?: string | null
|
|
75
|
+
name?: string | null;
|
|
76
|
+
email?: string | null;
|
|
77
77
|
login: string;
|
|
78
78
|
id: number;
|
|
79
79
|
node_id: string;
|
|
@@ -92,8 +92,8 @@ declare function collectAcceptedIssues(defaults: RequestDefaults, octokit: Octok
|
|
|
92
92
|
received_events_url: string;
|
|
93
93
|
type: string;
|
|
94
94
|
site_admin: boolean;
|
|
95
|
-
starred_at?: string
|
|
96
|
-
}[] | null
|
|
95
|
+
starred_at?: string;
|
|
96
|
+
}[] | null;
|
|
97
97
|
milestone: {
|
|
98
98
|
url: string;
|
|
99
99
|
html_url: string;
|
|
@@ -105,8 +105,8 @@ declare function collectAcceptedIssues(defaults: RequestDefaults, octokit: Octok
|
|
|
105
105
|
title: string;
|
|
106
106
|
description: string | null;
|
|
107
107
|
creator: {
|
|
108
|
-
name?: string | null
|
|
109
|
-
email?: string | null
|
|
108
|
+
name?: string | null;
|
|
109
|
+
email?: string | null;
|
|
110
110
|
login: string;
|
|
111
111
|
id: number;
|
|
112
112
|
node_id: string;
|
|
@@ -125,7 +125,7 @@ declare function collectAcceptedIssues(defaults: RequestDefaults, octokit: Octok
|
|
|
125
125
|
received_events_url: string;
|
|
126
126
|
type: string;
|
|
127
127
|
site_admin: boolean;
|
|
128
|
-
starred_at?: string
|
|
128
|
+
starred_at?: string;
|
|
129
129
|
} | null;
|
|
130
130
|
open_issues: number;
|
|
131
131
|
closed_issues: number;
|
|
@@ -135,22 +135,22 @@ declare function collectAcceptedIssues(defaults: RequestDefaults, octokit: Octok
|
|
|
135
135
|
due_on: string | null;
|
|
136
136
|
} | null;
|
|
137
137
|
locked: boolean;
|
|
138
|
-
active_lock_reason?: string | null
|
|
138
|
+
active_lock_reason?: string | null;
|
|
139
139
|
comments: number;
|
|
140
140
|
pull_request?: {
|
|
141
|
-
merged_at?: string | null
|
|
141
|
+
merged_at?: string | null;
|
|
142
142
|
diff_url: string | null;
|
|
143
143
|
html_url: string | null;
|
|
144
144
|
patch_url: string | null;
|
|
145
145
|
url: string | null;
|
|
146
|
-
}
|
|
146
|
+
};
|
|
147
147
|
closed_at: string | null;
|
|
148
148
|
created_at: string;
|
|
149
149
|
updated_at: string;
|
|
150
|
-
draft?: boolean
|
|
150
|
+
draft?: boolean;
|
|
151
151
|
closed_by?: {
|
|
152
|
-
name?: string | null
|
|
153
|
-
email?: string | null
|
|
152
|
+
name?: string | null;
|
|
153
|
+
email?: string | null;
|
|
154
154
|
login: string;
|
|
155
155
|
id: number;
|
|
156
156
|
node_id: string;
|
|
@@ -169,11 +169,11 @@ declare function collectAcceptedIssues(defaults: RequestDefaults, octokit: Octok
|
|
|
169
169
|
received_events_url: string;
|
|
170
170
|
type: string;
|
|
171
171
|
site_admin: boolean;
|
|
172
|
-
starred_at?: string
|
|
173
|
-
} | null
|
|
174
|
-
body_html?: string
|
|
175
|
-
body_text?: string
|
|
176
|
-
timeline_url?: string
|
|
172
|
+
starred_at?: string;
|
|
173
|
+
} | null;
|
|
174
|
+
body_html?: string;
|
|
175
|
+
body_text?: string;
|
|
176
|
+
timeline_url?: string;
|
|
177
177
|
repository?: {
|
|
178
178
|
id: number;
|
|
179
179
|
node_id: string;
|
|
@@ -185,42 +185,19 @@ declare function collectAcceptedIssues(defaults: RequestDefaults, octokit: Octok
|
|
|
185
185
|
url: string | null;
|
|
186
186
|
spdx_id: string | null;
|
|
187
187
|
node_id: string;
|
|
188
|
-
html_url?: string
|
|
188
|
+
html_url?: string;
|
|
189
189
|
} | null;
|
|
190
|
-
organization?: {
|
|
191
|
-
name?: string | null | undefined;
|
|
192
|
-
email?: string | null | undefined;
|
|
193
|
-
login: string;
|
|
194
|
-
id: number;
|
|
195
|
-
node_id: string;
|
|
196
|
-
avatar_url: string;
|
|
197
|
-
gravatar_id: string | null;
|
|
198
|
-
url: string;
|
|
199
|
-
html_url: string;
|
|
200
|
-
followers_url: string;
|
|
201
|
-
following_url: string;
|
|
202
|
-
gists_url: string;
|
|
203
|
-
starred_url: string;
|
|
204
|
-
subscriptions_url: string;
|
|
205
|
-
organizations_url: string;
|
|
206
|
-
repos_url: string;
|
|
207
|
-
events_url: string;
|
|
208
|
-
received_events_url: string;
|
|
209
|
-
type: string;
|
|
210
|
-
site_admin: boolean;
|
|
211
|
-
starred_at?: string | undefined;
|
|
212
|
-
} | null | undefined;
|
|
213
190
|
forks: number;
|
|
214
191
|
permissions?: {
|
|
215
192
|
admin: boolean;
|
|
216
193
|
pull: boolean;
|
|
217
|
-
triage?: boolean
|
|
194
|
+
triage?: boolean;
|
|
218
195
|
push: boolean;
|
|
219
|
-
maintain?: boolean
|
|
220
|
-
}
|
|
196
|
+
maintain?: boolean;
|
|
197
|
+
};
|
|
221
198
|
owner: {
|
|
222
|
-
name?: string | null
|
|
223
|
-
email?: string | null
|
|
199
|
+
name?: string | null;
|
|
200
|
+
email?: string | null;
|
|
224
201
|
login: string;
|
|
225
202
|
id: number;
|
|
226
203
|
node_id: string;
|
|
@@ -239,7 +216,7 @@ declare function collectAcceptedIssues(defaults: RequestDefaults, octokit: Octok
|
|
|
239
216
|
received_events_url: string;
|
|
240
217
|
type: string;
|
|
241
218
|
site_admin: boolean;
|
|
242
|
-
starred_at?: string
|
|
219
|
+
starred_at?: string;
|
|
243
220
|
};
|
|
244
221
|
private: boolean;
|
|
245
222
|
html_url: string;
|
|
@@ -295,163 +272,47 @@ declare function collectAcceptedIssues(defaults: RequestDefaults, octokit: Octok
|
|
|
295
272
|
size: number;
|
|
296
273
|
default_branch: string;
|
|
297
274
|
open_issues_count: number;
|
|
298
|
-
is_template?: boolean
|
|
299
|
-
topics?: string[]
|
|
275
|
+
is_template?: boolean;
|
|
276
|
+
topics?: string[];
|
|
300
277
|
has_issues: boolean;
|
|
301
278
|
has_projects: boolean;
|
|
302
279
|
has_wiki: boolean;
|
|
303
280
|
has_pages: boolean;
|
|
304
281
|
has_downloads: boolean;
|
|
305
|
-
has_discussions?: boolean
|
|
282
|
+
has_discussions?: boolean;
|
|
306
283
|
archived: boolean;
|
|
307
284
|
disabled: boolean;
|
|
308
|
-
visibility?: string
|
|
285
|
+
visibility?: string;
|
|
309
286
|
pushed_at: string | null;
|
|
310
287
|
created_at: string | null;
|
|
311
288
|
updated_at: string | null;
|
|
312
|
-
allow_rebase_merge?: boolean
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
followers_url?: string | undefined;
|
|
327
|
-
following_url?: string | undefined;
|
|
328
|
-
gists_url?: string | undefined;
|
|
329
|
-
starred_url?: string | undefined;
|
|
330
|
-
subscriptions_url?: string | undefined;
|
|
331
|
-
organizations_url?: string | undefined;
|
|
332
|
-
repos_url?: string | undefined;
|
|
333
|
-
events_url?: string | undefined;
|
|
334
|
-
received_events_url?: string | undefined;
|
|
335
|
-
type?: string | undefined;
|
|
336
|
-
site_admin?: boolean | undefined;
|
|
337
|
-
} | undefined;
|
|
338
|
-
private?: boolean | undefined;
|
|
339
|
-
html_url?: string | undefined;
|
|
340
|
-
description?: string | undefined;
|
|
341
|
-
fork?: boolean | undefined;
|
|
342
|
-
url?: string | undefined;
|
|
343
|
-
archive_url?: string | undefined;
|
|
344
|
-
assignees_url?: string | undefined;
|
|
345
|
-
blobs_url?: string | undefined;
|
|
346
|
-
branches_url?: string | undefined;
|
|
347
|
-
collaborators_url?: string | undefined;
|
|
348
|
-
comments_url?: string | undefined;
|
|
349
|
-
commits_url?: string | undefined;
|
|
350
|
-
compare_url?: string | undefined;
|
|
351
|
-
contents_url?: string | undefined;
|
|
352
|
-
contributors_url?: string | undefined;
|
|
353
|
-
deployments_url?: string | undefined;
|
|
354
|
-
downloads_url?: string | undefined;
|
|
355
|
-
events_url?: string | undefined;
|
|
356
|
-
forks_url?: string | undefined;
|
|
357
|
-
git_commits_url?: string | undefined;
|
|
358
|
-
git_refs_url?: string | undefined;
|
|
359
|
-
git_tags_url?: string | undefined;
|
|
360
|
-
git_url?: string | undefined;
|
|
361
|
-
issue_comment_url?: string | undefined;
|
|
362
|
-
issue_events_url?: string | undefined;
|
|
363
|
-
issues_url?: string | undefined;
|
|
364
|
-
keys_url?: string | undefined;
|
|
365
|
-
labels_url?: string | undefined;
|
|
366
|
-
languages_url?: string | undefined;
|
|
367
|
-
merges_url?: string | undefined;
|
|
368
|
-
milestones_url?: string | undefined;
|
|
369
|
-
notifications_url?: string | undefined;
|
|
370
|
-
pulls_url?: string | undefined;
|
|
371
|
-
releases_url?: string | undefined;
|
|
372
|
-
ssh_url?: string | undefined;
|
|
373
|
-
stargazers_url?: string | undefined;
|
|
374
|
-
statuses_url?: string | undefined;
|
|
375
|
-
subscribers_url?: string | undefined;
|
|
376
|
-
subscription_url?: string | undefined;
|
|
377
|
-
tags_url?: string | undefined;
|
|
378
|
-
teams_url?: string | undefined;
|
|
379
|
-
trees_url?: string | undefined;
|
|
380
|
-
clone_url?: string | undefined;
|
|
381
|
-
mirror_url?: string | undefined;
|
|
382
|
-
hooks_url?: string | undefined;
|
|
383
|
-
svn_url?: string | undefined;
|
|
384
|
-
homepage?: string | undefined;
|
|
385
|
-
language?: string | undefined;
|
|
386
|
-
forks_count?: number | undefined;
|
|
387
|
-
stargazers_count?: number | undefined;
|
|
388
|
-
watchers_count?: number | undefined;
|
|
389
|
-
size?: number | undefined;
|
|
390
|
-
default_branch?: string | undefined;
|
|
391
|
-
open_issues_count?: number | undefined;
|
|
392
|
-
is_template?: boolean | undefined;
|
|
393
|
-
topics?: string[] | undefined;
|
|
394
|
-
has_issues?: boolean | undefined;
|
|
395
|
-
has_projects?: boolean | undefined;
|
|
396
|
-
has_wiki?: boolean | undefined;
|
|
397
|
-
has_pages?: boolean | undefined;
|
|
398
|
-
has_downloads?: boolean | undefined;
|
|
399
|
-
archived?: boolean | undefined;
|
|
400
|
-
disabled?: boolean | undefined;
|
|
401
|
-
visibility?: string | undefined;
|
|
402
|
-
pushed_at?: string | undefined;
|
|
403
|
-
created_at?: string | undefined;
|
|
404
|
-
updated_at?: string | undefined;
|
|
405
|
-
permissions?: {
|
|
406
|
-
admin?: boolean | undefined;
|
|
407
|
-
maintain?: boolean | undefined;
|
|
408
|
-
push?: boolean | undefined;
|
|
409
|
-
triage?: boolean | undefined;
|
|
410
|
-
pull?: boolean | undefined;
|
|
411
|
-
} | undefined;
|
|
412
|
-
allow_rebase_merge?: boolean | undefined;
|
|
413
|
-
temp_clone_token?: string | undefined;
|
|
414
|
-
allow_squash_merge?: boolean | undefined;
|
|
415
|
-
allow_auto_merge?: boolean | undefined;
|
|
416
|
-
delete_branch_on_merge?: boolean | undefined;
|
|
417
|
-
allow_update_branch?: boolean | undefined;
|
|
418
|
-
use_squash_pr_title_as_default?: boolean | undefined;
|
|
419
|
-
squash_merge_commit_title?: "PR_TITLE" | "COMMIT_OR_PR_TITLE" | undefined;
|
|
420
|
-
squash_merge_commit_message?: "PR_BODY" | "COMMIT_MESSAGES" | "BLANK" | undefined;
|
|
421
|
-
merge_commit_title?: "PR_TITLE" | "MERGE_MESSAGE" | undefined;
|
|
422
|
-
merge_commit_message?: "PR_TITLE" | "PR_BODY" | "BLANK" | undefined;
|
|
423
|
-
allow_merge_commit?: boolean | undefined;
|
|
424
|
-
subscribers_count?: number | undefined;
|
|
425
|
-
network_count?: number | undefined;
|
|
426
|
-
} | null | undefined;
|
|
427
|
-
temp_clone_token?: string | undefined;
|
|
428
|
-
allow_squash_merge?: boolean | undefined;
|
|
429
|
-
allow_auto_merge?: boolean | undefined;
|
|
430
|
-
delete_branch_on_merge?: boolean | undefined;
|
|
431
|
-
allow_update_branch?: boolean | undefined;
|
|
432
|
-
use_squash_pr_title_as_default?: boolean | undefined;
|
|
433
|
-
squash_merge_commit_title?: "PR_TITLE" | "COMMIT_OR_PR_TITLE" | undefined;
|
|
434
|
-
squash_merge_commit_message?: "PR_BODY" | "COMMIT_MESSAGES" | "BLANK" | undefined;
|
|
435
|
-
merge_commit_title?: "PR_TITLE" | "MERGE_MESSAGE" | undefined;
|
|
436
|
-
merge_commit_message?: "PR_TITLE" | "PR_BODY" | "BLANK" | undefined;
|
|
437
|
-
allow_merge_commit?: boolean | undefined;
|
|
438
|
-
allow_forking?: boolean | undefined;
|
|
439
|
-
web_commit_signoff_required?: boolean | undefined;
|
|
440
|
-
subscribers_count?: number | undefined;
|
|
441
|
-
network_count?: number | undefined;
|
|
289
|
+
allow_rebase_merge?: boolean;
|
|
290
|
+
temp_clone_token?: string;
|
|
291
|
+
allow_squash_merge?: boolean;
|
|
292
|
+
allow_auto_merge?: boolean;
|
|
293
|
+
delete_branch_on_merge?: boolean;
|
|
294
|
+
allow_update_branch?: boolean;
|
|
295
|
+
use_squash_pr_title_as_default?: boolean;
|
|
296
|
+
squash_merge_commit_title?: "PR_TITLE" | "COMMIT_OR_PR_TITLE";
|
|
297
|
+
squash_merge_commit_message?: "PR_BODY" | "COMMIT_MESSAGES" | "BLANK";
|
|
298
|
+
merge_commit_title?: "PR_TITLE" | "MERGE_MESSAGE";
|
|
299
|
+
merge_commit_message?: "PR_BODY" | "PR_TITLE" | "BLANK";
|
|
300
|
+
allow_merge_commit?: boolean;
|
|
301
|
+
allow_forking?: boolean;
|
|
302
|
+
web_commit_signoff_required?: boolean;
|
|
442
303
|
open_issues: number;
|
|
443
304
|
watchers: number;
|
|
444
|
-
master_branch?: string
|
|
445
|
-
starred_at?: string
|
|
446
|
-
anonymous_access_enabled?: boolean
|
|
447
|
-
}
|
|
305
|
+
master_branch?: string;
|
|
306
|
+
starred_at?: string;
|
|
307
|
+
anonymous_access_enabled?: boolean;
|
|
308
|
+
};
|
|
448
309
|
performed_via_github_app?: {
|
|
449
310
|
id: number;
|
|
450
|
-
slug?: string
|
|
311
|
+
slug?: string;
|
|
451
312
|
node_id: string;
|
|
452
313
|
owner: {
|
|
453
|
-
name?: string | null
|
|
454
|
-
email?: string | null
|
|
314
|
+
name?: string | null;
|
|
315
|
+
email?: string | null;
|
|
455
316
|
login: string;
|
|
456
317
|
id: number;
|
|
457
318
|
node_id: string;
|
|
@@ -470,7 +331,7 @@ declare function collectAcceptedIssues(defaults: RequestDefaults, octokit: Octok
|
|
|
470
331
|
received_events_url: string;
|
|
471
332
|
type: string;
|
|
472
333
|
site_admin: boolean;
|
|
473
|
-
starred_at?: string
|
|
334
|
+
starred_at?: string;
|
|
474
335
|
} | null;
|
|
475
336
|
name: string;
|
|
476
337
|
description: string | null;
|
|
@@ -479,20 +340,20 @@ declare function collectAcceptedIssues(defaults: RequestDefaults, octokit: Octok
|
|
|
479
340
|
created_at: string;
|
|
480
341
|
updated_at: string;
|
|
481
342
|
permissions: {
|
|
343
|
+
issues?: string;
|
|
344
|
+
checks?: string;
|
|
345
|
+
metadata?: string;
|
|
346
|
+
contents?: string;
|
|
347
|
+
deployments?: string;
|
|
482
348
|
[key: string]: string | undefined;
|
|
483
|
-
issues?: string | undefined;
|
|
484
|
-
checks?: string | undefined;
|
|
485
|
-
metadata?: string | undefined;
|
|
486
|
-
contents?: string | undefined;
|
|
487
|
-
deployments?: string | undefined;
|
|
488
349
|
};
|
|
489
350
|
events: string[];
|
|
490
|
-
installations_count?: number
|
|
491
|
-
client_id?: string
|
|
492
|
-
client_secret?: string
|
|
493
|
-
webhook_secret?: string | null
|
|
494
|
-
pem?: string
|
|
495
|
-
} | null
|
|
351
|
+
installations_count?: number;
|
|
352
|
+
client_id?: string;
|
|
353
|
+
client_secret?: string;
|
|
354
|
+
webhook_secret?: string | null;
|
|
355
|
+
pem?: string;
|
|
356
|
+
} | null;
|
|
496
357
|
author_association: "COLLABORATOR" | "CONTRIBUTOR" | "FIRST_TIMER" | "FIRST_TIME_CONTRIBUTOR" | "MANNEQUIN" | "MEMBER" | "NONE" | "OWNER";
|
|
497
358
|
reactions?: {
|
|
498
359
|
url: string;
|
|
@@ -505,7 +366,7 @@ declare function collectAcceptedIssues(defaults: RequestDefaults, octokit: Octok
|
|
|
505
366
|
hooray: number;
|
|
506
367
|
eyes: number;
|
|
507
368
|
rocket: number;
|
|
508
|
-
}
|
|
369
|
+
};
|
|
509
370
|
}[]>;
|
|
510
371
|
|
|
511
372
|
export { type AcceptedIssue, collectAcceptedIssues };
|