-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: parse rss feeds for our social platforms (#763)
* feat: pull rss feeds for our socials * fix: send open issues to socials channel * fix: lint * feat: load rss immediately on ready
- Loading branch information
1 parent
9261d8a
commit 091a9dc
Showing
12 changed files
with
491 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export const youtubeIds = { | ||
english: "UC8butISFwT-Wl7EV0hUK0BQ", | ||
espanol: "UC1emV4A8liRs9p80CY8ElUQ", | ||
portugues: "UCMh02FbsMgAZz_PDS6QjOKg", | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
/* eslint-disable @typescript-eslint/naming-convention -- There are a lot of properties that we don't get to rename. */ | ||
interface BlueskyRss { | ||
items: Array<{ | ||
link: string; | ||
pubDate: string; | ||
content: string; | ||
contentSnippet: string; | ||
guid: string; | ||
isoDate: Date; | ||
}>; | ||
title: string; | ||
description: string; | ||
link: string; | ||
} | ||
|
||
interface RedditRss { | ||
items: Array<{ | ||
title: string; | ||
link: string; | ||
pubDate: Date; | ||
author: string; | ||
content: string; | ||
id: string; | ||
isoDate: Date; | ||
}>; | ||
link: string; | ||
feedUrl: string; | ||
title: string; | ||
lastBuildDate: Date; | ||
} | ||
|
||
interface NewsRss { | ||
items: Array<{ | ||
"creator": string; | ||
"title": string; | ||
"link": string; | ||
"pubDate": string; | ||
"content:encoded": string; | ||
"dc:creator": string; | ||
"content": string; | ||
"contentSnippet": string; | ||
"guid": string; | ||
"categories": Array<string>; | ||
"isoDate": Date; | ||
}>; | ||
feedUrl: string; | ||
image: { | ||
link: string; | ||
url: string; | ||
title: string; | ||
}; | ||
paginationLinks: { | ||
self: string; | ||
}; | ||
title: string; | ||
description: string; | ||
generator: string; | ||
link: string; | ||
lastBuildDate: string; | ||
ttl: string; | ||
} | ||
|
||
interface YoutubeRss { | ||
items: Array<{ | ||
title: string; | ||
link: string; | ||
pubDate: Date; | ||
author: string; | ||
id: string; | ||
isoDate: Date; | ||
}>; | ||
link: string; | ||
feedUrl: string; | ||
title: string; | ||
} | ||
|
||
interface TwitchJson { | ||
data: Array<{ | ||
id: string; | ||
user_id: string; | ||
user_login: string; | ||
user_name: string; | ||
game_id: string; | ||
game_name: string; | ||
type: string; | ||
title: string; | ||
viewer_count: number; | ||
started_at: Date; | ||
language: string; | ||
thumbnail_url: string; | ||
tag_ids: Array<unknown>; | ||
tags: Array<string>; | ||
is_mature: boolean; | ||
}>; | ||
pagination: { | ||
cursor: string; | ||
}; | ||
} | ||
|
||
export type { BlueskyRss, RedditRss, NewsRss, YoutubeRss, TwitchJson }; |
Oops, something went wrong.