mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-04 19:59:54 +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`, {
|
||||
headers,
|
||||
searchParams: {
|
||||
sort: "updated",
|
||||
direction: "desc",
|
||||
sort: 'updated',
|
||||
direction: 'desc',
|
||||
per_page: limit,
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
const timeline = response.data;
|
||||
|
||||
const items = timeline.map((item) => {
|
||||
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 urlParts = item.html_url.split("/");
|
||||
const urlParts = item.html_url.split('/');
|
||||
const issueType = typeDict[urlParts[urlParts.length - 2]].title;
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user