mirror of
https://github.com/lingble/twenty.git
synced 2025-11-06 15:47:56 +00:00
Create congratulations bot (#5404)
- Created congratulations bot : <img width="939" alt="Screenshot 2024-05-14 at 12 47 13" src="https://github.com/twentyhq/twenty/assets/102751374/5138515f-fe4d-4c6d-9c7a-0240accbfca9"> - Modified OG image - Added png extension to OG image route To be noted: The bot will not work until the new API route is not deployed. Please check OG image with Cloudflare cache. --------- Co-authored-by: Ady Beraud <a.beraud96@gmail.com>
This commit is contained in:
@@ -9,11 +9,7 @@ import { IssueNode, PullRequestNode } from '@/github/contributors/types';
|
||||
import { fetchAndSaveGithubReleases } from '@/github/github-releases/fetch-and-save-github-releases';
|
||||
import { fetchAndSaveGithubStars } from '@/github/github-stars/fetch-and-save-github-stars';
|
||||
|
||||
export const fetchAndSaveGithubData = async ({
|
||||
pageLimit,
|
||||
}: {
|
||||
pageLimit: number;
|
||||
}) => {
|
||||
export const fetchAndSaveGithubData = async () => {
|
||||
if (!global.process.env.GITHUB_TOKEN) {
|
||||
return new Error('No GitHub token provided');
|
||||
}
|
||||
@@ -35,14 +31,12 @@ export const fetchAndSaveGithubData = async ({
|
||||
null,
|
||||
false,
|
||||
[],
|
||||
pageLimit,
|
||||
)) as Array<PullRequestNode>;
|
||||
const fetchedIssues = (await fetchIssuesPRs(
|
||||
query,
|
||||
null,
|
||||
true,
|
||||
[],
|
||||
pageLimit,
|
||||
)) as Array<IssueNode>;
|
||||
|
||||
await savePRsToDB(fetchedPRs, assignableUsers);
|
||||
|
||||
Reference in New Issue
Block a user