mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-05 04:11:26 +08:00
style: auto format
This commit is contained in:
@@ -44,19 +44,19 @@ async function allIssues(ctx, user, repo, limit, headers) {
|
|||||||
const response = await got(`${apiUrl}/repos/${user}/${repo}/issues/comments`, {
|
const response = await got(`${apiUrl}/repos/${user}/${repo}/issues/comments`, {
|
||||||
headers,
|
headers,
|
||||||
searchParams: {
|
searchParams: {
|
||||||
sort: "updated",
|
sort: 'updated',
|
||||||
direction: "desc",
|
direction: 'desc',
|
||||||
per_page: limit,
|
per_page: limit,
|
||||||
}
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const timeline = response.data;
|
const timeline = response.data;
|
||||||
|
|
||||||
const items = timeline.map((item) => {
|
const items = timeline.map((item) => {
|
||||||
const actor = item.actor?.login ?? item.user?.login ?? 'ghost';
|
const actor = item.actor?.login ?? item.user?.login ?? 'ghost';
|
||||||
const issueUrlParts = item.issue_url.split("/");
|
const issueUrlParts = item.issue_url.split('/');
|
||||||
const issue = issueUrlParts[issueUrlParts.length - 1];
|
const issue = issueUrlParts[issueUrlParts.length - 1];
|
||||||
const urlParts = item.html_url.split("/");
|
const urlParts = item.html_url.split('/');
|
||||||
const issueType = typeDict[urlParts[urlParts.length - 2]].title;
|
const issueType = typeDict[urlParts[urlParts.length - 2]].title;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user