From 066234666b31110752556f219020704bc070ceb0 Mon Sep 17 00:00:00 2001 From: Diego Arthur Date: Wed, 8 Feb 2023 00:03:35 +0100 Subject: [PATCH 1/2] feat: add new props homepage prop: acess to the link from the page built to the project --- commit.cmd | 1 + package-lock.json | 2 +- package.json | 5 +++-- src/hooks/useGithubAutomatedRepos.ts | 32 +++++++++++++++++----------- 4 files changed, 25 insertions(+), 15 deletions(-) create mode 100644 commit.cmd diff --git a/commit.cmd b/commit.cmd new file mode 100644 index 0000000..4a185d3 --- /dev/null +++ b/commit.cmd @@ -0,0 +1 @@ +npx cz && exit diff --git a/package-lock.json b/package-lock.json index e997903..ef5ccfe 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "github-automated-repos", - "version": "1.0.10", + "version": "1.0.13", "lockfileVersion": 2, "requires": true, "packages": { diff --git a/package.json b/package.json index 6cbfa17..a117d0c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "github-automated-repos", - "version": "1.0.10", + "version": "1.0.17", "description": "", "main": "index.ts", "scripts": { @@ -17,7 +17,8 @@ "*.{ts,tsx}": [ "yarn lint:fix", "git add ." - ] + ], + "ignore": ["dist"] }, "keywords": [], "author": "", diff --git a/src/hooks/useGithubAutomatedRepos.ts b/src/hooks/useGithubAutomatedRepos.ts index f1d90c5..8aefbff 100644 --- a/src/hooks/useGithubAutomatedRepos.ts +++ b/src/hooks/useGithubAutomatedRepos.ts @@ -17,21 +17,28 @@ export interface IGithubRepos { html_url: string; description: string; id: number; + homepage: string; } -export function useGithubAutomatedRepos(data: [], keyWordDeploy: string) { - let dataFilter = []; - dataFilter = data.filter((item: IGithubRepos) => - item.topics.includes(keyWordDeploy as never), - ); +export function useGithubAutomatedRepos() { + function dataReposGithub(data: [], keyWordDeploy: string) { + let dataFilter = []; + dataFilter = data.filter((item: IGithubRepos) => + item.topics.includes(keyWordDeploy as never), + ); - return dataFilter.map((item: IGithubRepos) => ({ - id: item.id, - name: item.name, - html_url: item.html_url, - description: item.description, - topics: item.topics, - })); + return dataFilter.map((item: IGithubRepos) => ({ + id: item.id, + name: item.name, + html_url: item.html_url, + description: item.description, + topics: item.topics, + homepage: item.homepage, + })); + } + return { + dataReposGithub, + }; } export function IconsData() { @@ -154,5 +161,6 @@ export function IconsData() { return { iconStacks, iconsProjects, + IconsData, }; } From 2f1b8b465e4a37fd217bae9a4566b1684cdb2760 Mon Sep 17 00:00:00 2001 From: Diego Arthur Date: Wed, 8 Feb 2023 09:25:03 +0100 Subject: [PATCH 2/2] chore: chore --- commit.cmd | 1 - package.json | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) delete mode 100644 commit.cmd diff --git a/commit.cmd b/commit.cmd deleted file mode 100644 index 4a185d3..0000000 --- a/commit.cmd +++ /dev/null @@ -1 +0,0 @@ -npx cz && exit diff --git a/package.json b/package.json index a117d0c..fe5b5d6 100644 --- a/package.json +++ b/package.json @@ -17,8 +17,7 @@ "*.{ts,tsx}": [ "yarn lint:fix", "git add ." - ], - "ignore": ["dist"] + ] }, "keywords": [], "author": "",