From bd11ed77ec5525a9e5e4f76d382037b239b425f2 Mon Sep 17 00:00:00 2001 From: Dmytro Litvinov Date: Wed, 8 Mar 2023 23:30:50 +0200 Subject: [PATCH 01/16] Add Dmytro Litvinov --- src/data.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/data.js b/src/data.js index 2cee161d..5c9028f5 100644 --- a/src/data.js +++ b/src/data.js @@ -8564,6 +8564,24 @@ module.exports = [ 'GraphQL', ], }, + { + name: 'Dmytro Litvinov', + description: + 'Full Stack Python developer from 🇺🇦', + url: 'https://dmytrolitvinov.com/uses/', + twitter: '@DmytroLitvinov', + emoji: '🪵', + country: '🇺🇦', + computer: 'apple', + phone: 'iphone', + tags: [ + 'Developer', + 'Web Developer', + 'Full Stack', + 'Python', + 'Django', + ], + }, { name: 'Braden Watkins', description: 'Student, Full Stack Developer, Lover of all things analog', From 168387237e383cc8412d04ef6450deb8102e968c Mon Sep 17 00:00:00 2001 From: Sean Boult <996134+Hacksore@users.noreply.github.com> Date: Fri, 24 Mar 2023 20:06:57 -0500 Subject: [PATCH 02/16] Add fallback image --- .gitignore | 1 - public/default.png | Bin 0 -> 755 bytes src/components/Person.js | 4 ++++ 3 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 public/default.png diff --git a/.gitignore b/.gitignore index c1df6902..0ae3e696 100644 --- a/.gitignore +++ b/.gitignore @@ -56,7 +56,6 @@ typings/ .env* .cache/ -public # Mac files .DS_Store diff --git a/public/default.png b/public/default.png new file mode 100644 index 0000000000000000000000000000000000000000..d0cafecdbe600d0654d1c8d962e17ecf9f07a216 GIT binary patch literal 755 zcmVJ8loC=S@QdTC>@VT!MU}K`es1x7}{Z1-OnjWU1DX`FyS#paAFNI$G2VB0`aL z@IzucostX02@#blibu1_pur4u&BjD55j42jYz9F{+jtI0t=DTh91gK&#>gTN=yW=X z2|N;arzKPbfd}bL8%3p{t6{1Sdpb`CJ0u2!!P_JN{x{kXmPlCCV4cM4F)gM-w!tol$O*12z{3p*Z=3 l!+f6cPX50R@{QDp`~sQ@Ez~5eFB<>=002ovPDHLkV1mG%K`#IR literal 0 HcmV?d00001 diff --git a/src/components/Person.js b/src/components/Person.js index 9f359179..904c4d76 100644 --- a/src/components/Person.js +++ b/src/components/Person.js @@ -20,6 +20,10 @@ export default function Person({ person }) { height="50" src={img} alt={person.name} + onError={({ currentTarget }) => { + currentTarget.onerror = null; // prevents looping + currentTarget.src = "/default.png"; + }} loading="lazy" />

From 38023a445dda4d6b940543f84f7db0a4eff17550 Mon Sep 17 00:00:00 2001 From: Blake Campbell Date: Wed, 29 Mar 2023 01:23:24 -0400 Subject: [PATCH 03/16] Upgrading to node 16 for workflows, updating regex --- .github/workflows/data-validate.yml | 2 +- .github/workflows/populate-readme.yml | 2 +- server.ts | 6 +++++- src/data.js | 24 ++++++++++++++++++++++++ 4 files changed, 31 insertions(+), 3 deletions(-) diff --git a/.github/workflows/data-validate.yml b/.github/workflows/data-validate.yml index 9b312fcd..81e20dc8 100644 --- a/.github/workflows/data-validate.yml +++ b/.github/workflows/data-validate.yml @@ -14,7 +14,7 @@ jobs: - uses: actions/checkout@v1 - uses: actions/setup-node@v1 with: - node-version: 13.x + node-version: 16.x - name: Cache/Restore node modules uses: actions/cache@v1 diff --git a/.github/workflows/populate-readme.yml b/.github/workflows/populate-readme.yml index f9885179..f9f3305d 100644 --- a/.github/workflows/populate-readme.yml +++ b/.github/workflows/populate-readme.yml @@ -17,7 +17,7 @@ jobs: - uses: actions/checkout@v1 - uses: actions/setup-node@v1 with: - node-version: 13.x + node-version: 16.x - name: Cache/Restore node modules uses: actions/cache@v1 diff --git a/server.ts b/server.ts index f61ecde4..97602293 100644 --- a/server.ts +++ b/server.ts @@ -12,5 +12,9 @@ export const config = { cache: "manual", path: "/*", // Pass all assets to the netlify asset server - excluded_patterns: ["/_assets/*", "/_shared/*", "/**/*.js"], + excluded_patterns: [ + '^\\/_assets\\/[^\\/]*$', + '^\\/shared\\/[^\\/]*$', + '^\\/**\\/[^\\/]*$', + ], }; diff --git a/src/data.js b/src/data.js index 2cee161d..de2ee2e3 100644 --- a/src/data.js +++ b/src/data.js @@ -21,6 +21,30 @@ * Keep this a commonjs export. */ module.exports = [ + { + name: 'Vladimir Vo', + description: 'Frontend developer with passion for great product design', + url: 'https://vldmr.website/uses', + twitter: '@v1in_', + emoji: '🖖', + country: '🇵🇱', + computer: 'apple', + phone: 'iphone', + tags: [ + 'Astro', + 'Front End', + 'Developer', + 'JavaScript', + 'TypeScript', + 'React', + 'Next', + 'JAMstack', + 'Netlify', + 'Vercel', + 'HTML', + 'CSS', + ], + }, { name: 'uncenter', description: 'Very incompetent developer', From 6a21f998645dbd5ee0940a2c34e6cf0ef5f7be07 Mon Sep 17 00:00:00 2001 From: Blake Campbell Date: Wed, 29 Mar 2023 01:36:37 -0400 Subject: [PATCH 04/16] Updating util with actions 5.1 --- scripts/utils.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/utils.js b/scripts/utils.js index 9088ead8..803c9839 100644 --- a/scripts/utils.js +++ b/scripts/utils.js @@ -111,6 +111,7 @@ module.exports.communicateValidationOutcome = async function ( ].join('\n'); } + const { GITHUB_TOKEN } = process.env; const { context } = github; if (!GITHUB_TOKEN || !context.payload.pull_request) { @@ -123,7 +124,8 @@ module.exports.communicateValidationOutcome = async function ( const pullRequestNumber = context.payload.pull_request.number; - const octokit = new github.GitHub(GITHUB_TOKEN); + const github = require('@actions/github'); + const octokit = new github.getOctokit(GITHUB_TOKEN); await octokit.issues.createComment({ ...context.repo, issue_number: pullRequestNumber, From 9dafb83692ce47e878e00690228749c65dda9d6c Mon Sep 17 00:00:00 2001 From: Blake Campbell Date: Wed, 29 Mar 2023 01:39:13 -0400 Subject: [PATCH 05/16] Fixing github import --- scripts/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/utils.js b/scripts/utils.js index 803c9839..f7c930d4 100644 --- a/scripts/utils.js +++ b/scripts/utils.js @@ -5,6 +5,7 @@ const Joi = require('joi'); const http = require('http'); const https = require('https'); const flags = require('./flags.js'); +const github = require('@actions/github'); async function getCurrentBranchName() { let myOutput = ''; @@ -124,7 +125,6 @@ module.exports.communicateValidationOutcome = async function ( const pullRequestNumber = context.payload.pull_request.number; - const github = require('@actions/github'); const octokit = new github.getOctokit(GITHUB_TOKEN); await octokit.issues.createComment({ ...context.repo, From 1a30aa3181d8a8e1a6fcd98c66f3eaceea5f4fa2 Mon Sep 17 00:00:00 2001 From: Blake Campbell Date: Wed, 29 Mar 2023 01:41:56 -0400 Subject: [PATCH 06/16] Imported actions twice :( --- scripts/utils.js | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/utils.js b/scripts/utils.js index f7c930d4..4a1bcbf3 100644 --- a/scripts/utils.js +++ b/scripts/utils.js @@ -5,7 +5,6 @@ const Joi = require('joi'); const http = require('http'); const https = require('https'); const flags = require('./flags.js'); -const github = require('@actions/github'); async function getCurrentBranchName() { let myOutput = ''; From eb833a93a2fd97097c959ab86ab160a9332c0f9b Mon Sep 17 00:00:00 2001 From: Blake Campbell Date: Wed, 29 Mar 2023 01:45:52 -0400 Subject: [PATCH 07/16] Updating create comment --- scripts/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/utils.js b/scripts/utils.js index 4a1bcbf3..8b608239 100644 --- a/scripts/utils.js +++ b/scripts/utils.js @@ -125,7 +125,7 @@ module.exports.communicateValidationOutcome = async function ( const pullRequestNumber = context.payload.pull_request.number; const octokit = new github.getOctokit(GITHUB_TOKEN); - await octokit.issues.createComment({ + await octokit.rest.issues.createComment({ ...context.repo, issue_number: pullRequestNumber, body: comment, From 9011d646276ea5bad258b440dff179ba6eabfd95 Mon Sep 17 00:00:00 2001 From: Blake Campbell Date: Wed, 29 Mar 2023 01:56:22 -0400 Subject: [PATCH 08/16] Using pulls instead of issues --- scripts/utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/utils.js b/scripts/utils.js index 8b608239..b952f325 100644 --- a/scripts/utils.js +++ b/scripts/utils.js @@ -125,9 +125,9 @@ module.exports.communicateValidationOutcome = async function ( const pullRequestNumber = context.payload.pull_request.number; const octokit = new github.getOctokit(GITHUB_TOKEN); - await octokit.rest.issues.createComment({ + await octokit.rest.pulls.createComment({ ...context.repo, - issue_number: pullRequestNumber, + pullRequestNumber, body: comment, }); }; From a99648b25ce973f2ec2a9af6ac4da5227096b6bc Mon Sep 17 00:00:00 2001 From: Blake Campbell Date: Wed, 29 Mar 2023 01:58:31 -0400 Subject: [PATCH 09/16] Adding review comment --- scripts/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/utils.js b/scripts/utils.js index b952f325..407b25c4 100644 --- a/scripts/utils.js +++ b/scripts/utils.js @@ -125,7 +125,7 @@ module.exports.communicateValidationOutcome = async function ( const pullRequestNumber = context.payload.pull_request.number; const octokit = new github.getOctokit(GITHUB_TOKEN); - await octokit.rest.pulls.createComment({ + await octokit.rest.pulls.createReviewComment({ ...context.repo, pullRequestNumber, body: comment, From 96772328a8f0e0eb6e99403b838022f240496b44 Mon Sep 17 00:00:00 2001 From: Blake Campbell Date: Tue, 11 Apr 2023 22:41:48 -0400 Subject: [PATCH 10/16] adding logging --- scripts/utils.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/utils.js b/scripts/utils.js index 407b25c4..84ce71cc 100644 --- a/scripts/utils.js +++ b/scripts/utils.js @@ -123,6 +123,9 @@ module.exports.communicateValidationOutcome = async function ( } const pullRequestNumber = context.payload.pull_request.number; + console.log('pullRequestNumber', pullRequestNumber); + console.log('pullRequestNumber', context.payload.pull_request); + const octokit = new github.getOctokit(GITHUB_TOKEN); await octokit.rest.pulls.createReviewComment({ From b100f8dd6e919ccf3d48bcdc21801bb4e138812c Mon Sep 17 00:00:00 2001 From: Blake Campbell Date: Tue, 11 Apr 2023 22:47:04 -0400 Subject: [PATCH 11/16] adding more logging --- scripts/utils.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/scripts/utils.js b/scripts/utils.js index 84ce71cc..1cb62069 100644 --- a/scripts/utils.js +++ b/scripts/utils.js @@ -124,7 +124,14 @@ module.exports.communicateValidationOutcome = async function ( const pullRequestNumber = context.payload.pull_request.number; console.log('pullRequestNumber', pullRequestNumber); - console.log('pullRequestNumber', context.payload.pull_request); + console.log('repo full', ...context.repo); + // log owner + console.log('owner', context.repo.owner); + // repo name + console.log('repo', context.repo.repo); + // body + console.log('body', comment); + const octokit = new github.getOctokit(GITHUB_TOKEN); From cd6168908a0d31fdaf8997da545582f86380e8d9 Mon Sep 17 00:00:00 2001 From: Blake Campbell Date: Tue, 11 Apr 2023 22:49:36 -0400 Subject: [PATCH 12/16] updating logging --- scripts/utils.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/utils.js b/scripts/utils.js index 1cb62069..7560f932 100644 --- a/scripts/utils.js +++ b/scripts/utils.js @@ -124,7 +124,9 @@ module.exports.communicateValidationOutcome = async function ( const pullRequestNumber = context.payload.pull_request.number; console.log('pullRequestNumber', pullRequestNumber); - console.log('repo full', ...context.repo); + console.log('context', context); + + console.log('repo full', context.repo); // log owner console.log('owner', context.repo.owner); // repo name From b96d3ddaa3edb56105177413ac89c36c0e5d97b1 Mon Sep 17 00:00:00 2001 From: Blake Campbell Date: Tue, 11 Apr 2023 23:03:50 -0400 Subject: [PATCH 13/16] Disabling comments for testing --- scripts/utils.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/utils.js b/scripts/utils.js index 7560f932..8435a1a1 100644 --- a/scripts/utils.js +++ b/scripts/utils.js @@ -136,10 +136,10 @@ module.exports.communicateValidationOutcome = async function ( - const octokit = new github.getOctokit(GITHUB_TOKEN); - await octokit.rest.pulls.createReviewComment({ - ...context.repo, - pullRequestNumber, - body: comment, - }); + // const octokit = new github.getOctokit(GITHUB_TOKEN); + // await octokit.rest.pulls.createReviewComment({ + // ...context.repo, + // pullRequestNumber, + // body: comment, + // }); }; From d756814e6f49ad40e35f6bc215e7ce3e053e366b Mon Sep 17 00:00:00 2001 From: Blake Campbell Date: Tue, 11 Apr 2023 23:06:22 -0400 Subject: [PATCH 14/16] Disabling create review comment temporarily. --- scripts/utils.js | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/scripts/utils.js b/scripts/utils.js index 8435a1a1..2aa0fd8a 100644 --- a/scripts/utils.js +++ b/scripts/utils.js @@ -121,20 +121,8 @@ module.exports.communicateValidationOutcome = async function ( core.info(`Comment contents:\n${comment}`); return; } - - const pullRequestNumber = context.payload.pull_request.number; - console.log('pullRequestNumber', pullRequestNumber); - console.log('context', context); - - console.log('repo full', context.repo); - // log owner - console.log('owner', context.repo.owner); - // repo name - console.log('repo', context.repo.repo); - // body - console.log('body', comment); - - + // TODO: Re-enable a way to comment on PRs that tests passed. + // const pullRequestNumber = context.payload.pull_request.number; // const octokit = new github.getOctokit(GITHUB_TOKEN); // await octokit.rest.pulls.createReviewComment({ From e44f01934584ae2b37a6e9b58af7c85e69efbb27 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Wed, 12 Apr 2023 03:10:43 +0000 Subject: [PATCH 15/16] chore: generate `readme.md`, lint `src/data.js` --- readme.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/readme.md b/readme.md index 3f2b95be..cfebc589 100644 --- a/readme.md +++ b/readme.md @@ -30,7 +30,9 @@ This readme is auto-generated from the data.js file, so please don't PR this fil # Awesome Uses ![Awesome][awesome-badge] +* [Vladimir Vo](https://vldmr.website/uses) — Frontend developer with passion for great product design * [uncenter](https://www.uncenter.org/uses) — Very incompetent developer +* [Donavon West](https://donavon.com/uses) — Spread Love {...❤️} * [Justin Mahar](https://justinmahar.com/uses/) — Extremely bald Software Architect & Content Creator * [Syofyan Zuhad](https://syofyan-profile.vercel.app/uses/) — Full Stack Software Engineer 🇮🇩 * [Zilvinas Kucinskas](https://www.ziku.dev/uses/) — Full Stack Ruby on Rails Engineer and Entrepreneur From 3352cec44ac3cb12d22d14168e9c6d6568781a54 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Wed, 12 Apr 2023 03:15:58 +0000 Subject: [PATCH 16/16] chore: generate `readme.md`, lint `src/data.js` --- readme.md | 1 + src/data.js | 11 ++--------- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/readme.md b/readme.md index cfebc589..c38d6580 100644 --- a/readme.md +++ b/readme.md @@ -411,6 +411,7 @@ This readme is auto-generated from the data.js file, so please don't PR this fil * [Josiah Wiebe](https://jwie.be/uses/) — Designer & developer, lifelong learner. * [Muhammad Oka](https://muhammadoka.dev/uses/) — Computer Science student, Cyber Security enthusiast. * [Benjamin Lannon](https://lannonbr.com/uses/) — Web Developer, Open Source Contributor, Livestreamer +* [Dmytro Litvinov](https://dmytrolitvinov.com/uses/) — Full Stack Python developer from 🇺🇦 * [Braden Watkins](https://bradenwatkins.dev/uses) — Student, Full Stack Developer, Lover of all things analog * [Rikin Patel](https://patelrikin.com/#uses) — Experienced Front-end developer, Passionate about Javascript * [Joris Hens](https://www.goodbytes.be/uses) — Web development teacher, Security and hacking enthousiast, Cook. diff --git a/src/data.js b/src/data.js index 38cd872b..554bd53d 100644 --- a/src/data.js +++ b/src/data.js @@ -8590,21 +8590,14 @@ module.exports = [ }, { name: 'Dmytro Litvinov', - description: - 'Full Stack Python developer from 🇺🇦', + description: 'Full Stack Python developer from 🇺🇦', url: 'https://dmytrolitvinov.com/uses/', twitter: '@DmytroLitvinov', emoji: '🪵', country: '🇺🇦', computer: 'apple', phone: 'iphone', - tags: [ - 'Developer', - 'Web Developer', - 'Full Stack', - 'Python', - 'Django', - ], + tags: ['Developer', 'Web Developer', 'Full Stack', 'Python', 'Django'], }, { name: 'Braden Watkins',