diff --git a/_data/renz45/MonaTheOctocat.md b/_data/renz45/MonaTheOctocat.md new file mode 100644 index 00000000..daeb9fe8 --- /dev/null +++ b/_data/renz45/MonaTheOctocat.md @@ -0,0 +1,6 @@ +--- +name: Adam +institution: Mona University +quote: "The home for all developers" +github_user: rensD +--- -- knotmirror 0.0.1 From a540b2a8d88a10ce773349bce7cc0ae8e7a71a66 Mon Sep 17 00:00:00 2001 From: Adam Rensel Date: Mon, 10 May 2021 16:26:38 -0400 Subject: [PATCH 02/68] rename --- _data/renz45/{MonaTheOctocat.md => renz45.md} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename _data/renz45/{MonaTheOctocat.md => renz45.md} (100%) diff --git a/_data/renz45/MonaTheOctocat.md b/_data/renz45/renz45.md similarity index 100% rename from _data/renz45/MonaTheOctocat.md rename to _data/renz45/renz45.md -- knotmirror 0.0.1 From 1410b9318c54cf699b8d436fb9509d9bc7cb7ea3 Mon Sep 17 00:00:00 2001 From: Adam Rensel Date: Mon, 10 May 2021 19:22:43 -0400 Subject: [PATCH 03/68] use isValid --- .github/workflows/src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/src/index.js b/.github/workflows/src/index.js index 2e2e7823..a6a2a1c0 100644 --- a/.github/workflows/src/index.js +++ b/.github/workflows/src/index.js @@ -67,7 +67,7 @@ const fileValidator = require('./app/file-validator.js'); const isFilePathValid = fileValidator.isValidPaths(fileNames) try { - content = isFilePathValid && await octokit.getContent(`_data/${actionEvent.pullAuthor}/${actionEvent.pullAuthor}.md`) + content = isFilePathValid.isValid && await octokit.getContent(`_data/${actionEvent.pullAuthor}/${actionEvent.pullAuthor}.md`) } catch(err) { console.log(err) } -- knotmirror 0.0.1 From a66472a903f097cdb00fd716ac24bbc0ff35b4c0 Mon Sep 17 00:00:00 2001 From: Adam Rensel Date: Mon, 10 May 2021 19:25:04 -0400 Subject: [PATCH 04/68] protect from nil --- .github/workflows/src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/src/index.js b/.github/workflows/src/index.js index a6a2a1c0..0301f6b9 100644 --- a/.github/workflows/src/index.js +++ b/.github/workflows/src/index.js @@ -124,12 +124,12 @@ const fileValidator = require('./app/file-validator.js'); feedback.push("* *It looks like you still need to fill out the [shipping form](https://airtable.com/shrM5IigBuRFaj33H) to continue*") } - if(!isFilePathValid.isValid) { + if(!isFilePathValid?.isValid) { console.log('Files have errors: \n' + isFilePathValid.errors.join('\n')) feedback.push(`* *Uh Oh! I've found some issues with where you have created your files!* \n\t${isFilePathValid.errors.join('\n')}`) } - if(!isMarkdownValid.isValid) { + if(!isMarkdownValid?.isValid) { console.log("markdown is invalid") feedback.push(`* *Please take another look at your markdown file, there are errors:* \n\t${isMarkdownValid.errors.join('\n')}`) } -- knotmirror 0.0.1 From 762f5da08efe7915c1667d3ef313ee43bb24c41d Mon Sep 17 00:00:00 2001 From: Adam Rensel Date: Mon, 10 May 2021 19:27:18 -0400 Subject: [PATCH 05/68] protect from nil --- .github/workflows/src/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/src/index.js b/.github/workflows/src/index.js index 0301f6b9..c5a2b15c 100644 --- a/.github/workflows/src/index.js +++ b/.github/workflows/src/index.js @@ -62,7 +62,7 @@ const fileValidator = require('./app/file-validator.js'); return file.node.path }) - let isMarkdownValid + let isMarkdownValid = {} let content const isFilePathValid = fileValidator.isValidPaths(fileNames) @@ -124,12 +124,12 @@ const fileValidator = require('./app/file-validator.js'); feedback.push("* *It looks like you still need to fill out the [shipping form](https://airtable.com/shrM5IigBuRFaj33H) to continue*") } - if(!isFilePathValid?.isValid) { + if(!isFilePathValid.isValid) { console.log('Files have errors: \n' + isFilePathValid.errors.join('\n')) feedback.push(`* *Uh Oh! I've found some issues with where you have created your files!* \n\t${isFilePathValid.errors.join('\n')}`) } - if(!isMarkdownValid?.isValid) { + if(!isMarkdownValid.isValid) { console.log("markdown is invalid") feedback.push(`* *Please take another look at your markdown file, there are errors:* \n\t${isMarkdownValid.errors.join('\n')}`) } -- knotmirror 0.0.1 From 1f3454fe13a25a36b850a37e8a32669b41c150aa Mon Sep 17 00:00:00 2001 From: Adam Rensel Date: Mon, 10 May 2021 19:30:34 -0400 Subject: [PATCH 06/68] fixes --- .github/workflows/src/index.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/src/index.js b/.github/workflows/src/index.js index c5a2b15c..77d8f325 100644 --- a/.github/workflows/src/index.js +++ b/.github/workflows/src/index.js @@ -18,6 +18,7 @@ // * congrats! // * merge PR +// Load .env in dev if(!process.env.GITHUB_ACTIONS) { const result = require('dotenv').config() @@ -32,7 +33,14 @@ const actionEvent = require('./app/action-event.js'); const educationWeb = require('./app/education-web.js'); const fileValidator = require('./app/file-validator.js'); +const BOT_ACCOUNT_LOGIN = "GitHub-Education-bot" + ;(async ()=>{ + + if(actionEvent.requestedReviewer.login === BOT_ACCOUNT_LOGIN) { + return true + } + const results = await Promise.all([ octokit.fetchPr(actionEvent.pullNumber), airtable.userParticipated2020(actionEvent.pullAuthor), @@ -126,12 +134,12 @@ const fileValidator = require('./app/file-validator.js'); if(!isFilePathValid.isValid) { console.log('Files have errors: \n' + isFilePathValid.errors.join('\n')) - feedback.push(`* *Uh Oh! I've found some issues with where you have created your files!* \n\t${isFilePathValid.errors.join('\n')}`) + feedback.push(`* *Uh Oh! I've found some issues with where you have created your files!* \n\t${isFilePathValid.errors?.join('\n')}`) } if(!isMarkdownValid.isValid) { console.log("markdown is invalid") - feedback.push(`* *Please take another look at your markdown file, there are errors:* \n\t${isMarkdownValid.errors.join('\n')}`) + feedback.push(`* *Please take another look at your markdown file, there are errors:* \n\t${isMarkdownValid.errors?.join('\n')}`) } if(!userAgreesCoc) { -- knotmirror 0.0.1 From b1230fb7abc44cd4d4318f4b3110d56211fc787a Mon Sep 17 00:00:00 2001 From: Adam Rensel Date: Mon, 10 May 2021 19:32:34 -0400 Subject: [PATCH 07/68] Only reevaluate if the requested reviewer is the bot --- .github/workflows/src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/src/index.js b/.github/workflows/src/index.js index 77d8f325..fd2ab936 100644 --- a/.github/workflows/src/index.js +++ b/.github/workflows/src/index.js @@ -37,7 +37,7 @@ const BOT_ACCOUNT_LOGIN = "GitHub-Education-bot" ;(async ()=>{ - if(actionEvent.requestedReviewer.login === BOT_ACCOUNT_LOGIN) { + if(actionEvent.requestedReviewer.login !== BOT_ACCOUNT_LOGIN && actionEvent.name === "review_requested") { return true } -- knotmirror 0.0.1 From 40ed6b3a10bb4343c4a8480e9ce6690b91087d2c Mon Sep 17 00:00:00 2001 From: Adam Rensel Date: Mon, 10 May 2021 19:36:03 -0400 Subject: [PATCH 08/68] requestedReviwer => requestedReviewer --- .github/workflows/src/app/action-event.js | 2 +- .github/workflows/src/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/src/app/action-event.js b/.github/workflows/src/app/action-event.js index 826209bd..dab84ce4 100644 --- a/.github/workflows/src/app/action-event.js +++ b/.github/workflows/src/app/action-event.js @@ -19,7 +19,7 @@ class ActionsEvent { // I guess some event files don't have EventData this.event = this.data.eventData || this.data this.pull = this.data.pull_request - this.requestedReviwer = this.data.requestedReviewer + this.requestedReviewer = this.data.requestedReviwer this.name = this.event.action this.pullNumber = this.pull.number this.pullRepo = this.pull.base.repo diff --git a/.github/workflows/src/index.js b/.github/workflows/src/index.js index fd2ab936..aa315ff3 100644 --- a/.github/workflows/src/index.js +++ b/.github/workflows/src/index.js @@ -37,7 +37,7 @@ const BOT_ACCOUNT_LOGIN = "GitHub-Education-bot" ;(async ()=>{ - if(actionEvent.requestedReviewer.login !== BOT_ACCOUNT_LOGIN && actionEvent.name === "review_requested") { + if(actionEvent.name === "review_requested" && actionEvent.requestedReviewer.login !== BOT_ACCOUNT_LOGIN) { return true } -- knotmirror 0.0.1 From fad47eb1cf5bb9de3f925f04abf575f172197e79 Mon Sep 17 00:00:00 2001 From: Adam Rensel Date: Mon, 10 May 2021 19:39:59 -0400 Subject: [PATCH 09/68] requestedReviwer => requestedReviewer --- .github/workflows/src/app/action-event.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/src/app/action-event.js b/.github/workflows/src/app/action-event.js index dab84ce4..510a74a7 100644 --- a/.github/workflows/src/app/action-event.js +++ b/.github/workflows/src/app/action-event.js @@ -19,7 +19,7 @@ class ActionsEvent { // I guess some event files don't have EventData this.event = this.data.eventData || this.data this.pull = this.data.pull_request - this.requestedReviewer = this.data.requestedReviwer + this.requestedReviewer = this.data.requestedReviewer this.name = this.event.action this.pullNumber = this.pull.number this.pullRepo = this.pull.base.repo -- knotmirror 0.0.1 From 620665b096e13b1f6a2a17dabfe7abe2ca5efb1a Mon Sep 17 00:00:00 2001 From: Adam Rensel Date: Mon, 10 May 2021 19:42:10 -0400 Subject: [PATCH 10/68] throw error when checks fail --- .github/workflows/src/index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/src/index.js b/.github/workflows/src/index.js index aa315ff3..acdce629 100644 --- a/.github/workflows/src/index.js +++ b/.github/workflows/src/index.js @@ -161,6 +161,7 @@ ${feedback.join('\n')} } console.log(feedBackMessage) + try { await octokit.createReview(` **Hi ${ actionEvent.pullAuthor },** @@ -171,5 +172,9 @@ ${ feedBackMessage } } catch(err) { console.log(err) } + + if(feedback.length) { + throw new Error(feedback.join('\n')) + } } })() -- knotmirror 0.0.1 From e9e40ca7bfd1ab2a56e314c13202319a2c1e6ca9 Mon Sep 17 00:00:00 2001 From: Adam Rensel Date: Mon, 10 May 2021 19:45:26 -0400 Subject: [PATCH 11/68] logging --- .github/workflows/src/app/action-event.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/src/app/action-event.js b/.github/workflows/src/app/action-event.js index 510a74a7..4d7e1147 100644 --- a/.github/workflows/src/app/action-event.js +++ b/.github/workflows/src/app/action-event.js @@ -15,7 +15,7 @@ class ActionsEvent { if(!this.data) { return } - + console.log(JSON.stringify(this.data)) // I guess some event files don't have EventData this.event = this.data.eventData || this.data this.pull = this.data.pull_request -- knotmirror 0.0.1 From 6562f774fc542a75ae6f0945fa36faa66131193a Mon Sep 17 00:00:00 2001 From: Adam Rensel Date: Mon, 10 May 2021 19:46:47 -0400 Subject: [PATCH 12/68] Bubble up error --- .github/workflows/src/index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/src/index.js b/.github/workflows/src/index.js index acdce629..f0b7631e 100644 --- a/.github/workflows/src/index.js +++ b/.github/workflows/src/index.js @@ -35,6 +35,8 @@ const fileValidator = require('./app/file-validator.js'); const BOT_ACCOUNT_LOGIN = "GitHub-Education-bot" + +try { ;(async ()=>{ if(actionEvent.name === "review_requested" && actionEvent.requestedReviewer.login !== BOT_ACCOUNT_LOGIN) { @@ -178,3 +180,6 @@ ${ feedBackMessage } } } })() +} catch(err) { + throw err +} -- knotmirror 0.0.1 From 3d4df42e15a299c3fab746a857dd71d6f0f163d3 Mon Sep 17 00:00:00 2001 From: Adam Rensel Date: Mon, 10 May 2021 19:51:38 -0400 Subject: [PATCH 13/68] Use the currect event data (seems to have changed after moving repos?) --- .github/workflows/src/app/action-event.js | 6 +- .../workflows/src/app/data/example-event.json | 894 +----------------- 2 files changed, 4 insertions(+), 896 deletions(-) diff --git a/.github/workflows/src/app/action-event.js b/.github/workflows/src/app/action-event.js index 4d7e1147..ef247af4 100644 --- a/.github/workflows/src/app/action-event.js +++ b/.github/workflows/src/app/action-event.js @@ -15,11 +15,11 @@ class ActionsEvent { if(!this.data) { return } - console.log(JSON.stringify(this.data)) + // I guess some event files don't have EventData - this.event = this.data.eventData || this.data + this.event = this.data this.pull = this.data.pull_request - this.requestedReviewer = this.data.requestedReviewer + this.requestedReviewer = this.data.requested_reviewer this.name = this.event.action this.pullNumber = this.pull.number this.pullRepo = this.pull.base.repo diff --git a/.github/workflows/src/app/data/example-event.json b/.github/workflows/src/app/data/example-event.json index 59e96ac7..fceeccae 100644 --- a/.github/workflows/src/app/data/example-event.json +++ b/.github/workflows/src/app/data/example-event.json @@ -1,893 +1 @@ -{ - "eventData": { - "action": "review_requested", - "number": 3, - "organization": { - "avatar_url": "https://avatars.githubusercontent.com/u/21289761?v=4", - "description": "Technology leadership at your school", - "events_url": "https://api.github.com/orgs/campus-experts/events", - "hooks_url": "https://api.github.com/orgs/campus-experts/hooks", - "id": 21289761, - "issues_url": "https://api.github.com/orgs/campus-experts/issues", - "login": "campus-experts", - "members_url": "https://api.github.com/orgs/campus-experts/members{/member}", - "node_id": "MDEyOk9yZ2FuaXphdGlvbjIxMjg5NzYx", - "public_members_url": "https://api.github.com/orgs/campus-experts/public_members{/member}", - "repos_url": "https://api.github.com/orgs/campus-experts/repos", - "url": "https://api.github.com/orgs/campus-experts" - }, - "pull_request": { - "_links": { - "comments": { - "href": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/issues/3/comments" - }, - "commits": { - "href": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/pulls/3/commits" - }, - "html": { - "href": "https://github.com/campus-experts/GitHubGraduation-2021/pull/3" - }, - "issue": { - "href": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/issues/3" - }, - "review_comment": { - "href": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/pulls/comments{/number}" - }, - "review_comments": { - "href": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/pulls/3/comments" - }, - "self": { - "href": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/pulls/3" - }, - "statuses": { - "href": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/statuses/f1e7671fce4f1462a0a5053eac193f2de30a6de4" - } - }, - "active_lock_reason": null, - "additions": 212, - "assignee": null, - "assignees": [], - "author_association": "CONTRIBUTOR", - "auto_merge": null, - "base": { - "label": "campus-experts:main", - "ref": "main", - "repo": { - "allow_merge_commit": true, - "allow_rebase_merge": true, - "allow_squash_merge": true, - "archive_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/{archive_format}{/ref}", - "archived": false, - "assignees_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/assignees{/user}", - "blobs_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/git/blobs{/sha}", - "branches_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/branches{/branch}", - "clone_url": "https://github.com/campus-experts/GitHubGraduation-2021.git", - "collaborators_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/collaborators{/collaborator}", - "comments_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/comments{/number}", - "commits_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/commits{/sha}", - "compare_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/compare/{base}...{head}", - "contents_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/contents/{+path}", - "contributors_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/contributors", - "created_at": "2021-04-22T19:11:09Z", - "default_branch": "main", - "delete_branch_on_merge": false, - "deployments_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/deployments", - "description": "Testing repository for GitHub Graduation", - "disabled": false, - "downloads_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/downloads", - "events_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/events", - "fork": false, - "forks": 1, - "forks_count": 1, - "forks_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/forks", - "full_name": "campus-experts/GitHubGraduation-2021", - "git_commits_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/git/commits{/sha}", - "git_refs_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/git/tags{/sha}", - "git_url": "git://github.com/campus-experts/GitHubGraduation-2021.git", - "has_downloads": true, - "has_issues": true, - "has_pages": false, - "has_projects": true, - "has_wiki": true, - "homepage": null, - "hooks_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/hooks", - "html_url": "https://github.com/campus-experts/GitHubGraduation-2021", - "id": 360655524, - "issue_comment_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/issues/comments{/number}", - "issue_events_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/issues/events{/number}", - "issues_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/issues{/number}", - "keys_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/keys{/key_id}", - "labels_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/labels{/name}", - "language": "JavaScript", - "languages_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/languages", - "license": null, - "merges_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/merges", - "milestones_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/milestones{/number}", - "mirror_url": null, - "name": "GitHubGraduation-2021", - "node_id": "MDEwOlJlcG9zaXRvcnkzNjA2NTU1MjQ=", - "notifications_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/notifications{?since,all,participating}", - "open_issues": 3, - "open_issues_count": 3, - "owner": { - "avatar_url": "https://avatars.githubusercontent.com/u/21289761?v=4", - "events_url": "https://api.github.com/users/campus-experts/events{/privacy}", - "followers_url": "https://api.github.com/users/campus-experts/followers", - "following_url": "https://api.github.com/users/campus-experts/following{/other_user}", - "gists_url": "https://api.github.com/users/campus-experts/gists{/gist_id}", - "gravatar_id": "", - "html_url": "https://github.com/campus-experts", - "id": 21289761, - "login": "campus-experts", - "node_id": "MDEyOk9yZ2FuaXphdGlvbjIxMjg5NzYx", - "organizations_url": "https://api.github.com/users/campus-experts/orgs", - "received_events_url": "https://api.github.com/users/campus-experts/received_events", - "repos_url": "https://api.github.com/users/campus-experts/repos", - "site_admin": false, - "starred_url": "https://api.github.com/users/campus-experts/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/campus-experts/subscriptions", - "type": "Organization", - "url": "https://api.github.com/users/campus-experts" - }, - "private": true, - "pulls_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/pulls{/number}", - "pushed_at": "2021-05-07T15:25:07Z", - "releases_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/releases{/id}", - "size": 1345, - "ssh_url": "git@github.com:campus-experts/GitHubGraduation-2021.git", - "stargazers_count": 0, - "stargazers_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/stargazers", - "statuses_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/statuses/{sha}", - "subscribers_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/subscribers", - "subscription_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/subscription", - "svn_url": "https://github.com/campus-experts/GitHubGraduation-2021", - "tags_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/tags", - "teams_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/teams", - "trees_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/git/trees{/sha}", - "updated_at": "2021-05-07T15:25:10Z", - "url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021", - "watchers": 0, - "watchers_count": 0 - }, - "sha": "fad65288fc1b7fd68df76c9c7e9ff822e1d7fa18", - "user": { - "avatar_url": "https://avatars.githubusercontent.com/u/21289761?v=4", - "events_url": "https://api.github.com/users/campus-experts/events{/privacy}", - "followers_url": "https://api.github.com/users/campus-experts/followers", - "following_url": "https://api.github.com/users/campus-experts/following{/other_user}", - "gists_url": "https://api.github.com/users/campus-experts/gists{/gist_id}", - "gravatar_id": "", - "html_url": "https://github.com/campus-experts", - "id": 21289761, - "login": "campus-experts", - "node_id": "MDEyOk9yZ2FuaXphdGlvbjIxMjg5NzYx", - "organizations_url": "https://api.github.com/users/campus-experts/orgs", - "received_events_url": "https://api.github.com/users/campus-experts/received_events", - "repos_url": "https://api.github.com/users/campus-experts/repos", - "site_admin": false, - "starred_url": "https://api.github.com/users/campus-experts/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/campus-experts/subscriptions", - "type": "Organization", - "url": "https://api.github.com/users/campus-experts" - } - }, - "body": "# Application to the Class of 2021🎓\r\n\r\nThis pull request template helps you complete an application to the **Class of 2021**. Use the checklist below to verify you have followed the instructions correctly. \r\n\r\n## Checklist ✅\r\n\r\n- [x] I have read the instructions on the README file before submitting my application. \r\n- [x] I made my submission by creating a folder on the `_data` folder and followed the naming convention mentioned in the instructions (``), added my profile picture and markdown file.\r\n- [x] I have used the Markdown file template to add my information to the Year Book.\r\n- [x] I understand that a reviewer will merge my pull request after examining it or ask for changes in case needed.\r\n- [x] I understand I should not tag or add a reviewer to this Pull Request.\r\n- [x] I have [added the event](http://www.google.com/calendar/event?action=TEMPLATE&dates=20210605T160000Z%2F20210605T173000Z&text=GitHub%20Graduation%20%F0%9F%8E%93&location=https%3A%2F%2Fwww.twitch.tv%2Fgithubeducation&details=) to my Calendar.\r\n\r\n", - "changed_files": 7, - "closed_at": null, - "comments": 1, - "comments_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/issues/3/comments", - "commits": 26, - "commits_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/pulls/3/commits", - "created_at": "2021-04-30T06:10:21Z", - "deletions": 49, - "diff_url": "https://github.com/campus-experts/GitHubGraduation-2021/pull/3.diff", - "draft": false, - "head": { - "label": "juanpflores:main", - "ref": "main", - "repo": { - "allow_merge_commit": true, - "allow_rebase_merge": true, - "allow_squash_merge": true, - "archive_url": "https://api.github.com/repos/juanpflores/GitHubGraduation-2021/{archive_format}{/ref}", - "archived": false, - "assignees_url": "https://api.github.com/repos/juanpflores/GitHubGraduation-2021/assignees{/user}", - "blobs_url": "https://api.github.com/repos/juanpflores/GitHubGraduation-2021/git/blobs{/sha}", - "branches_url": "https://api.github.com/repos/juanpflores/GitHubGraduation-2021/branches{/branch}", - "clone_url": "https://github.com/juanpflores/GitHubGraduation-2021.git", - "collaborators_url": "https://api.github.com/repos/juanpflores/GitHubGraduation-2021/collaborators{/collaborator}", - "comments_url": "https://api.github.com/repos/juanpflores/GitHubGraduation-2021/comments{/number}", - "commits_url": "https://api.github.com/repos/juanpflores/GitHubGraduation-2021/commits{/sha}", - "compare_url": "https://api.github.com/repos/juanpflores/GitHubGraduation-2021/compare/{base}...{head}", - "contents_url": "https://api.github.com/repos/juanpflores/GitHubGraduation-2021/contents/{+path}", - "contributors_url": "https://api.github.com/repos/juanpflores/GitHubGraduation-2021/contributors", - "created_at": "2021-04-30T06:01:03Z", - "default_branch": "main", - "delete_branch_on_merge": false, - "deployments_url": "https://api.github.com/repos/juanpflores/GitHubGraduation-2021/deployments", - "description": "Testing repository for GitHub Graduation", - "disabled": false, - "downloads_url": "https://api.github.com/repos/juanpflores/GitHubGraduation-2021/downloads", - "events_url": "https://api.github.com/repos/juanpflores/GitHubGraduation-2021/events", - "fork": true, - "forks": 0, - "forks_count": 0, - "forks_url": "https://api.github.com/repos/juanpflores/GitHubGraduation-2021/forks", - "full_name": "juanpflores/GitHubGraduation-2021", - "git_commits_url": "https://api.github.com/repos/juanpflores/GitHubGraduation-2021/git/commits{/sha}", - "git_refs_url": "https://api.github.com/repos/juanpflores/GitHubGraduation-2021/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/juanpflores/GitHubGraduation-2021/git/tags{/sha}", - "git_url": "git://github.com/juanpflores/GitHubGraduation-2021.git", - "has_downloads": true, - "has_issues": false, - "has_pages": false, - "has_projects": true, - "has_wiki": true, - "homepage": null, - "hooks_url": "https://api.github.com/repos/juanpflores/GitHubGraduation-2021/hooks", - "html_url": "https://github.com/juanpflores/GitHubGraduation-2021", - "id": 363041975, - "issue_comment_url": "https://api.github.com/repos/juanpflores/GitHubGraduation-2021/issues/comments{/number}", - "issue_events_url": "https://api.github.com/repos/juanpflores/GitHubGraduation-2021/issues/events{/number}", - "issues_url": "https://api.github.com/repos/juanpflores/GitHubGraduation-2021/issues{/number}", - "keys_url": "https://api.github.com/repos/juanpflores/GitHubGraduation-2021/keys{/key_id}", - "labels_url": "https://api.github.com/repos/juanpflores/GitHubGraduation-2021/labels{/name}", - "language": "JavaScript", - "languages_url": "https://api.github.com/repos/juanpflores/GitHubGraduation-2021/languages", - "license": null, - "merges_url": "https://api.github.com/repos/juanpflores/GitHubGraduation-2021/merges", - "milestones_url": "https://api.github.com/repos/juanpflores/GitHubGraduation-2021/milestones{/number}", - "mirror_url": null, - "name": "GitHubGraduation-2021", - "node_id": "MDEwOlJlcG9zaXRvcnkzNjMwNDE5NzU=", - "notifications_url": "https://api.github.com/repos/juanpflores/GitHubGraduation-2021/notifications{?since,all,participating}", - "open_issues": 0, - "open_issues_count": 0, - "owner": { - "avatar_url": "https://avatars.githubusercontent.com/u/6200135?v=4", - "events_url": "https://api.github.com/users/juanpflores/events{/privacy}", - "followers_url": "https://api.github.com/users/juanpflores/followers", - "following_url": "https://api.github.com/users/juanpflores/following{/other_user}", - "gists_url": "https://api.github.com/users/juanpflores/gists{/gist_id}", - "gravatar_id": "", - "html_url": "https://github.com/juanpflores", - "id": 6200135, - "login": "juanpflores", - "node_id": "MDQ6VXNlcjYyMDAxMzU=", - "organizations_url": "https://api.github.com/users/juanpflores/orgs", - "received_events_url": "https://api.github.com/users/juanpflores/received_events", - "repos_url": "https://api.github.com/users/juanpflores/repos", - "site_admin": false, - "starred_url": "https://api.github.com/users/juanpflores/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/juanpflores/subscriptions", - "type": "User", - "url": "https://api.github.com/users/juanpflores" - }, - "private": true, - "pulls_url": "https://api.github.com/repos/juanpflores/GitHubGraduation-2021/pulls{/number}", - "pushed_at": "2021-05-03T19:43:35Z", - "releases_url": "https://api.github.com/repos/juanpflores/GitHubGraduation-2021/releases{/id}", - "size": 1289, - "ssh_url": "git@github.com:juanpflores/GitHubGraduation-2021.git", - "stargazers_count": 0, - "stargazers_url": "https://api.github.com/repos/juanpflores/GitHubGraduation-2021/stargazers", - "statuses_url": "https://api.github.com/repos/juanpflores/GitHubGraduation-2021/statuses/{sha}", - "subscribers_url": "https://api.github.com/repos/juanpflores/GitHubGraduation-2021/subscribers", - "subscription_url": "https://api.github.com/repos/juanpflores/GitHubGraduation-2021/subscription", - "svn_url": "https://github.com/juanpflores/GitHubGraduation-2021", - "tags_url": "https://api.github.com/repos/juanpflores/GitHubGraduation-2021/tags", - "teams_url": "https://api.github.com/repos/juanpflores/GitHubGraduation-2021/teams", - "trees_url": "https://api.github.com/repos/juanpflores/GitHubGraduation-2021/git/trees{/sha}", - "updated_at": "2021-05-03T19:43:39Z", - "url": "https://api.github.com/repos/juanpflores/GitHubGraduation-2021", - "watchers": 0, - "watchers_count": 0 - }, - "sha": "f1e7671fce4f1462a0a5053eac193f2de30a6de4", - "user": { - "avatar_url": "https://avatars.githubusercontent.com/u/6200135?v=4", - "events_url": "https://api.github.com/users/juanpflores/events{/privacy}", - "followers_url": "https://api.github.com/users/juanpflores/followers", - "following_url": "https://api.github.com/users/juanpflores/following{/other_user}", - "gists_url": "https://api.github.com/users/juanpflores/gists{/gist_id}", - "gravatar_id": "", - "html_url": "https://github.com/juanpflores", - "id": 6200135, - "login": "juanpflores", - "node_id": "MDQ6VXNlcjYyMDAxMzU=", - "organizations_url": "https://api.github.com/users/juanpflores/orgs", - "received_events_url": "https://api.github.com/users/juanpflores/received_events", - "repos_url": "https://api.github.com/users/juanpflores/repos", - "site_admin": false, - "starred_url": "https://api.github.com/users/juanpflores/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/juanpflores/subscriptions", - "type": "User", - "url": "https://api.github.com/users/juanpflores" - } - }, - "html_url": "https://github.com/campus-experts/GitHubGraduation-2021/pull/3", - "id": 627028922, - "issue_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/issues/3", - "labels": [], - "locked": false, - "maintainer_can_modify": true, - "merge_commit_sha": "31f1e0831ff4e3d8ca47c6f538338c9c66c8db73", - "mergeable": false, - "mergeable_state": "dirty", - "merged": false, - "merged_at": null, - "merged_by": null, - "milestone": null, - "node_id": "MDExOlB1bGxSZXF1ZXN0NjI3MDI4OTIy", - "number": 3, - "patch_url": "https://github.com/campus-experts/GitHubGraduation-2021/pull/3.patch", - "rebaseable": false, - "requested_reviewers": [ - { - "avatar_url": "https://avatars.githubusercontent.com/u/83462995?v=4", - "events_url": "https://api.github.com/users/GitHub-Education-bot/events{/privacy}", - "followers_url": "https://api.github.com/users/GitHub-Education-bot/followers", - "following_url": "https://api.github.com/users/GitHub-Education-bot/following{/other_user}", - "gists_url": "https://api.github.com/users/GitHub-Education-bot/gists{/gist_id}", - "gravatar_id": "", - "html_url": "https://github.com/GitHub-Education-bot", - "id": 83462995, - "login": "GitHub-Education-bot", - "node_id": "MDQ6VXNlcjgzNDYyOTk1", - "organizations_url": "https://api.github.com/users/GitHub-Education-bot/orgs", - "received_events_url": "https://api.github.com/users/GitHub-Education-bot/received_events", - "repos_url": "https://api.github.com/users/GitHub-Education-bot/repos", - "site_admin": false, - "starred_url": "https://api.github.com/users/GitHub-Education-bot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/GitHub-Education-bot/subscriptions", - "type": "User", - "url": "https://api.github.com/users/GitHub-Education-bot" - } - ], - "requested_teams": [], - "review_comment_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/pulls/comments{/number}", - "review_comments": 0, - "review_comments_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/pulls/3/comments", - "state": "open", - "statuses_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/statuses/f1e7671fce4f1462a0a5053eac193f2de30a6de4", - "title": "Create juanpflores.md", - "updated_at": "2021-05-07T15:25:22Z", - "url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/pulls/3", - "user": { - "avatar_url": "https://avatars.githubusercontent.com/u/6200135?v=4", - "events_url": "https://api.github.com/users/juanpflores/events{/privacy}", - "followers_url": "https://api.github.com/users/juanpflores/followers", - "following_url": "https://api.github.com/users/juanpflores/following{/other_user}", - "gists_url": "https://api.github.com/users/juanpflores/gists{/gist_id}", - "gravatar_id": "", - "html_url": "https://github.com/juanpflores", - "id": 6200135, - "login": "juanpflores", - "node_id": "MDQ6VXNlcjYyMDAxMzU=", - "organizations_url": "https://api.github.com/users/juanpflores/orgs", - "received_events_url": "https://api.github.com/users/juanpflores/received_events", - "repos_url": "https://api.github.com/users/juanpflores/repos", - "site_admin": false, - "starred_url": "https://api.github.com/users/juanpflores/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/juanpflores/subscriptions", - "type": "User", - "url": "https://api.github.com/users/juanpflores" - } - }, - "repository": { - "archive_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/{archive_format}{/ref}", - "archived": false, - "assignees_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/assignees{/user}", - "blobs_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/git/blobs{/sha}", - "branches_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/branches{/branch}", - "clone_url": "https://github.com/campus-experts/GitHubGraduation-2021.git", - "collaborators_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/collaborators{/collaborator}", - "comments_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/comments{/number}", - "commits_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/commits{/sha}", - "compare_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/compare/{base}...{head}", - "contents_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/contents/{+path}", - "contributors_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/contributors", - "created_at": "2021-04-22T19:11:09Z", - "default_branch": "main", - "deployments_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/deployments", - "description": "Testing repository for GitHub Graduation", - "disabled": false, - "downloads_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/downloads", - "events_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/events", - "fork": false, - "forks": 1, - "forks_count": 1, - "forks_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/forks", - "full_name": "campus-experts/GitHubGraduation-2021", - "git_commits_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/git/commits{/sha}", - "git_refs_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/git/tags{/sha}", - "git_url": "git://github.com/campus-experts/GitHubGraduation-2021.git", - "has_downloads": true, - "has_issues": true, - "has_pages": false, - "has_projects": true, - "has_wiki": true, - "homepage": null, - "hooks_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/hooks", - "html_url": "https://github.com/campus-experts/GitHubGraduation-2021", - "id": 360655524, - "issue_comment_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/issues/comments{/number}", - "issue_events_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/issues/events{/number}", - "issues_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/issues{/number}", - "keys_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/keys{/key_id}", - "labels_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/labels{/name}", - "language": "JavaScript", - "languages_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/languages", - "license": null, - "merges_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/merges", - "milestones_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/milestones{/number}", - "mirror_url": null, - "name": "GitHubGraduation-2021", - "node_id": "MDEwOlJlcG9zaXRvcnkzNjA2NTU1MjQ=", - "notifications_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/notifications{?since,all,participating}", - "open_issues": 3, - "open_issues_count": 3, - "owner": { - "avatar_url": "https://avatars.githubusercontent.com/u/21289761?v=4", - "events_url": "https://api.github.com/users/campus-experts/events{/privacy}", - "followers_url": "https://api.github.com/users/campus-experts/followers", - "following_url": "https://api.github.com/users/campus-experts/following{/other_user}", - "gists_url": "https://api.github.com/users/campus-experts/gists{/gist_id}", - "gravatar_id": "", - "html_url": "https://github.com/campus-experts", - "id": 21289761, - "login": "campus-experts", - "node_id": "MDEyOk9yZ2FuaXphdGlvbjIxMjg5NzYx", - "organizations_url": "https://api.github.com/users/campus-experts/orgs", - "received_events_url": "https://api.github.com/users/campus-experts/received_events", - "repos_url": "https://api.github.com/users/campus-experts/repos", - "site_admin": false, - "starred_url": "https://api.github.com/users/campus-experts/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/campus-experts/subscriptions", - "type": "Organization", - "url": "https://api.github.com/users/campus-experts" - }, - "private": true, - "pulls_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/pulls{/number}", - "pushed_at": "2021-05-07T15:25:07Z", - "releases_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/releases{/id}", - "size": 1345, - "ssh_url": "git@github.com:campus-experts/GitHubGraduation-2021.git", - "stargazers_count": 0, - "stargazers_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/stargazers", - "statuses_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/statuses/{sha}", - "subscribers_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/subscribers", - "subscription_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/subscription", - "svn_url": "https://github.com/campus-experts/GitHubGraduation-2021", - "tags_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/tags", - "teams_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/teams", - "trees_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/git/trees{/sha}", - "updated_at": "2021-05-07T15:25:10Z", - "url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021", - "watchers": 0, - "watchers_count": 0 - }, - "requested_reviewer": { - "avatar_url": "https://avatars.githubusercontent.com/u/83462995?v=4", - "events_url": "https://api.github.com/users/GitHub-Education-bot/events{/privacy}", - "followers_url": "https://api.github.com/users/GitHub-Education-bot/followers", - "following_url": "https://api.github.com/users/GitHub-Education-bot/following{/other_user}", - "gists_url": "https://api.github.com/users/GitHub-Education-bot/gists{/gist_id}", - "gravatar_id": "", - "html_url": "https://github.com/GitHub-Education-bot", - "id": 83462995, - "login": "GitHub-Education-bot", - "node_id": "MDQ6VXNlcjgzNDYyOTk1", - "organizations_url": "https://api.github.com/users/GitHub-Education-bot/orgs", - "received_events_url": "https://api.github.com/users/GitHub-Education-bot/received_events", - "repos_url": "https://api.github.com/users/GitHub-Education-bot/repos", - "site_admin": false, - "starred_url": "https://api.github.com/users/GitHub-Education-bot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/GitHub-Education-bot/subscriptions", - "type": "User", - "url": "https://api.github.com/users/GitHub-Education-bot" - }, - "sender": { - "avatar_url": "https://avatars.githubusercontent.com/u/599521?v=4", - "events_url": "https://api.github.com/users/renz45/events{/privacy}", - "followers_url": "https://api.github.com/users/renz45/followers", - "following_url": "https://api.github.com/users/renz45/following{/other_user}", - "gists_url": "https://api.github.com/users/renz45/gists{/gist_id}", - "gravatar_id": "", - "html_url": "https://github.com/renz45", - "id": 599521, - "login": "renz45", - "node_id": "MDQ6VXNlcjU5OTUyMQ==", - "organizations_url": "https://api.github.com/users/renz45/orgs", - "received_events_url": "https://api.github.com/users/renz45/received_events", - "repos_url": "https://api.github.com/users/renz45/repos", - "site_admin": true, - "starred_url": "https://api.github.com/users/renz45/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/renz45/subscriptions", - "type": "User", - "url": "https://api.github.com/users/renz45" - } - }, - "pullRequest": { - "_links": { - "comments": { - "href": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/issues/3/comments" - }, - "commits": { - "href": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/pulls/3/commits" - }, - "html": { - "href": "https://github.com/campus-experts/GitHubGraduation-2021/pull/3" - }, - "issue": { - "href": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/issues/3" - }, - "review_comment": { - "href": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/pulls/comments{/number}" - }, - "review_comments": { - "href": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/pulls/3/comments" - }, - "self": { - "href": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/pulls/3" - }, - "statuses": { - "href": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/statuses/f1e7671fce4f1462a0a5053eac193f2de30a6de4" - } - }, - "active_lock_reason": null, - "additions": 212, - "assignee": null, - "assignees": [], - "author_association": "CONTRIBUTOR", - "auto_merge": null, - "base": { - "label": "campus-experts:main", - "ref": "main", - "repo": { - "allow_merge_commit": true, - "allow_rebase_merge": true, - "allow_squash_merge": true, - "archive_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/{archive_format}{/ref}", - "archived": false, - "assignees_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/assignees{/user}", - "blobs_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/git/blobs{/sha}", - "branches_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/branches{/branch}", - "clone_url": "https://github.com/campus-experts/GitHubGraduation-2021.git", - "collaborators_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/collaborators{/collaborator}", - "comments_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/comments{/number}", - "commits_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/commits{/sha}", - "compare_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/compare/{base}...{head}", - "contents_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/contents/{+path}", - "contributors_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/contributors", - "created_at": "2021-04-22T19:11:09Z", - "default_branch": "main", - "delete_branch_on_merge": false, - "deployments_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/deployments", - "description": "Testing repository for GitHub Graduation", - "disabled": false, - "downloads_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/downloads", - "events_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/events", - "fork": false, - "forks": 1, - "forks_count": 1, - "forks_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/forks", - "full_name": "campus-experts/GitHubGraduation-2021", - "git_commits_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/git/commits{/sha}", - "git_refs_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/git/tags{/sha}", - "git_url": "git://github.com/campus-experts/GitHubGraduation-2021.git", - "has_downloads": true, - "has_issues": true, - "has_pages": false, - "has_projects": true, - "has_wiki": true, - "homepage": null, - "hooks_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/hooks", - "html_url": "https://github.com/campus-experts/GitHubGraduation-2021", - "id": 360655524, - "issue_comment_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/issues/comments{/number}", - "issue_events_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/issues/events{/number}", - "issues_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/issues{/number}", - "keys_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/keys{/key_id}", - "labels_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/labels{/name}", - "language": "JavaScript", - "languages_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/languages", - "license": null, - "merges_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/merges", - "milestones_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/milestones{/number}", - "mirror_url": null, - "name": "GitHubGraduation-2021", - "node_id": "MDEwOlJlcG9zaXRvcnkzNjA2NTU1MjQ=", - "notifications_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/notifications{?since,all,participating}", - "open_issues": 3, - "open_issues_count": 3, - "owner": { - "avatar_url": "https://avatars.githubusercontent.com/u/21289761?v=4", - "events_url": "https://api.github.com/users/campus-experts/events{/privacy}", - "followers_url": "https://api.github.com/users/campus-experts/followers", - "following_url": "https://api.github.com/users/campus-experts/following{/other_user}", - "gists_url": "https://api.github.com/users/campus-experts/gists{/gist_id}", - "gravatar_id": "", - "html_url": "https://github.com/campus-experts", - "id": 21289761, - "login": "campus-experts", - "node_id": "MDEyOk9yZ2FuaXphdGlvbjIxMjg5NzYx", - "organizations_url": "https://api.github.com/users/campus-experts/orgs", - "received_events_url": "https://api.github.com/users/campus-experts/received_events", - "repos_url": "https://api.github.com/users/campus-experts/repos", - "site_admin": false, - "starred_url": "https://api.github.com/users/campus-experts/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/campus-experts/subscriptions", - "type": "Organization", - "url": "https://api.github.com/users/campus-experts" - }, - "private": true, - "pulls_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/pulls{/number}", - "pushed_at": "2021-05-07T15:25:07Z", - "releases_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/releases{/id}", - "size": 1345, - "ssh_url": "git@github.com:campus-experts/GitHubGraduation-2021.git", - "stargazers_count": 0, - "stargazers_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/stargazers", - "statuses_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/statuses/{sha}", - "subscribers_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/subscribers", - "subscription_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/subscription", - "svn_url": "https://github.com/campus-experts/GitHubGraduation-2021", - "tags_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/tags", - "teams_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/teams", - "trees_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/git/trees{/sha}", - "updated_at": "2021-05-07T15:25:10Z", - "url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021", - "watchers": 0, - "watchers_count": 0 - }, - "sha": "fad65288fc1b7fd68df76c9c7e9ff822e1d7fa18", - "user": { - "avatar_url": "https://avatars.githubusercontent.com/u/21289761?v=4", - "events_url": "https://api.github.com/users/campus-experts/events{/privacy}", - "followers_url": "https://api.github.com/users/campus-experts/followers", - "following_url": "https://api.github.com/users/campus-experts/following{/other_user}", - "gists_url": "https://api.github.com/users/campus-experts/gists{/gist_id}", - "gravatar_id": "", - "html_url": "https://github.com/campus-experts", - "id": 21289761, - "login": "campus-experts", - "node_id": "MDEyOk9yZ2FuaXphdGlvbjIxMjg5NzYx", - "organizations_url": "https://api.github.com/users/campus-experts/orgs", - "received_events_url": "https://api.github.com/users/campus-experts/received_events", - "repos_url": "https://api.github.com/users/campus-experts/repos", - "site_admin": false, - "starred_url": "https://api.github.com/users/campus-experts/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/campus-experts/subscriptions", - "type": "Organization", - "url": "https://api.github.com/users/campus-experts" - } - }, - "body": "# Application to the Class of 2021🎓\r\n\r\nThis pull request template helps you complete an application to the **Class of 2021**. Use the checklist below to verify you have followed the instructions correctly. \r\n\r\n## Checklist ✅\r\n\r\n- [x] I have read the instructions on the README file before submitting my application. \r\n- [x] I made my submission by creating a folder on the `_data` folder and followed the naming convention mentioned in the instructions (``), added my profile picture and markdown file.\r\n- [x] I have used the Markdown file template to add my information to the Year Book.\r\n- [x] I understand that a reviewer will merge my pull request after examining it or ask for changes in case needed.\r\n- [x] I understand I should not tag or add a reviewer to this Pull Request.\r\n- [x] I have [added the event](http://www.google.com/calendar/event?action=TEMPLATE&dates=20210605T160000Z%2F20210605T173000Z&text=GitHub%20Graduation%20%F0%9F%8E%93&location=https%3A%2F%2Fwww.twitch.tv%2Fgithubeducation&details=) to my Calendar.\r\n\r\n", - "changed_files": 7, - "closed_at": null, - "comments": 1, - "comments_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/issues/3/comments", - "commits": 26, - "commits_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/pulls/3/commits", - "created_at": "2021-04-30T06:10:21Z", - "deletions": 49, - "diff_url": "https://github.com/campus-experts/GitHubGraduation-2021/pull/3.diff", - "draft": false, - "head": { - "label": "juanpflores:main", - "ref": "main", - "repo": { - "allow_merge_commit": true, - "allow_rebase_merge": true, - "allow_squash_merge": true, - "archive_url": "https://api.github.com/repos/juanpflores/GitHubGraduation-2021/{archive_format}{/ref}", - "archived": false, - "assignees_url": "https://api.github.com/repos/juanpflores/GitHubGraduation-2021/assignees{/user}", - "blobs_url": "https://api.github.com/repos/juanpflores/GitHubGraduation-2021/git/blobs{/sha}", - "branches_url": "https://api.github.com/repos/juanpflores/GitHubGraduation-2021/branches{/branch}", - "clone_url": "https://github.com/juanpflores/GitHubGraduation-2021.git", - "collaborators_url": "https://api.github.com/repos/juanpflores/GitHubGraduation-2021/collaborators{/collaborator}", - "comments_url": "https://api.github.com/repos/juanpflores/GitHubGraduation-2021/comments{/number}", - "commits_url": "https://api.github.com/repos/juanpflores/GitHubGraduation-2021/commits{/sha}", - "compare_url": "https://api.github.com/repos/juanpflores/GitHubGraduation-2021/compare/{base}...{head}", - "contents_url": "https://api.github.com/repos/juanpflores/GitHubGraduation-2021/contents/{+path}", - "contributors_url": "https://api.github.com/repos/juanpflores/GitHubGraduation-2021/contributors", - "created_at": "2021-04-30T06:01:03Z", - "default_branch": "main", - "delete_branch_on_merge": false, - "deployments_url": "https://api.github.com/repos/juanpflores/GitHubGraduation-2021/deployments", - "description": "Testing repository for GitHub Graduation", - "disabled": false, - "downloads_url": "https://api.github.com/repos/juanpflores/GitHubGraduation-2021/downloads", - "events_url": "https://api.github.com/repos/juanpflores/GitHubGraduation-2021/events", - "fork": true, - "forks": 0, - "forks_count": 0, - "forks_url": "https://api.github.com/repos/juanpflores/GitHubGraduation-2021/forks", - "full_name": "juanpflores/GitHubGraduation-2021", - "git_commits_url": "https://api.github.com/repos/juanpflores/GitHubGraduation-2021/git/commits{/sha}", - "git_refs_url": "https://api.github.com/repos/juanpflores/GitHubGraduation-2021/git/refs{/sha}", - "git_tags_url": "https://api.github.com/repos/juanpflores/GitHubGraduation-2021/git/tags{/sha}", - "git_url": "git://github.com/juanpflores/GitHubGraduation-2021.git", - "has_downloads": true, - "has_issues": false, - "has_pages": false, - "has_projects": true, - "has_wiki": true, - "homepage": null, - "hooks_url": "https://api.github.com/repos/juanpflores/GitHubGraduation-2021/hooks", - "html_url": "https://github.com/juanpflores/GitHubGraduation-2021", - "id": 363041975, - "issue_comment_url": "https://api.github.com/repos/juanpflores/GitHubGraduation-2021/issues/comments{/number}", - "issue_events_url": "https://api.github.com/repos/juanpflores/GitHubGraduation-2021/issues/events{/number}", - "issues_url": "https://api.github.com/repos/juanpflores/GitHubGraduation-2021/issues{/number}", - "keys_url": "https://api.github.com/repos/juanpflores/GitHubGraduation-2021/keys{/key_id}", - "labels_url": "https://api.github.com/repos/juanpflores/GitHubGraduation-2021/labels{/name}", - "language": "JavaScript", - "languages_url": "https://api.github.com/repos/juanpflores/GitHubGraduation-2021/languages", - "license": null, - "merges_url": "https://api.github.com/repos/juanpflores/GitHubGraduation-2021/merges", - "milestones_url": "https://api.github.com/repos/juanpflores/GitHubGraduation-2021/milestones{/number}", - "mirror_url": null, - "name": "GitHubGraduation-2021", - "node_id": "MDEwOlJlcG9zaXRvcnkzNjMwNDE5NzU=", - "notifications_url": "https://api.github.com/repos/juanpflores/GitHubGraduation-2021/notifications{?since,all,participating}", - "open_issues": 0, - "open_issues_count": 0, - "owner": { - "avatar_url": "https://avatars.githubusercontent.com/u/6200135?v=4", - "events_url": "https://api.github.com/users/juanpflores/events{/privacy}", - "followers_url": "https://api.github.com/users/juanpflores/followers", - "following_url": "https://api.github.com/users/juanpflores/following{/other_user}", - "gists_url": "https://api.github.com/users/juanpflores/gists{/gist_id}", - "gravatar_id": "", - "html_url": "https://github.com/juanpflores", - "id": 6200135, - "login": "juanpflores", - "node_id": "MDQ6VXNlcjYyMDAxMzU=", - "organizations_url": "https://api.github.com/users/juanpflores/orgs", - "received_events_url": "https://api.github.com/users/juanpflores/received_events", - "repos_url": "https://api.github.com/users/juanpflores/repos", - "site_admin": false, - "starred_url": "https://api.github.com/users/juanpflores/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/juanpflores/subscriptions", - "type": "User", - "url": "https://api.github.com/users/juanpflores" - }, - "private": true, - "pulls_url": "https://api.github.com/repos/juanpflores/GitHubGraduation-2021/pulls{/number}", - "pushed_at": "2021-05-03T19:43:35Z", - "releases_url": "https://api.github.com/repos/juanpflores/GitHubGraduation-2021/releases{/id}", - "size": 1289, - "ssh_url": "git@github.com:juanpflores/GitHubGraduation-2021.git", - "stargazers_count": 0, - "stargazers_url": "https://api.github.com/repos/juanpflores/GitHubGraduation-2021/stargazers", - "statuses_url": "https://api.github.com/repos/juanpflores/GitHubGraduation-2021/statuses/{sha}", - "subscribers_url": "https://api.github.com/repos/juanpflores/GitHubGraduation-2021/subscribers", - "subscription_url": "https://api.github.com/repos/juanpflores/GitHubGraduation-2021/subscription", - "svn_url": "https://github.com/juanpflores/GitHubGraduation-2021", - "tags_url": "https://api.github.com/repos/juanpflores/GitHubGraduation-2021/tags", - "teams_url": "https://api.github.com/repos/juanpflores/GitHubGraduation-2021/teams", - "trees_url": "https://api.github.com/repos/juanpflores/GitHubGraduation-2021/git/trees{/sha}", - "updated_at": "2021-05-03T19:43:39Z", - "url": "https://api.github.com/repos/juanpflores/GitHubGraduation-2021", - "watchers": 0, - "watchers_count": 0 - }, - "sha": "f1e7671fce4f1462a0a5053eac193f2de30a6de4", - "user": { - "avatar_url": "https://avatars.githubusercontent.com/u/6200135?v=4", - "events_url": "https://api.github.com/users/juanpflores/events{/privacy}", - "followers_url": "https://api.github.com/users/juanpflores/followers", - "following_url": "https://api.github.com/users/juanpflores/following{/other_user}", - "gists_url": "https://api.github.com/users/juanpflores/gists{/gist_id}", - "gravatar_id": "", - "html_url": "https://github.com/juanpflores", - "id": 6200135, - "login": "juanpflores", - "node_id": "MDQ6VXNlcjYyMDAxMzU=", - "organizations_url": "https://api.github.com/users/juanpflores/orgs", - "received_events_url": "https://api.github.com/users/juanpflores/received_events", - "repos_url": "https://api.github.com/users/juanpflores/repos", - "site_admin": false, - "starred_url": "https://api.github.com/users/juanpflores/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/juanpflores/subscriptions", - "type": "User", - "url": "https://api.github.com/users/juanpflores" - } - }, - "html_url": "https://github.com/campus-experts/GitHubGraduation-2021/pull/3", - "id": 627028922, - "issue_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/issues/3", - "labels": [], - "locked": false, - "maintainer_can_modify": true, - "merge_commit_sha": "31f1e0831ff4e3d8ca47c6f538338c9c66c8db73", - "mergeable": false, - "mergeable_state": "dirty", - "merged": false, - "merged_at": null, - "merged_by": null, - "milestone": null, - "node_id": "MDExOlB1bGxSZXF1ZXN0NjI3MDI4OTIy", - "number": 3, - "patch_url": "https://github.com/campus-experts/GitHubGraduation-2021/pull/3.patch", - "rebaseable": false, - "requested_reviewers": [ - { - "avatar_url": "https://avatars.githubusercontent.com/u/83462995?v=4", - "events_url": "https://api.github.com/users/GitHub-Education-bot/events{/privacy}", - "followers_url": "https://api.github.com/users/GitHub-Education-bot/followers", - "following_url": "https://api.github.com/users/GitHub-Education-bot/following{/other_user}", - "gists_url": "https://api.github.com/users/GitHub-Education-bot/gists{/gist_id}", - "gravatar_id": "", - "html_url": "https://github.com/GitHub-Education-bot", - "id": 83462995, - "login": "GitHub-Education-bot", - "node_id": "MDQ6VXNlcjgzNDYyOTk1", - "organizations_url": "https://api.github.com/users/GitHub-Education-bot/orgs", - "received_events_url": "https://api.github.com/users/GitHub-Education-bot/received_events", - "repos_url": "https://api.github.com/users/GitHub-Education-bot/repos", - "site_admin": false, - "starred_url": "https://api.github.com/users/GitHub-Education-bot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/GitHub-Education-bot/subscriptions", - "type": "User", - "url": "https://api.github.com/users/GitHub-Education-bot" - } - ], - "requested_teams": [], - "review_comment_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/pulls/comments{/number}", - "review_comments": 0, - "review_comments_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/pulls/3/comments", - "state": "open", - "statuses_url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/statuses/f1e7671fce4f1462a0a5053eac193f2de30a6de4", - "title": "Create juanpflores.md", - "updated_at": "2021-05-07T15:25:22Z", - "url": "https://api.github.com/repos/campus-experts/GitHubGraduation-2021/pulls/3", - "user": { - "avatar_url": "https://avatars.githubusercontent.com/u/6200135?v=4", - "events_url": "https://api.github.com/users/juanpflores/events{/privacy}", - "followers_url": "https://api.github.com/users/juanpflores/followers", - "following_url": "https://api.github.com/users/juanpflores/following{/other_user}", - "gists_url": "https://api.github.com/users/juanpflores/gists{/gist_id}", - "gravatar_id": "", - "html_url": "https://github.com/juanpflores", - "id": 6200135, - "login": "juanpflores", - "node_id": "MDQ6VXNlcjYyMDAxMzU=", - "organizations_url": "https://api.github.com/users/juanpflores/orgs", - "received_events_url": "https://api.github.com/users/juanpflores/received_events", - "repos_url": "https://api.github.com/users/juanpflores/repos", - "site_admin": false, - "starred_url": "https://api.github.com/users/juanpflores/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/juanpflores/subscriptions", - "type": "User", - "url": "https://api.github.com/users/juanpflores" - } - }, - "requestedReviwer": { - "avatar_url": "https://avatars.githubusercontent.com/u/83462995?v=4", - "events_url": "https://api.github.com/users/GitHub-Education-bot/events{/privacy}", - "followers_url": "https://api.github.com/users/GitHub-Education-bot/followers", - "following_url": "https://api.github.com/users/GitHub-Education-bot/following{/other_user}", - "gists_url": "https://api.github.com/users/GitHub-Education-bot/gists{/gist_id}", - "gravatar_id": "", - "html_url": "https://github.com/GitHub-Education-bot", - "id": 83462995, - "login": "GitHub-Education-bot", - "node_id": "MDQ6VXNlcjgzNDYyOTk1", - "organizations_url": "https://api.github.com/users/GitHub-Education-bot/orgs", - "received_events_url": "https://api.github.com/users/GitHub-Education-bot/received_events", - "repos_url": "https://api.github.com/users/GitHub-Education-bot/repos", - "site_admin": false, - "starred_url": "https://api.github.com/users/GitHub-Education-bot/starred{/owner}{/repo}", - "subscriptions_url": "https://api.github.com/users/GitHub-Education-bot/subscriptions", - "type": "User", - "url": "https://api.github.com/users/GitHub-Education-bot" - }, - "name": "review_requested" -} +{"action":"review_requested","number":8,"organization":{"avatar_url":"https://avatars.githubusercontent.com/u/6667880?v=4","description":"Bringing GitHub to the classroom","events_url":"https://api.github.com/orgs/education/events","hooks_url":"https://api.github.com/orgs/education/hooks","id":6667880,"issues_url":"https://api.github.com/orgs/education/issues","login":"education","members_url":"https://api.github.com/orgs/education/members{/member}","node_id":"MDEyOk9yZ2FuaXphdGlvbjY2Njc4ODA=","public_members_url":"https://api.github.com/orgs/education/public_members{/member}","repos_url":"https://api.github.com/orgs/education/repos","url":"https://api.github.com/orgs/education"},"pull_request":{"_links":{"comments":{"href":"https://api.github.com/repos/education/GitHubGraduation-2021/issues/8/comments"},"commits":{"href":"https://api.github.com/repos/education/GitHubGraduation-2021/pulls/8/commits"},"html":{"href":"https://github.com/education/GitHubGraduation-2021/pull/8"},"issue":{"href":"https://api.github.com/repos/education/GitHubGraduation-2021/issues/8"},"review_comment":{"href":"https://api.github.com/repos/education/GitHubGraduation-2021/pulls/comments{/number}"},"review_comments":{"href":"https://api.github.com/repos/education/GitHubGraduation-2021/pulls/8/comments"},"self":{"href":"https://api.github.com/repos/education/GitHubGraduation-2021/pulls/8"},"statuses":{"href":"https://api.github.com/repos/education/GitHubGraduation-2021/statuses/beefd36c45c6259948476fee4c7234a8b112a888"}},"active_lock_reason":null,"additions":6,"assignee":null,"assignees":[],"author_association":"COLLABORATOR","auto_merge":null,"base":{"label":"education:main","ref":"main","repo":{"allow_merge_commit":true,"allow_rebase_merge":false,"allow_squash_merge":false,"archive_url":"https://api.github.com/repos/education/GitHubGraduation-2021/{archive_format}{/ref}","archived":false,"assignees_url":"https://api.github.com/repos/education/GitHubGraduation-2021/assignees{/user}","blobs_url":"https://api.github.com/repos/education/GitHubGraduation-2021/git/blobs{/sha}","branches_url":"https://api.github.com/repos/education/GitHubGraduation-2021/branches{/branch}","clone_url":"https://github.com/education/GitHubGraduation-2021.git","collaborators_url":"https://api.github.com/repos/education/GitHubGraduation-2021/collaborators{/collaborator}","comments_url":"https://api.github.com/repos/education/GitHubGraduation-2021/comments{/number}","commits_url":"https://api.github.com/repos/education/GitHubGraduation-2021/commits{/sha}","compare_url":"https://api.github.com/repos/education/GitHubGraduation-2021/compare/{base}...{head}","contents_url":"https://api.github.com/repos/education/GitHubGraduation-2021/contents/{+path}","contributors_url":"https://api.github.com/repos/education/GitHubGraduation-2021/contributors","created_at":"2021-04-22T19:11:09Z","default_branch":"main","delete_branch_on_merge":false,"deployments_url":"https://api.github.com/repos/education/GitHubGraduation-2021/deployments","description":"Join the GitHub Graduation Yearbook and \"walk the stage\" on June 5.","disabled":false,"downloads_url":"https://api.github.com/repos/education/GitHubGraduation-2021/downloads","events_url":"https://api.github.com/repos/education/GitHubGraduation-2021/events","fork":false,"forks":0,"forks_count":0,"forks_url":"https://api.github.com/repos/education/GitHubGraduation-2021/forks","full_name":"education/GitHubGraduation-2021","git_commits_url":"https://api.github.com/repos/education/GitHubGraduation-2021/git/commits{/sha}","git_refs_url":"https://api.github.com/repos/education/GitHubGraduation-2021/git/refs{/sha}","git_tags_url":"https://api.github.com/repos/education/GitHubGraduation-2021/git/tags{/sha}","git_url":"git://github.com/education/GitHubGraduation-2021.git","has_downloads":true,"has_issues":true,"has_pages":false,"has_projects":false,"has_wiki":true,"homepage":"","hooks_url":"https://api.github.com/repos/education/GitHubGraduation-2021/hooks","html_url":"https://github.com/education/GitHubGraduation-2021","id":360655524,"issue_comment_url":"https://api.github.com/repos/education/GitHubGraduation-2021/issues/comments{/number}","issue_events_url":"https://api.github.com/repos/education/GitHubGraduation-2021/issues/events{/number}","issues_url":"https://api.github.com/repos/education/GitHubGraduation-2021/issues{/number}","keys_url":"https://api.github.com/repos/education/GitHubGraduation-2021/keys{/key_id}","labels_url":"https://api.github.com/repos/education/GitHubGraduation-2021/labels{/name}","language":"JavaScript","languages_url":"https://api.github.com/repos/education/GitHubGraduation-2021/languages","license":null,"merges_url":"https://api.github.com/repos/education/GitHubGraduation-2021/merges","milestones_url":"https://api.github.com/repos/education/GitHubGraduation-2021/milestones{/number}","mirror_url":null,"name":"GitHubGraduation-2021","node_id":"MDEwOlJlcG9zaXRvcnkzNjA2NTU1MjQ=","notifications_url":"https://api.github.com/repos/education/GitHubGraduation-2021/notifications{?since,all,participating}","open_issues":5,"open_issues_count":5,"owner":{"avatar_url":"https://avatars.githubusercontent.com/u/6667880?v=4","events_url":"https://api.github.com/users/education/events{/privacy}","followers_url":"https://api.github.com/users/education/followers","following_url":"https://api.github.com/users/education/following{/other_user}","gists_url":"https://api.github.com/users/education/gists{/gist_id}","gravatar_id":"","html_url":"https://github.com/education","id":6667880,"login":"education","node_id":"MDEyOk9yZ2FuaXphdGlvbjY2Njc4ODA=","organizations_url":"https://api.github.com/users/education/orgs","received_events_url":"https://api.github.com/users/education/received_events","repos_url":"https://api.github.com/users/education/repos","site_admin":false,"starred_url":"https://api.github.com/users/education/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/education/subscriptions","type":"Organization","url":"https://api.github.com/users/education"},"private":true,"pulls_url":"https://api.github.com/repos/education/GitHubGraduation-2021/pulls{/number}","pushed_at":"2021-05-10T23:46:52Z","releases_url":"https://api.github.com/repos/education/GitHubGraduation-2021/releases{/id}","size":1443,"ssh_url":"git@github.com:education/GitHubGraduation-2021.git","stargazers_count":0,"stargazers_url":"https://api.github.com/repos/education/GitHubGraduation-2021/stargazers","statuses_url":"https://api.github.com/repos/education/GitHubGraduation-2021/statuses/{sha}","subscribers_url":"https://api.github.com/repos/education/GitHubGraduation-2021/subscribers","subscription_url":"https://api.github.com/repos/education/GitHubGraduation-2021/subscription","svn_url":"https://github.com/education/GitHubGraduation-2021","tags_url":"https://api.github.com/repos/education/GitHubGraduation-2021/tags","teams_url":"https://api.github.com/repos/education/GitHubGraduation-2021/teams","trees_url":"https://api.github.com/repos/education/GitHubGraduation-2021/git/trees{/sha}","updated_at":"2021-05-10T23:46:54Z","url":"https://api.github.com/repos/education/GitHubGraduation-2021","watchers":0,"watchers_count":0},"sha":"9c139b7dd2eb421a3274b8565f5583749234df56","user":{"avatar_url":"https://avatars.githubusercontent.com/u/6667880?v=4","events_url":"https://api.github.com/users/education/events{/privacy}","followers_url":"https://api.github.com/users/education/followers","following_url":"https://api.github.com/users/education/following{/other_user}","gists_url":"https://api.github.com/users/education/gists{/gist_id}","gravatar_id":"","html_url":"https://github.com/education","id":6667880,"login":"education","node_id":"MDEyOk9yZ2FuaXphdGlvbjY2Njc4ODA=","organizations_url":"https://api.github.com/users/education/orgs","received_events_url":"https://api.github.com/users/education/received_events","repos_url":"https://api.github.com/users/education/repos","site_admin":false,"starred_url":"https://api.github.com/users/education/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/education/subscriptions","type":"Organization","url":"https://api.github.com/users/education"}},"body":"# Application to the Class of 2021🎓\r\n\r\nThis pull request template helps you complete an application to the **Class of 2021**. Use the checklist below to verify you have followed the instructions correctly. \r\n\r\n## Checklist ✅\r\n\r\n- [X] I have read the instructions on the README file before submitting my application. \r\n- [X] I made my submission by creating a folder on the `_data` folder and followed the naming convention mentioned in the instructions (``) and markdown file.\r\n- [X] I have submitted a [swag shipping form](https://airtable.com/shrM5IigBuRFaj33H).\r\n- [X] I have used the Markdown file template to add my information to the Year Book.\r\n- [X] I understand that a reviewer will merge my pull request after examining it or ask for changes in case needed.\r\n- [X] I understand I should not tag or add a reviewer to this Pull Request.\r\n- [X] I have [added the event](http://www.google.com/calendar/event?action=TEMPLATE&dates=20210605T160000Z%2F20210605T173000Z&text=GitHub%20Graduation%20%F0%9F%8E%93&location=https%3A%2F%2Fwww.twitch.tv%2Fgithubeducation&details=) to my Calendar.\r\n\r\n","changed_files":1,"closed_at":null,"comments":0,"comments_url":"https://api.github.com/repos/education/GitHubGraduation-2021/issues/8/comments","commits":1,"commits_url":"https://api.github.com/repos/education/GitHubGraduation-2021/pulls/8/commits","created_at":"2021-05-10T21:04:55Z","deletions":0,"diff_url":"https://github.com/education/GitHubGraduation-2021/pull/8.diff","draft":false,"head":{"label":"education:elise-graduation","ref":"elise-graduation","repo":{"allow_merge_commit":true,"allow_rebase_merge":false,"allow_squash_merge":false,"archive_url":"https://api.github.com/repos/education/GitHubGraduation-2021/{archive_format}{/ref}","archived":false,"assignees_url":"https://api.github.com/repos/education/GitHubGraduation-2021/assignees{/user}","blobs_url":"https://api.github.com/repos/education/GitHubGraduation-2021/git/blobs{/sha}","branches_url":"https://api.github.com/repos/education/GitHubGraduation-2021/branches{/branch}","clone_url":"https://github.com/education/GitHubGraduation-2021.git","collaborators_url":"https://api.github.com/repos/education/GitHubGraduation-2021/collaborators{/collaborator}","comments_url":"https://api.github.com/repos/education/GitHubGraduation-2021/comments{/number}","commits_url":"https://api.github.com/repos/education/GitHubGraduation-2021/commits{/sha}","compare_url":"https://api.github.com/repos/education/GitHubGraduation-2021/compare/{base}...{head}","contents_url":"https://api.github.com/repos/education/GitHubGraduation-2021/contents/{+path}","contributors_url":"https://api.github.com/repos/education/GitHubGraduation-2021/contributors","created_at":"2021-04-22T19:11:09Z","default_branch":"main","delete_branch_on_merge":false,"deployments_url":"https://api.github.com/repos/education/GitHubGraduation-2021/deployments","description":"Join the GitHub Graduation Yearbook and \"walk the stage\" on June 5.","disabled":false,"downloads_url":"https://api.github.com/repos/education/GitHubGraduation-2021/downloads","events_url":"https://api.github.com/repos/education/GitHubGraduation-2021/events","fork":false,"forks":0,"forks_count":0,"forks_url":"https://api.github.com/repos/education/GitHubGraduation-2021/forks","full_name":"education/GitHubGraduation-2021","git_commits_url":"https://api.github.com/repos/education/GitHubGraduation-2021/git/commits{/sha}","git_refs_url":"https://api.github.com/repos/education/GitHubGraduation-2021/git/refs{/sha}","git_tags_url":"https://api.github.com/repos/education/GitHubGraduation-2021/git/tags{/sha}","git_url":"git://github.com/education/GitHubGraduation-2021.git","has_downloads":true,"has_issues":true,"has_pages":false,"has_projects":false,"has_wiki":true,"homepage":"","hooks_url":"https://api.github.com/repos/education/GitHubGraduation-2021/hooks","html_url":"https://github.com/education/GitHubGraduation-2021","id":360655524,"issue_comment_url":"https://api.github.com/repos/education/GitHubGraduation-2021/issues/comments{/number}","issue_events_url":"https://api.github.com/repos/education/GitHubGraduation-2021/issues/events{/number}","issues_url":"https://api.github.com/repos/education/GitHubGraduation-2021/issues{/number}","keys_url":"https://api.github.com/repos/education/GitHubGraduation-2021/keys{/key_id}","labels_url":"https://api.github.com/repos/education/GitHubGraduation-2021/labels{/name}","language":"JavaScript","languages_url":"https://api.github.com/repos/education/GitHubGraduation-2021/languages","license":null,"merges_url":"https://api.github.com/repos/education/GitHubGraduation-2021/merges","milestones_url":"https://api.github.com/repos/education/GitHubGraduation-2021/milestones{/number}","mirror_url":null,"name":"GitHubGraduation-2021","node_id":"MDEwOlJlcG9zaXRvcnkzNjA2NTU1MjQ=","notifications_url":"https://api.github.com/repos/education/GitHubGraduation-2021/notifications{?since,all,participating}","open_issues":5,"open_issues_count":5,"owner":{"avatar_url":"https://avatars.githubusercontent.com/u/6667880?v=4","events_url":"https://api.github.com/users/education/events{/privacy}","followers_url":"https://api.github.com/users/education/followers","following_url":"https://api.github.com/users/education/following{/other_user}","gists_url":"https://api.github.com/users/education/gists{/gist_id}","gravatar_id":"","html_url":"https://github.com/education","id":6667880,"login":"education","node_id":"MDEyOk9yZ2FuaXphdGlvbjY2Njc4ODA=","organizations_url":"https://api.github.com/users/education/orgs","received_events_url":"https://api.github.com/users/education/received_events","repos_url":"https://api.github.com/users/education/repos","site_admin":false,"starred_url":"https://api.github.com/users/education/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/education/subscriptions","type":"Organization","url":"https://api.github.com/users/education"},"private":true,"pulls_url":"https://api.github.com/repos/education/GitHubGraduation-2021/pulls{/number}","pushed_at":"2021-05-10T23:46:52Z","releases_url":"https://api.github.com/repos/education/GitHubGraduation-2021/releases{/id}","size":1443,"ssh_url":"git@github.com:education/GitHubGraduation-2021.git","stargazers_count":0,"stargazers_url":"https://api.github.com/repos/education/GitHubGraduation-2021/stargazers","statuses_url":"https://api.github.com/repos/education/GitHubGraduation-2021/statuses/{sha}","subscribers_url":"https://api.github.com/repos/education/GitHubGraduation-2021/subscribers","subscription_url":"https://api.github.com/repos/education/GitHubGraduation-2021/subscription","svn_url":"https://github.com/education/GitHubGraduation-2021","tags_url":"https://api.github.com/repos/education/GitHubGraduation-2021/tags","teams_url":"https://api.github.com/repos/education/GitHubGraduation-2021/teams","trees_url":"https://api.github.com/repos/education/GitHubGraduation-2021/git/trees{/sha}","updated_at":"2021-05-10T23:46:54Z","url":"https://api.github.com/repos/education/GitHubGraduation-2021","watchers":0,"watchers_count":0},"sha":"beefd36c45c6259948476fee4c7234a8b112a888","user":{"avatar_url":"https://avatars.githubusercontent.com/u/6667880?v=4","events_url":"https://api.github.com/users/education/events{/privacy}","followers_url":"https://api.github.com/users/education/followers","following_url":"https://api.github.com/users/education/following{/other_user}","gists_url":"https://api.github.com/users/education/gists{/gist_id}","gravatar_id":"","html_url":"https://github.com/education","id":6667880,"login":"education","node_id":"MDEyOk9yZ2FuaXphdGlvbjY2Njc4ODA=","organizations_url":"https://api.github.com/users/education/orgs","received_events_url":"https://api.github.com/users/education/received_events","repos_url":"https://api.github.com/users/education/repos","site_admin":false,"starred_url":"https://api.github.com/users/education/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/education/subscriptions","type":"Organization","url":"https://api.github.com/users/education"}},"html_url":"https://github.com/education/GitHubGraduation-2021/pull/8","id":638447500,"issue_url":"https://api.github.com/repos/education/GitHubGraduation-2021/issues/8","labels":[],"locked":false,"maintainer_can_modify":false,"merge_commit_sha":"b50000b220a69f6334721f0791774aa44e893d38","mergeable":true,"mergeable_state":"clean","merged":false,"merged_at":null,"merged_by":null,"milestone":null,"node_id":"MDExOlB1bGxSZXF1ZXN0NjM4NDQ3NTAw","number":8,"patch_url":"https://github.com/education/GitHubGraduation-2021/pull/8.patch","rebaseable":true,"requested_reviewers":[{"avatar_url":"https://avatars.githubusercontent.com/u/83462995?v=4","events_url":"https://api.github.com/users/GitHub-Education-bot/events{/privacy}","followers_url":"https://api.github.com/users/GitHub-Education-bot/followers","following_url":"https://api.github.com/users/GitHub-Education-bot/following{/other_user}","gists_url":"https://api.github.com/users/GitHub-Education-bot/gists{/gist_id}","gravatar_id":"","html_url":"https://github.com/GitHub-Education-bot","id":83462995,"login":"GitHub-Education-bot","node_id":"MDQ6VXNlcjgzNDYyOTk1","organizations_url":"https://api.github.com/users/GitHub-Education-bot/orgs","received_events_url":"https://api.github.com/users/GitHub-Education-bot/received_events","repos_url":"https://api.github.com/users/GitHub-Education-bot/repos","site_admin":false,"starred_url":"https://api.github.com/users/GitHub-Education-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GitHub-Education-bot/subscriptions","type":"User","url":"https://api.github.com/users/GitHub-Education-bot"}],"requested_teams":[],"review_comment_url":"https://api.github.com/repos/education/GitHubGraduation-2021/pulls/comments{/number}","review_comments":0,"review_comments_url":"https://api.github.com/repos/education/GitHubGraduation-2021/pulls/8/comments","state":"open","statuses_url":"https://api.github.com/repos/education/GitHubGraduation-2021/statuses/beefd36c45c6259948476fee4c7234a8b112a888","title":"add Elise to GitHub Graduation","updated_at":"2021-05-10T23:47:05Z","url":"https://api.github.com/repos/education/GitHubGraduation-2021/pulls/8","user":{"avatar_url":"https://avatars.githubusercontent.com/u/6633808?v=4","events_url":"https://api.github.com/users/elisemoe/events{/privacy}","followers_url":"https://api.github.com/users/elisemoe/followers","following_url":"https://api.github.com/users/elisemoe/following{/other_user}","gists_url":"https://api.github.com/users/elisemoe/gists{/gist_id}","gravatar_id":"","html_url":"https://github.com/elisemoe","id":6633808,"login":"elisemoe","node_id":"MDQ6VXNlcjY2MzM4MDg=","organizations_url":"https://api.github.com/users/elisemoe/orgs","received_events_url":"https://api.github.com/users/elisemoe/received_events","repos_url":"https://api.github.com/users/elisemoe/repos","site_admin":true,"starred_url":"https://api.github.com/users/elisemoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elisemoe/subscriptions","type":"User","url":"https://api.github.com/users/elisemoe"}},"repository":{"archive_url":"https://api.github.com/repos/education/GitHubGraduation-2021/{archive_format}{/ref}","archived":false,"assignees_url":"https://api.github.com/repos/education/GitHubGraduation-2021/assignees{/user}","blobs_url":"https://api.github.com/repos/education/GitHubGraduation-2021/git/blobs{/sha}","branches_url":"https://api.github.com/repos/education/GitHubGraduation-2021/branches{/branch}","clone_url":"https://github.com/education/GitHubGraduation-2021.git","collaborators_url":"https://api.github.com/repos/education/GitHubGraduation-2021/collaborators{/collaborator}","comments_url":"https://api.github.com/repos/education/GitHubGraduation-2021/comments{/number}","commits_url":"https://api.github.com/repos/education/GitHubGraduation-2021/commits{/sha}","compare_url":"https://api.github.com/repos/education/GitHubGraduation-2021/compare/{base}...{head}","contents_url":"https://api.github.com/repos/education/GitHubGraduation-2021/contents/{+path}","contributors_url":"https://api.github.com/repos/education/GitHubGraduation-2021/contributors","created_at":"2021-04-22T19:11:09Z","default_branch":"main","deployments_url":"https://api.github.com/repos/education/GitHubGraduation-2021/deployments","description":"Join the GitHub Graduation Yearbook and \"walk the stage\" on June 5.","disabled":false,"downloads_url":"https://api.github.com/repos/education/GitHubGraduation-2021/downloads","events_url":"https://api.github.com/repos/education/GitHubGraduation-2021/events","fork":false,"forks":0,"forks_count":0,"forks_url":"https://api.github.com/repos/education/GitHubGraduation-2021/forks","full_name":"education/GitHubGraduation-2021","git_commits_url":"https://api.github.com/repos/education/GitHubGraduation-2021/git/commits{/sha}","git_refs_url":"https://api.github.com/repos/education/GitHubGraduation-2021/git/refs{/sha}","git_tags_url":"https://api.github.com/repos/education/GitHubGraduation-2021/git/tags{/sha}","git_url":"git://github.com/education/GitHubGraduation-2021.git","has_downloads":true,"has_issues":true,"has_pages":false,"has_projects":false,"has_wiki":true,"homepage":"","hooks_url":"https://api.github.com/repos/education/GitHubGraduation-2021/hooks","html_url":"https://github.com/education/GitHubGraduation-2021","id":360655524,"issue_comment_url":"https://api.github.com/repos/education/GitHubGraduation-2021/issues/comments{/number}","issue_events_url":"https://api.github.com/repos/education/GitHubGraduation-2021/issues/events{/number}","issues_url":"https://api.github.com/repos/education/GitHubGraduation-2021/issues{/number}","keys_url":"https://api.github.com/repos/education/GitHubGraduation-2021/keys{/key_id}","labels_url":"https://api.github.com/repos/education/GitHubGraduation-2021/labels{/name}","language":"JavaScript","languages_url":"https://api.github.com/repos/education/GitHubGraduation-2021/languages","license":null,"merges_url":"https://api.github.com/repos/education/GitHubGraduation-2021/merges","milestones_url":"https://api.github.com/repos/education/GitHubGraduation-2021/milestones{/number}","mirror_url":null,"name":"GitHubGraduation-2021","node_id":"MDEwOlJlcG9zaXRvcnkzNjA2NTU1MjQ=","notifications_url":"https://api.github.com/repos/education/GitHubGraduation-2021/notifications{?since,all,participating}","open_issues":5,"open_issues_count":5,"owner":{"avatar_url":"https://avatars.githubusercontent.com/u/6667880?v=4","events_url":"https://api.github.com/users/education/events{/privacy}","followers_url":"https://api.github.com/users/education/followers","following_url":"https://api.github.com/users/education/following{/other_user}","gists_url":"https://api.github.com/users/education/gists{/gist_id}","gravatar_id":"","html_url":"https://github.com/education","id":6667880,"login":"education","node_id":"MDEyOk9yZ2FuaXphdGlvbjY2Njc4ODA=","organizations_url":"https://api.github.com/users/education/orgs","received_events_url":"https://api.github.com/users/education/received_events","repos_url":"https://api.github.com/users/education/repos","site_admin":false,"starred_url":"https://api.github.com/users/education/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/education/subscriptions","type":"Organization","url":"https://api.github.com/users/education"},"private":true,"pulls_url":"https://api.github.com/repos/education/GitHubGraduation-2021/pulls{/number}","pushed_at":"2021-05-10T23:46:52Z","releases_url":"https://api.github.com/repos/education/GitHubGraduation-2021/releases{/id}","size":1443,"ssh_url":"git@github.com:education/GitHubGraduation-2021.git","stargazers_count":0,"stargazers_url":"https://api.github.com/repos/education/GitHubGraduation-2021/stargazers","statuses_url":"https://api.github.com/repos/education/GitHubGraduation-2021/statuses/{sha}","subscribers_url":"https://api.github.com/repos/education/GitHubGraduation-2021/subscribers","subscription_url":"https://api.github.com/repos/education/GitHubGraduation-2021/subscription","svn_url":"https://github.com/education/GitHubGraduation-2021","tags_url":"https://api.github.com/repos/education/GitHubGraduation-2021/tags","teams_url":"https://api.github.com/repos/education/GitHubGraduation-2021/teams","trees_url":"https://api.github.com/repos/education/GitHubGraduation-2021/git/trees{/sha}","updated_at":"2021-05-10T23:46:54Z","url":"https://api.github.com/repos/education/GitHubGraduation-2021","watchers":0,"watchers_count":0},"requested_reviewer":{"avatar_url":"https://avatars.githubusercontent.com/u/83462995?v=4","events_url":"https://api.github.com/users/GitHub-Education-bot/events{/privacy}","followers_url":"https://api.github.com/users/GitHub-Education-bot/followers","following_url":"https://api.github.com/users/GitHub-Education-bot/following{/other_user}","gists_url":"https://api.github.com/users/GitHub-Education-bot/gists{/gist_id}","gravatar_id":"","html_url":"https://github.com/GitHub-Education-bot","id":83462995,"login":"GitHub-Education-bot","node_id":"MDQ6VXNlcjgzNDYyOTk1","organizations_url":"https://api.github.com/users/GitHub-Education-bot/orgs","received_events_url":"https://api.github.com/users/GitHub-Education-bot/received_events","repos_url":"https://api.github.com/users/GitHub-Education-bot/repos","site_admin":false,"starred_url":"https://api.github.com/users/GitHub-Education-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GitHub-Education-bot/subscriptions","type":"User","url":"https://api.github.com/users/GitHub-Education-bot"},"sender":{"avatar_url":"https://avatars.githubusercontent.com/u/599521?v=4","events_url":"https://api.github.com/users/renz45/events{/privacy}","followers_url":"https://api.github.com/users/renz45/followers","following_url":"https://api.github.com/users/renz45/following{/other_user}","gists_url":"https://api.github.com/users/renz45/gists{/gist_id}","gravatar_id":"","html_url":"https://github.com/renz45","id":599521,"login":"renz45","node_id":"MDQ6VXNlcjU5OTUyMQ==","organizations_url":"https://api.github.com/users/renz45/orgs","received_events_url":"https://api.github.com/users/renz45/received_events","repos_url":"https://api.github.com/users/renz45/repos","site_admin":true,"starred_url":"https://api.github.com/users/renz45/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/renz45/subscriptions","type":"User","url":"https://api.github.com/users/renz45"}} -- knotmirror 0.0.1 From ef1040bab7507c354a121fab3a3bb9fb01178585 Mon Sep 17 00:00:00 2001 From: Adam Rensel Date: Mon, 10 May 2021 19:53:57 -0400 Subject: [PATCH 14/68] errors are hard --- .github/workflows/src/app/action-event.js | 2 +- .github/workflows/src/index.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/src/app/action-event.js b/.github/workflows/src/app/action-event.js index ef247af4..36e4e7f2 100644 --- a/.github/workflows/src/app/action-event.js +++ b/.github/workflows/src/app/action-event.js @@ -16,7 +16,7 @@ class ActionsEvent { return } - // I guess some event files don't have EventData + // These could change.... I was noticing different data structures after moving repos this.event = this.data this.pull = this.data.pull_request this.requestedReviewer = this.data.requested_reviewer diff --git a/.github/workflows/src/index.js b/.github/workflows/src/index.js index f0b7631e..c7cf1ed7 100644 --- a/.github/workflows/src/index.js +++ b/.github/workflows/src/index.js @@ -181,5 +181,6 @@ ${ feedBackMessage } } })() } catch(err) { + console.error(err) throw err } -- knotmirror 0.0.1 From 5bcfa83828e8d53f394e03de0faadcd5c31e18ab Mon Sep 17 00:00:00 2001 From: Adam Rensel Date: Mon, 10 May 2021 21:03:15 -0400 Subject: [PATCH 15/68] errors --- .github/workflows/src/app/file-validator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/src/app/file-validator.js b/.github/workflows/src/app/file-validator.js index 31538819..de0a803d 100644 --- a/.github/workflows/src/app/file-validator.js +++ b/.github/workflows/src/app/file-validator.js @@ -48,7 +48,7 @@ class FileVaidator { errors.push(`*\`${expectedPath}/${pullAuthor}.md\` does not contain any yaml metadata*`) } - return { isValid: !errors.length, errors } + return { isValid: !errors.length, errors: errors } } isValidPaths(filePaths=[]) { -- knotmirror 0.0.1 From b8a841e118c7a8b2e6988180f5cd4200608866fb Mon Sep 17 00:00:00 2001 From: Adam Rensel Date: Mon, 10 May 2021 21:05:21 -0400 Subject: [PATCH 16/68] Exit when there are errors --- .github/workflows/src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/src/index.js b/.github/workflows/src/index.js index c7cf1ed7..d0d09735 100644 --- a/.github/workflows/src/index.js +++ b/.github/workflows/src/index.js @@ -182,5 +182,5 @@ ${ feedBackMessage } })() } catch(err) { console.error(err) - throw err + process.exit(); } -- knotmirror 0.0.1 From 78b1ec6ed99f5de6bf3e02fb89015e97e3cefb20 Mon Sep 17 00:00:00 2001 From: Adam Rensel Date: Mon, 10 May 2021 21:19:30 -0400 Subject: [PATCH 17/68] Exit one on failuers --- .github/workflows/src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/src/index.js b/.github/workflows/src/index.js index d0d09735..27d942f5 100644 --- a/.github/workflows/src/index.js +++ b/.github/workflows/src/index.js @@ -182,5 +182,5 @@ ${ feedBackMessage } })() } catch(err) { console.error(err) - process.exit(); + process.exit(1); } -- knotmirror 0.0.1 From 210c75f8439dc2ce2f8d2f393e2f27fe7141610b Mon Sep 17 00:00:00 2001 From: Adam Rensel Date: Mon, 10 May 2021 21:36:23 -0400 Subject: [PATCH 18/68] Merge and close PR functionality --- .github/workflows/src/app/octokit.js | 16 ++++++++++++++++ .github/workflows/src/index.js | 14 ++++++++++---- 2 files changed, 26 insertions(+), 4 deletions(-) diff --git a/.github/workflows/src/app/octokit.js b/.github/workflows/src/app/octokit.js index ee520eaa..76337bb5 100644 --- a/.github/workflows/src/app/octokit.js +++ b/.github/workflows/src/app/octokit.js @@ -103,6 +103,22 @@ class Octo { return data } + + async mergePR() { + return await this.octokit.rest.pulls.merge({ + owner: actionEvent.pullRepoOwner, + repo: actionEvent.pullRepo.name, + pull_number: actionEvent.pullNumber + }); + } + + async closePR() { + return await this.octokit.rest.pulls.update({ + owner: actionEvent.pullRepoOwner, + repo: actionEvent.pullRepo.name, + pull_number: actionEvent.pullNumber + }); + } } module.exports = new Octo() diff --git a/.github/workflows/src/index.js b/.github/workflows/src/index.js index 27d942f5..cf1e5f41 100644 --- a/.github/workflows/src/index.js +++ b/.github/workflows/src/index.js @@ -122,7 +122,7 @@ try { if(user2020) { console.log("user already Participated in 2020") feedback.push("**I'm really sorry! It looks like you've already graduated in a previous year.**") - // TODO close PR + octokit.closePR() } else { if(!hasSdp) { console.log("User has not applied for SDP") @@ -155,11 +155,17 @@ try { feedBackMessage = ` ### I have a few items I need you to take care of before I can merge this PR:\n ${feedback.join('\n')} + +Feel free to re-request a review from me and I'll come back and take a look! ` } else { // All checks pass - feedBackMessage = "It looks like you're all set! Thanks for the graduation submission." - // TODO merge PR + feedBackMessage = "It looks like you're all set! Thanks for the graduation submission. I'll go ahead and merge this." + try { + await octokit.mergePR() + } catch(err) { + feedBackMessage += "\n\n Uh Oh! I tried to merge this PR and something went wrong!" + } } console.log(feedBackMessage) @@ -170,7 +176,7 @@ ${feedback.join('\n')} **Welcome to graduation!** ${ feedBackMessage } - `, feedback.length ? "REQUEST_CHANGES" : "APPROVE") +`, feedback.length ? "REQUEST_CHANGES" : "APPROVE") } catch(err) { console.log(err) } -- knotmirror 0.0.1 From 792b904d4c140ae1fea997bc87eef9fc6f512d46 Mon Sep 17 00:00:00 2001 From: Adam Rensel Date: Mon, 10 May 2021 23:02:17 -0400 Subject: [PATCH 19/68] Add airtable caching --- .github/workflows/main.yml | 25 ++++++++- .github/workflows/src/app/airtable.js | 71 ++++++++++++++++++++++++- .github/workflows/src/app/fetch-data.js | 16 ++++++ 3 files changed, 110 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/src/app/fetch-data.js diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 86845fd6..f45428ca 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,14 +18,37 @@ jobs: run: shell: bash working-directory: ./.github/workflows/src - name: Initiate robot + name: Getting grades + steps: + - name: Get Minute + id: get-minute + run: | + echo "::set-output name=minute::$(/bin/date -u "+%M")" + shell: bash # For Windows, Linux and macOS default to bash alrea + - name: Cache data + id: cache_data + uses: actions/cache@v2 + with: + path: .github/workflows/src/data + key: ${{ runner.OS }}-${{ steps.get-date.outputs.minute }} # cache for 1 minute + - name: Cache Airtable + if: steps.cache_data.outputs.cache-hit != 'true' + run: node fetch-data.js + name: Checking Qualifications steps: - uses: actions/checkout@v2 - name: Setup node uses: actions/setup-node@v2 with: node-version: 14 + - name: Cache modules + id: cache_modules + uses: actions/cache@v2 + with: + path: node_modules + key: ${{ runner.os }}-${{ hashFiles('package.json') }} - name: Setup npm + if: steps.cache_modules.outputs.cache-hit != 'true' run: npm install -g npm - name: Install dependencies run: npm install diff --git a/.github/workflows/src/app/airtable.js b/.github/workflows/src/app/airtable.js index de058dba..4ea588e8 100644 --- a/.github/workflows/src/app/airtable.js +++ b/.github/workflows/src/app/airtable.js @@ -1,4 +1,5 @@ const Airtable = require('airtable') +const fs = require('fs') Airtable.configure({ endpointUrl: 'https://api.airtable.com', @@ -6,22 +7,90 @@ Airtable.configure({ }); const GITHUB_GRADUATION = "bipux0j8oGEJuReSb" -const GRADUATES_2020 = "Graduates Data" +const GRADUATES_2020 = "Graduation 2020" const GRADUATES_2021 = "Graduation 2021" +let cachedJson +let cachedData = {} + +try { + cachedJson = fs.readFileSync('./app/data/airtable.json"', 'utf8') + cachedData = JSON.parse(json) +} catch(err) { + // noop +} + + class ATable { constructor() { } userParticipated2020(githubLogin) { + const cachedData = fetchFromCache(githubLogin, GRADUATES_2020) + if(cachedData) { + return new Promise(cachedData) + } + return this.fetchGraduate(githubLogin, GRADUATES_2020) } fetch2021Graduate(githubLogin) { + const cachedData = fetchFromCache(githubLogin, GRADUATES_2021) + if(cachedData) { + return new Promise(cachedData) + } + return this.fetchGraduate(githubLogin, GRADUATES_2021) } + async fetchAll(table) { + const airtable = Airtable.base(GITHUB_GRADUATION); + const users = [] + + return airtable(GRADUATES_2020).select().eachPage(function page(records, fetchNextPage) { + // This function (`page`) will get called for each page of records. + + records.forEach(function(record) { + users.push(record.fields) + }); + + // To fetch the next page of records, call `fetchNextPage`. + // If there are more records, `page` will get called again. + // If there are no more records, `done` will get called. + fetchNextPage(); + + }, function done(err) { + if (err) { console.error(err); return; } + }); + } + + fetchAll2021() { + return await this.fetchAll(GRADUATES_2021) + } + + fetchAll2020() { + return await this.fetchAll(GRADUATES_2020) + } + + fetchFromCache(githubLogin, table) { + let data, userData + + if(table === GRADUATES_2020) { + data = cachedData["grad2020"] + } else if(table === GRADUATES_2021) { + data = cachedData["grad2021"] + } + + if(data) { + userData = data.find((user)=>{ + return user["GitHub Username"] === githubLogin + }) + } + + return userData + } + fetchGraduate(githubLogin, table) { const airtable = Airtable.base(GITHUB_GRADUATION); return new Promise((resolve, reject)=>{ diff --git a/.github/workflows/src/app/fetch-data.js b/.github/workflows/src/app/fetch-data.js new file mode 100644 index 00000000..2c053d10 --- /dev/null +++ b/.github/workflows/src/app/fetch-data.js @@ -0,0 +1,16 @@ +const airtable = require('./app/airtable.js'); +const actionEvent = require('./app/action-event.js'); +const fs = require('fs') + +(async ()=>{ + const grad2020 = airtable.fetchAll2020(actionEvent.pullAuthor) + const grad2021 = airtable.fetchAll2021(actionEvent.pullAuthor) + const content = JSON.stringify({grad2020, grad2021}) + + fs.writeFile('app/data/airtable.json', content, err => { + if (err) { + console.error(err) + process.exit(1) + } + }) +})() -- knotmirror 0.0.1 From dc40ae9e696eedc7eaf03ea85fbf7f6aa4293ca8 Mon Sep 17 00:00:00 2001 From: Adam Rensel Date: Mon, 10 May 2021 23:04:04 -0400 Subject: [PATCH 20/68] Fix syntax --- .github/workflows/main.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f45428ca..4a84b4dd 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -26,13 +26,13 @@ jobs: echo "::set-output name=minute::$(/bin/date -u "+%M")" shell: bash # For Windows, Linux and macOS default to bash alrea - name: Cache data - id: cache_data - uses: actions/cache@v2 - with: - path: .github/workflows/src/data - key: ${{ runner.OS }}-${{ steps.get-date.outputs.minute }} # cache for 1 minute + id: cache-data + uses: actions/cache@v2 + with: + path: .github/workflows/src/data + key: ${{ runner.OS }}-${{ steps.get-date.outputs.minute }} # cache for 1 minute - name: Cache Airtable - if: steps.cache_data.outputs.cache-hit != 'true' + if: steps.cache-data.outputs.cache-hit != 'true' run: node fetch-data.js name: Checking Qualifications steps: @@ -42,13 +42,13 @@ jobs: with: node-version: 14 - name: Cache modules - id: cache_modules + id: cache-modules uses: actions/cache@v2 with: path: node_modules key: ${{ runner.os }}-${{ hashFiles('package.json') }} - name: Setup npm - if: steps.cache_modules.outputs.cache-hit != 'true' + if: steps.cache-modules.outputs.cache-hit != 'true' run: npm install -g npm - name: Install dependencies run: npm install -- knotmirror 0.0.1 From b9338f9df42d5dd024f8b99666920b5a8d093432 Mon Sep 17 00:00:00 2001 From: Adam Rensel Date: Mon, 10 May 2021 23:06:42 -0400 Subject: [PATCH 21/68] Syntax is hard --- .github/workflows/main.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4a84b4dd..651eb0d0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -34,8 +34,6 @@ jobs: - name: Cache Airtable if: steps.cache-data.outputs.cache-hit != 'true' run: node fetch-data.js - name: Checking Qualifications - steps: - uses: actions/checkout@v2 - name: Setup node uses: actions/setup-node@v2 -- knotmirror 0.0.1 From fb0d11c66838a1e3482de6fd0da4d9b75b340142 Mon Sep 17 00:00:00 2001 From: Adam Rensel Date: Mon, 10 May 2021 23:08:36 -0400 Subject: [PATCH 22/68] airtable caching --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 651eb0d0..456fade5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -23,7 +23,7 @@ jobs: - name: Get Minute id: get-minute run: | - echo "::set-output name=minute::$(/bin/date -u "+%M")" + echo "::set-output name=minute::$(/bin/date -u '+%M')" shell: bash # For Windows, Linux and macOS default to bash alrea - name: Cache data id: cache-data -- knotmirror 0.0.1 From 0aaa08e606cce7e05510a2bc54ec8651fb7d7ccf Mon Sep 17 00:00:00 2001 From: Adam Rensel Date: Mon, 10 May 2021 23:16:11 -0400 Subject: [PATCH 23/68] file paths --- .github/workflows/src/app/fetch-data.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/src/app/fetch-data.js b/.github/workflows/src/app/fetch-data.js index 2c053d10..d58ac3d1 100644 --- a/.github/workflows/src/app/fetch-data.js +++ b/.github/workflows/src/app/fetch-data.js @@ -1,5 +1,5 @@ -const airtable = require('./app/airtable.js'); -const actionEvent = require('./app/action-event.js'); +const airtable = require('./airtable.js'); +const actionEvent = require('./action-event.js'); const fs = require('fs') (async ()=>{ @@ -7,7 +7,7 @@ const fs = require('fs') const grad2021 = airtable.fetchAll2021(actionEvent.pullAuthor) const content = JSON.stringify({grad2020, grad2021}) - fs.writeFile('app/data/airtable.json', content, err => { + fs.writeFile('./data/airtable.json', content, err => { if (err) { console.error(err) process.exit(1) -- knotmirror 0.0.1 From 7546a733262b4ac617ef37bc6371eda6cd4016a1 Mon Sep 17 00:00:00 2001 From: Adam Rensel Date: Mon, 10 May 2021 23:18:00 -0400 Subject: [PATCH 24/68] paths --- .github/workflows/main.yml | 2 +- .github/workflows/src/app/fetch-data.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 456fade5..bb1bfa16 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -33,7 +33,7 @@ jobs: key: ${{ runner.OS }}-${{ steps.get-date.outputs.minute }} # cache for 1 minute - name: Cache Airtable if: steps.cache-data.outputs.cache-hit != 'true' - run: node fetch-data.js + run: node app/fetch-data.js - uses: actions/checkout@v2 - name: Setup node uses: actions/setup-node@v2 diff --git a/.github/workflows/src/app/fetch-data.js b/.github/workflows/src/app/fetch-data.js index d58ac3d1..08ea7351 100644 --- a/.github/workflows/src/app/fetch-data.js +++ b/.github/workflows/src/app/fetch-data.js @@ -7,7 +7,7 @@ const fs = require('fs') const grad2021 = airtable.fetchAll2021(actionEvent.pullAuthor) const content = JSON.stringify({grad2020, grad2021}) - fs.writeFile('./data/airtable.json', content, err => { + fs.writeFile('./app/data/airtable.json', content, err => { if (err) { console.error(err) process.exit(1) -- knotmirror 0.0.1 From 286cf1492be9d58a65a12cf836e59cf554a68df7 Mon Sep 17 00:00:00 2001 From: Adam Rensel Date: Mon, 10 May 2021 23:19:36 -0400 Subject: [PATCH 25/68] paths --- .github/workflows/src/app/fetch-data.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/src/app/fetch-data.js b/.github/workflows/src/app/fetch-data.js index 08ea7351..d58ac3d1 100644 --- a/.github/workflows/src/app/fetch-data.js +++ b/.github/workflows/src/app/fetch-data.js @@ -7,7 +7,7 @@ const fs = require('fs') const grad2021 = airtable.fetchAll2021(actionEvent.pullAuthor) const content = JSON.stringify({grad2020, grad2021}) - fs.writeFile('./app/data/airtable.json', content, err => { + fs.writeFile('./data/airtable.json', content, err => { if (err) { console.error(err) process.exit(1) -- knotmirror 0.0.1 From 8113ef33f1947dbde981887e136bc5c706dc6427 Mon Sep 17 00:00:00 2001 From: Adam Rensel Date: Mon, 10 May 2021 23:22:29 -0400 Subject: [PATCH 26/68] logging --- .github/workflows/src/app/fetch-data.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/src/app/fetch-data.js b/.github/workflows/src/app/fetch-data.js index d58ac3d1..b932fa84 100644 --- a/.github/workflows/src/app/fetch-data.js +++ b/.github/workflows/src/app/fetch-data.js @@ -1,12 +1,12 @@ const airtable = require('./airtable.js'); -const actionEvent = require('./action-event.js'); const fs = require('fs') (async ()=>{ - const grad2020 = airtable.fetchAll2020(actionEvent.pullAuthor) - const grad2021 = airtable.fetchAll2021(actionEvent.pullAuthor) + const grad2020 = airtable.fetchAll2020() + const grad2021 = airtable.fetchAll2021() const content = JSON.stringify({grad2020, grad2021}) + console.log(fs.dir.path) fs.writeFile('./data/airtable.json', content, err => { if (err) { console.error(err) -- knotmirror 0.0.1 From 98bc1ada139bf8cbfcceab4e354e3f38410b8fd5 Mon Sep 17 00:00:00 2001 From: Adam Rensel Date: Mon, 10 May 2021 23:24:45 -0400 Subject: [PATCH 27/68] zZZ --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index bb1bfa16..36b800d7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -30,7 +30,7 @@ jobs: uses: actions/cache@v2 with: path: .github/workflows/src/data - key: ${{ runner.OS }}-${{ steps.get-date.outputs.minute }} # cache for 1 minute + key: ${{ runner.OS }}-${{ steps.get-minute.outputs.minute }} # cache for 1 minute - name: Cache Airtable if: steps.cache-data.outputs.cache-hit != 'true' run: node app/fetch-data.js -- knotmirror 0.0.1 From 1797ba45ac12505947fbe308bf6402798223796d Mon Sep 17 00:00:00 2001 From: Adam Rensel Date: Mon, 10 May 2021 23:28:31 -0400 Subject: [PATCH 28/68] bash --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 36b800d7..a02299a3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -23,7 +23,7 @@ jobs: - name: Get Minute id: get-minute run: | - echo "::set-output name=minute::$(/bin/date -u '+%M')" + echo "::set-output name=minute::$(date -u '+%M')" shell: bash # For Windows, Linux and macOS default to bash alrea - name: Cache data id: cache-data -- knotmirror 0.0.1 From 337247620e34ea34411f68fd2d914ed5d4badcaa Mon Sep 17 00:00:00 2001 From: Adam Rensel Date: Mon, 10 May 2021 23:30:43 -0400 Subject: [PATCH 29/68] use correct path --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a02299a3..af550715 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -29,7 +29,7 @@ jobs: id: cache-data uses: actions/cache@v2 with: - path: .github/workflows/src/data + path: .github/workflows/src/app/data key: ${{ runner.OS }}-${{ steps.get-minute.outputs.minute }} # cache for 1 minute - name: Cache Airtable if: steps.cache-data.outputs.cache-hit != 'true' -- knotmirror 0.0.1 From cee3a01db8fd99e3867c920c8db45435b749f361 Mon Sep 17 00:00:00 2001 From: Adam Rensel Date: Mon, 10 May 2021 23:36:46 -0400 Subject: [PATCH 30/68] Zzz --- .github/workflows/main.yml | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index af550715..f9df9d66 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -20,20 +20,6 @@ jobs: working-directory: ./.github/workflows/src name: Getting grades steps: - - name: Get Minute - id: get-minute - run: | - echo "::set-output name=minute::$(date -u '+%M')" - shell: bash # For Windows, Linux and macOS default to bash alrea - - name: Cache data - id: cache-data - uses: actions/cache@v2 - with: - path: .github/workflows/src/app/data - key: ${{ runner.OS }}-${{ steps.get-minute.outputs.minute }} # cache for 1 minute - - name: Cache Airtable - if: steps.cache-data.outputs.cache-hit != 'true' - run: node app/fetch-data.js - uses: actions/checkout@v2 - name: Setup node uses: actions/setup-node@v2 @@ -46,10 +32,23 @@ jobs: path: node_modules key: ${{ runner.os }}-${{ hashFiles('package.json') }} - name: Setup npm - if: steps.cache-modules.outputs.cache-hit != 'true' run: npm install -g npm - name: Install dependencies + if: steps.cache-modules.outputs.cache-hit != 'true' run: npm install + - name: Get Minute + id: get-minute + run: echo "::set-output name=minute::$(date -u '+%M')" + shell: bash # For Windows, Linux and macOS default to bash alrea + - name: Cache data + id: cache-data + uses: actions/cache@v2 + with: + path: .github/workflows/src/app/data + key: ${{ runner.OS }}-${{ steps.get-minute.outputs.minute }} # cache for 1 minute + - name: Cache Airtable + if: steps.cache-data.outputs.cache-hit != 'true' + run: node app/fetch-data.js - name: run entry point run: node index.js env: -- knotmirror 0.0.1 From a00bf9961dda7b18520dbf8cfdf5222e3ded54d5 Mon Sep 17 00:00:00 2001 From: Adam Rensel Date: Mon, 10 May 2021 23:38:39 -0400 Subject: [PATCH 31/68] async --- .github/workflows/src/app/airtable.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/src/app/airtable.js b/.github/workflows/src/app/airtable.js index 4ea588e8..785d83dd 100644 --- a/.github/workflows/src/app/airtable.js +++ b/.github/workflows/src/app/airtable.js @@ -65,11 +65,11 @@ class ATable { }); } - fetchAll2021() { + async fetchAll2021() { return await this.fetchAll(GRADUATES_2021) } - fetchAll2020() { + async fetchAll2020() { return await this.fetchAll(GRADUATES_2020) } -- knotmirror 0.0.1 From c27712de7eb7bcc1d1801b8a7b2514ad3330b97e Mon Sep 17 00:00:00 2001 From: Adam Rensel Date: Mon, 10 May 2021 23:40:08 -0400 Subject: [PATCH 32/68] semicolon --- .github/workflows/src/app/fetch-data.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/src/app/fetch-data.js b/.github/workflows/src/app/fetch-data.js index b932fa84..658651cb 100644 --- a/.github/workflows/src/app/fetch-data.js +++ b/.github/workflows/src/app/fetch-data.js @@ -1,7 +1,7 @@ const airtable = require('./airtable.js'); const fs = require('fs') -(async ()=>{ +;(async ()=>{ const grad2020 = airtable.fetchAll2020() const grad2021 = airtable.fetchAll2021() const content = JSON.stringify({grad2020, grad2021}) -- knotmirror 0.0.1 From cf4762d5e0cec34e6b7f534db85658a670da8147 Mon Sep 17 00:00:00 2001 From: Adam Rensel Date: Mon, 10 May 2021 23:43:14 -0400 Subject: [PATCH 33/68] Try not caching modules for now --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f9df9d66..4c277f5e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -34,7 +34,7 @@ jobs: - name: Setup npm run: npm install -g npm - name: Install dependencies - if: steps.cache-modules.outputs.cache-hit != 'true' + # if: steps.cache-modules.outputs.cache-hit != 'true' run: npm install - name: Get Minute id: get-minute -- knotmirror 0.0.1 From 8547b8ae0adfeb2f5c649a824acf18485c1a1084 Mon Sep 17 00:00:00 2001 From: Adam Rensel Date: Mon, 10 May 2021 23:45:34 -0400 Subject: [PATCH 34/68] Logging --- .github/workflows/src/app/airtable.js | 2 ++ .github/workflows/src/package-lock.json | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/src/app/airtable.js b/.github/workflows/src/app/airtable.js index 785d83dd..5e79bf05 100644 --- a/.github/workflows/src/app/airtable.js +++ b/.github/workflows/src/app/airtable.js @@ -29,6 +29,7 @@ class ATable { userParticipated2020(githubLogin) { const cachedData = fetchFromCache(githubLogin, GRADUATES_2020) if(cachedData) { + console.log("found cached 2020 data") return new Promise(cachedData) } @@ -38,6 +39,7 @@ class ATable { fetch2021Graduate(githubLogin) { const cachedData = fetchFromCache(githubLogin, GRADUATES_2021) if(cachedData) { + console.log("found cached 2021 data") return new Promise(cachedData) } diff --git a/.github/workflows/src/package-lock.json b/.github/workflows/src/package-lock.json index 8b22cf9c..afc91cef 100644 --- a/.github/workflows/src/package-lock.json +++ b/.github/workflows/src/package-lock.json @@ -1,6 +1,6 @@ { "name": "GitHub Graduation", - "version": "1.0.0", + "version": "1.1.0", "lockfileVersion": 2, "requires": true, "packages": { -- knotmirror 0.0.1 From c1df39752bb8f945ec94bef379ced0183a45e45c Mon Sep 17 00:00:00 2001 From: Adam Rensel Date: Mon, 10 May 2021 23:49:52 -0400 Subject: [PATCH 35/68] Fiddle with the yaml --- .github/workflows/main.yml | 10 +++++----- .github/workflows/src/app/airtable.js | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4c277f5e..8272fbc5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -26,7 +26,7 @@ jobs: with: node-version: 14 - name: Cache modules - id: cache-modules + id: cachemodules uses: actions/cache@v2 with: path: node_modules @@ -34,18 +34,18 @@ jobs: - name: Setup npm run: npm install -g npm - name: Install dependencies - # if: steps.cache-modules.outputs.cache-hit != 'true' + if: steps.cachemodules.outputs.cache-hit != 'true' run: npm install - name: Get Minute - id: get-minute - run: echo "::set-output name=minute::$(date -u '+%M')" + id: getminute + run: echo "::set-output name=minute::$(date -u "+%M")" shell: bash # For Windows, Linux and macOS default to bash alrea - name: Cache data id: cache-data uses: actions/cache@v2 with: path: .github/workflows/src/app/data - key: ${{ runner.OS }}-${{ steps.get-minute.outputs.minute }} # cache for 1 minute + key: ${{ runner.OS }}-${{ steps.getminute.outputs.minute }} # cache for 1 minute - name: Cache Airtable if: steps.cache-data.outputs.cache-hit != 'true' run: node app/fetch-data.js diff --git a/.github/workflows/src/app/airtable.js b/.github/workflows/src/app/airtable.js index 5e79bf05..8f0da7e3 100644 --- a/.github/workflows/src/app/airtable.js +++ b/.github/workflows/src/app/airtable.js @@ -27,7 +27,7 @@ class ATable { } userParticipated2020(githubLogin) { - const cachedData = fetchFromCache(githubLogin, GRADUATES_2020) + const cachedData = this.fetchFromCache(githubLogin, GRADUATES_2020) if(cachedData) { console.log("found cached 2020 data") return new Promise(cachedData) @@ -37,7 +37,7 @@ class ATable { } fetch2021Graduate(githubLogin) { - const cachedData = fetchFromCache(githubLogin, GRADUATES_2021) + const cachedData = this.fetchFromCache(githubLogin, GRADUATES_2021) if(cachedData) { console.log("found cached 2021 data") return new Promise(cachedData) -- knotmirror 0.0.1 From 5be19f18c097d126a9656a0e075414c4e4324812 Mon Sep 17 00:00:00 2001 From: Adam Rensel Date: Mon, 10 May 2021 23:54:58 -0400 Subject: [PATCH 36/68] lets try this --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8272fbc5..a2d6ba82 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -30,7 +30,7 @@ jobs: uses: actions/cache@v2 with: path: node_modules - key: ${{ runner.os }}-${{ hashFiles('package.json') }} + key: ${{ runner.os }}-${{ hashFiles('.github/workflows/src/package.json') }} - name: Setup npm run: npm install -g npm - name: Install dependencies @@ -38,7 +38,7 @@ jobs: run: npm install - name: Get Minute id: getminute - run: echo "::set-output name=minute::$(date -u "+%M")" + run: echo "::set-output name=minute::$(date -u '+%M')" shell: bash # For Windows, Linux and macOS default to bash alrea - name: Cache data id: cache-data -- knotmirror 0.0.1 From ef2ae7bab75084f1a9add42d5f7599b84a4b1787 Mon Sep 17 00:00:00 2001 From: Adam Rensel Date: Mon, 10 May 2021 23:58:03 -0400 Subject: [PATCH 37/68] envs --- .github/workflows/main.yml | 6 ++++++ .github/workflows/src/app/fetch-data.js | 1 - 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a2d6ba82..5fa0f776 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -49,6 +49,12 @@ jobs: - name: Cache Airtable if: steps.cache-data.outputs.cache-hit != 'true' run: node app/fetch-data.js + env: + AIRTABLE_SECRET: ${{ secrets.AIRTABLE_SECRET }} + GH_SECRET: ${{ secrets.GH_SECRET }} + EDUCATION_WEB_KEY: ${{ secrets.EDUCATION_WEB_KEY }} + EDUCATION_WEB_SECRET: ${{ secrets.EDUCATION_WEB_SECRET }} + EDUCATION_WEB_API: ${{ secrets.EDUCATION_WEB_API }} - name: run entry point run: node index.js env: diff --git a/.github/workflows/src/app/fetch-data.js b/.github/workflows/src/app/fetch-data.js index 658651cb..cddd7320 100644 --- a/.github/workflows/src/app/fetch-data.js +++ b/.github/workflows/src/app/fetch-data.js @@ -6,7 +6,6 @@ const fs = require('fs') const grad2021 = airtable.fetchAll2021() const content = JSON.stringify({grad2020, grad2021}) - console.log(fs.dir.path) fs.writeFile('./data/airtable.json', content, err => { if (err) { console.error(err) -- knotmirror 0.0.1 From 34bc810b956c13328514b3a4f19fc8f9f019746e Mon Sep 17 00:00:00 2001 From: Adam Rensel Date: Tue, 11 May 2021 00:00:48 -0400 Subject: [PATCH 38/68] Paths --- .github/workflows/main.yml | 2 +- .github/workflows/src/package-lock.json | 2 +- .github/workflows/src/package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5fa0f776..89484947 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -29,7 +29,7 @@ jobs: id: cachemodules uses: actions/cache@v2 with: - path: node_modules + path: .github/workflows/src/node_modules key: ${{ runner.os }}-${{ hashFiles('.github/workflows/src/package.json') }} - name: Setup npm run: npm install -g npm diff --git a/.github/workflows/src/package-lock.json b/.github/workflows/src/package-lock.json index afc91cef..64a433d6 100644 --- a/.github/workflows/src/package-lock.json +++ b/.github/workflows/src/package-lock.json @@ -1,6 +1,6 @@ { "name": "GitHub Graduation", - "version": "1.1.0", + "version": "1.0.1", "lockfileVersion": 2, "requires": true, "packages": { diff --git a/.github/workflows/src/package.json b/.github/workflows/src/package.json index 19b6bb9d..cfd053da 100644 --- a/.github/workflows/src/package.json +++ b/.github/workflows/src/package.json @@ -1,6 +1,6 @@ { "name": "GitHub Graduation", - "version": "1.0.0", + "version": "1.0.1", "description": "", "main": "index.js", "scripts": { -- knotmirror 0.0.1 From fac1031cb69612b30909d065ac6b8416438a51e7 Mon Sep 17 00:00:00 2001 From: Adam Rensel Date: Tue, 11 May 2021 00:02:34 -0400 Subject: [PATCH 39/68] Paths --- .github/workflows/src/app/fetch-data.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/src/app/fetch-data.js b/.github/workflows/src/app/fetch-data.js index cddd7320..ff6091ce 100644 --- a/.github/workflows/src/app/fetch-data.js +++ b/.github/workflows/src/app/fetch-data.js @@ -6,7 +6,7 @@ const fs = require('fs') const grad2021 = airtable.fetchAll2021() const content = JSON.stringify({grad2020, grad2021}) - fs.writeFile('./data/airtable.json', content, err => { + fs.writeFile('./app/data/airtable.json', content, err => { if (err) { console.error(err) process.exit(1) -- knotmirror 0.0.1 From f2d7f247901d2b91571f5c97f7bb95778625f73e Mon Sep 17 00:00:00 2001 From: Adam Rensel Date: Tue, 11 May 2021 00:05:08 -0400 Subject: [PATCH 40/68] use the correct arg --- .github/workflows/src/app/airtable.js | 2 +- .github/workflows/src/app/fetch-data.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/src/app/airtable.js b/.github/workflows/src/app/airtable.js index 8f0da7e3..a4023421 100644 --- a/.github/workflows/src/app/airtable.js +++ b/.github/workflows/src/app/airtable.js @@ -50,7 +50,7 @@ class ATable { const airtable = Airtable.base(GITHUB_GRADUATION); const users = [] - return airtable(GRADUATES_2020).select().eachPage(function page(records, fetchNextPage) { + return airtable(table).select().eachPage(function page(records, fetchNextPage) { // This function (`page`) will get called for each page of records. records.forEach(function(record) { diff --git a/.github/workflows/src/app/fetch-data.js b/.github/workflows/src/app/fetch-data.js index ff6091ce..50fbb007 100644 --- a/.github/workflows/src/app/fetch-data.js +++ b/.github/workflows/src/app/fetch-data.js @@ -2,8 +2,8 @@ const airtable = require('./airtable.js'); const fs = require('fs') ;(async ()=>{ - const grad2020 = airtable.fetchAll2020() - const grad2021 = airtable.fetchAll2021() + const grad2020 = await airtable.fetchAll2020() + const grad2021 = await airtable.fetchAll2021() const content = JSON.stringify({grad2020, grad2021}) fs.writeFile('./app/data/airtable.json', content, err => { -- knotmirror 0.0.1 From bfd832d8e5a1d4dd6c19feb29130dc70a2f729e8 Mon Sep 17 00:00:00 2001 From: Adam Rensel Date: Tue, 11 May 2021 00:08:58 -0400 Subject: [PATCH 41/68] new table base --- .github/workflows/src/app/airtable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/src/app/airtable.js b/.github/workflows/src/app/airtable.js index a4023421..383a301d 100644 --- a/.github/workflows/src/app/airtable.js +++ b/.github/workflows/src/app/airtable.js @@ -6,7 +6,7 @@ Airtable.configure({ apiKey: process.env.AIRTABLE_SECRET }); -const GITHUB_GRADUATION = "bipux0j8oGEJuReSb" +const GITHUB_GRADUATION = "appnpTfSaHWAf964L" const GRADUATES_2020 = "Graduation 2020" const GRADUATES_2021 = "Graduation 2021" -- knotmirror 0.0.1 From c063258dd44d1f12b22ea6d15d7c45369b4005ce Mon Sep 17 00:00:00 2001 From: Adam Rensel Date: Tue, 11 May 2021 00:13:24 -0400 Subject: [PATCH 42/68] error --- .../workflows/src/app/data/example-event.json | 512 +++++++++++++++++- .github/workflows/src/index.js | 3 +- 2 files changed, 513 insertions(+), 2 deletions(-) diff --git a/.github/workflows/src/app/data/example-event.json b/.github/workflows/src/app/data/example-event.json index fceeccae..4a7f05cd 100644 --- a/.github/workflows/src/app/data/example-event.json +++ b/.github/workflows/src/app/data/example-event.json @@ -1 +1,511 @@ -{"action":"review_requested","number":8,"organization":{"avatar_url":"https://avatars.githubusercontent.com/u/6667880?v=4","description":"Bringing GitHub to the classroom","events_url":"https://api.github.com/orgs/education/events","hooks_url":"https://api.github.com/orgs/education/hooks","id":6667880,"issues_url":"https://api.github.com/orgs/education/issues","login":"education","members_url":"https://api.github.com/orgs/education/members{/member}","node_id":"MDEyOk9yZ2FuaXphdGlvbjY2Njc4ODA=","public_members_url":"https://api.github.com/orgs/education/public_members{/member}","repos_url":"https://api.github.com/orgs/education/repos","url":"https://api.github.com/orgs/education"},"pull_request":{"_links":{"comments":{"href":"https://api.github.com/repos/education/GitHubGraduation-2021/issues/8/comments"},"commits":{"href":"https://api.github.com/repos/education/GitHubGraduation-2021/pulls/8/commits"},"html":{"href":"https://github.com/education/GitHubGraduation-2021/pull/8"},"issue":{"href":"https://api.github.com/repos/education/GitHubGraduation-2021/issues/8"},"review_comment":{"href":"https://api.github.com/repos/education/GitHubGraduation-2021/pulls/comments{/number}"},"review_comments":{"href":"https://api.github.com/repos/education/GitHubGraduation-2021/pulls/8/comments"},"self":{"href":"https://api.github.com/repos/education/GitHubGraduation-2021/pulls/8"},"statuses":{"href":"https://api.github.com/repos/education/GitHubGraduation-2021/statuses/beefd36c45c6259948476fee4c7234a8b112a888"}},"active_lock_reason":null,"additions":6,"assignee":null,"assignees":[],"author_association":"COLLABORATOR","auto_merge":null,"base":{"label":"education:main","ref":"main","repo":{"allow_merge_commit":true,"allow_rebase_merge":false,"allow_squash_merge":false,"archive_url":"https://api.github.com/repos/education/GitHubGraduation-2021/{archive_format}{/ref}","archived":false,"assignees_url":"https://api.github.com/repos/education/GitHubGraduation-2021/assignees{/user}","blobs_url":"https://api.github.com/repos/education/GitHubGraduation-2021/git/blobs{/sha}","branches_url":"https://api.github.com/repos/education/GitHubGraduation-2021/branches{/branch}","clone_url":"https://github.com/education/GitHubGraduation-2021.git","collaborators_url":"https://api.github.com/repos/education/GitHubGraduation-2021/collaborators{/collaborator}","comments_url":"https://api.github.com/repos/education/GitHubGraduation-2021/comments{/number}","commits_url":"https://api.github.com/repos/education/GitHubGraduation-2021/commits{/sha}","compare_url":"https://api.github.com/repos/education/GitHubGraduation-2021/compare/{base}...{head}","contents_url":"https://api.github.com/repos/education/GitHubGraduation-2021/contents/{+path}","contributors_url":"https://api.github.com/repos/education/GitHubGraduation-2021/contributors","created_at":"2021-04-22T19:11:09Z","default_branch":"main","delete_branch_on_merge":false,"deployments_url":"https://api.github.com/repos/education/GitHubGraduation-2021/deployments","description":"Join the GitHub Graduation Yearbook and \"walk the stage\" on June 5.","disabled":false,"downloads_url":"https://api.github.com/repos/education/GitHubGraduation-2021/downloads","events_url":"https://api.github.com/repos/education/GitHubGraduation-2021/events","fork":false,"forks":0,"forks_count":0,"forks_url":"https://api.github.com/repos/education/GitHubGraduation-2021/forks","full_name":"education/GitHubGraduation-2021","git_commits_url":"https://api.github.com/repos/education/GitHubGraduation-2021/git/commits{/sha}","git_refs_url":"https://api.github.com/repos/education/GitHubGraduation-2021/git/refs{/sha}","git_tags_url":"https://api.github.com/repos/education/GitHubGraduation-2021/git/tags{/sha}","git_url":"git://github.com/education/GitHubGraduation-2021.git","has_downloads":true,"has_issues":true,"has_pages":false,"has_projects":false,"has_wiki":true,"homepage":"","hooks_url":"https://api.github.com/repos/education/GitHubGraduation-2021/hooks","html_url":"https://github.com/education/GitHubGraduation-2021","id":360655524,"issue_comment_url":"https://api.github.com/repos/education/GitHubGraduation-2021/issues/comments{/number}","issue_events_url":"https://api.github.com/repos/education/GitHubGraduation-2021/issues/events{/number}","issues_url":"https://api.github.com/repos/education/GitHubGraduation-2021/issues{/number}","keys_url":"https://api.github.com/repos/education/GitHubGraduation-2021/keys{/key_id}","labels_url":"https://api.github.com/repos/education/GitHubGraduation-2021/labels{/name}","language":"JavaScript","languages_url":"https://api.github.com/repos/education/GitHubGraduation-2021/languages","license":null,"merges_url":"https://api.github.com/repos/education/GitHubGraduation-2021/merges","milestones_url":"https://api.github.com/repos/education/GitHubGraduation-2021/milestones{/number}","mirror_url":null,"name":"GitHubGraduation-2021","node_id":"MDEwOlJlcG9zaXRvcnkzNjA2NTU1MjQ=","notifications_url":"https://api.github.com/repos/education/GitHubGraduation-2021/notifications{?since,all,participating}","open_issues":5,"open_issues_count":5,"owner":{"avatar_url":"https://avatars.githubusercontent.com/u/6667880?v=4","events_url":"https://api.github.com/users/education/events{/privacy}","followers_url":"https://api.github.com/users/education/followers","following_url":"https://api.github.com/users/education/following{/other_user}","gists_url":"https://api.github.com/users/education/gists{/gist_id}","gravatar_id":"","html_url":"https://github.com/education","id":6667880,"login":"education","node_id":"MDEyOk9yZ2FuaXphdGlvbjY2Njc4ODA=","organizations_url":"https://api.github.com/users/education/orgs","received_events_url":"https://api.github.com/users/education/received_events","repos_url":"https://api.github.com/users/education/repos","site_admin":false,"starred_url":"https://api.github.com/users/education/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/education/subscriptions","type":"Organization","url":"https://api.github.com/users/education"},"private":true,"pulls_url":"https://api.github.com/repos/education/GitHubGraduation-2021/pulls{/number}","pushed_at":"2021-05-10T23:46:52Z","releases_url":"https://api.github.com/repos/education/GitHubGraduation-2021/releases{/id}","size":1443,"ssh_url":"git@github.com:education/GitHubGraduation-2021.git","stargazers_count":0,"stargazers_url":"https://api.github.com/repos/education/GitHubGraduation-2021/stargazers","statuses_url":"https://api.github.com/repos/education/GitHubGraduation-2021/statuses/{sha}","subscribers_url":"https://api.github.com/repos/education/GitHubGraduation-2021/subscribers","subscription_url":"https://api.github.com/repos/education/GitHubGraduation-2021/subscription","svn_url":"https://github.com/education/GitHubGraduation-2021","tags_url":"https://api.github.com/repos/education/GitHubGraduation-2021/tags","teams_url":"https://api.github.com/repos/education/GitHubGraduation-2021/teams","trees_url":"https://api.github.com/repos/education/GitHubGraduation-2021/git/trees{/sha}","updated_at":"2021-05-10T23:46:54Z","url":"https://api.github.com/repos/education/GitHubGraduation-2021","watchers":0,"watchers_count":0},"sha":"9c139b7dd2eb421a3274b8565f5583749234df56","user":{"avatar_url":"https://avatars.githubusercontent.com/u/6667880?v=4","events_url":"https://api.github.com/users/education/events{/privacy}","followers_url":"https://api.github.com/users/education/followers","following_url":"https://api.github.com/users/education/following{/other_user}","gists_url":"https://api.github.com/users/education/gists{/gist_id}","gravatar_id":"","html_url":"https://github.com/education","id":6667880,"login":"education","node_id":"MDEyOk9yZ2FuaXphdGlvbjY2Njc4ODA=","organizations_url":"https://api.github.com/users/education/orgs","received_events_url":"https://api.github.com/users/education/received_events","repos_url":"https://api.github.com/users/education/repos","site_admin":false,"starred_url":"https://api.github.com/users/education/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/education/subscriptions","type":"Organization","url":"https://api.github.com/users/education"}},"body":"# Application to the Class of 2021🎓\r\n\r\nThis pull request template helps you complete an application to the **Class of 2021**. Use the checklist below to verify you have followed the instructions correctly. \r\n\r\n## Checklist ✅\r\n\r\n- [X] I have read the instructions on the README file before submitting my application. \r\n- [X] I made my submission by creating a folder on the `_data` folder and followed the naming convention mentioned in the instructions (``) and markdown file.\r\n- [X] I have submitted a [swag shipping form](https://airtable.com/shrM5IigBuRFaj33H).\r\n- [X] I have used the Markdown file template to add my information to the Year Book.\r\n- [X] I understand that a reviewer will merge my pull request after examining it or ask for changes in case needed.\r\n- [X] I understand I should not tag or add a reviewer to this Pull Request.\r\n- [X] I have [added the event](http://www.google.com/calendar/event?action=TEMPLATE&dates=20210605T160000Z%2F20210605T173000Z&text=GitHub%20Graduation%20%F0%9F%8E%93&location=https%3A%2F%2Fwww.twitch.tv%2Fgithubeducation&details=) to my Calendar.\r\n\r\n","changed_files":1,"closed_at":null,"comments":0,"comments_url":"https://api.github.com/repos/education/GitHubGraduation-2021/issues/8/comments","commits":1,"commits_url":"https://api.github.com/repos/education/GitHubGraduation-2021/pulls/8/commits","created_at":"2021-05-10T21:04:55Z","deletions":0,"diff_url":"https://github.com/education/GitHubGraduation-2021/pull/8.diff","draft":false,"head":{"label":"education:elise-graduation","ref":"elise-graduation","repo":{"allow_merge_commit":true,"allow_rebase_merge":false,"allow_squash_merge":false,"archive_url":"https://api.github.com/repos/education/GitHubGraduation-2021/{archive_format}{/ref}","archived":false,"assignees_url":"https://api.github.com/repos/education/GitHubGraduation-2021/assignees{/user}","blobs_url":"https://api.github.com/repos/education/GitHubGraduation-2021/git/blobs{/sha}","branches_url":"https://api.github.com/repos/education/GitHubGraduation-2021/branches{/branch}","clone_url":"https://github.com/education/GitHubGraduation-2021.git","collaborators_url":"https://api.github.com/repos/education/GitHubGraduation-2021/collaborators{/collaborator}","comments_url":"https://api.github.com/repos/education/GitHubGraduation-2021/comments{/number}","commits_url":"https://api.github.com/repos/education/GitHubGraduation-2021/commits{/sha}","compare_url":"https://api.github.com/repos/education/GitHubGraduation-2021/compare/{base}...{head}","contents_url":"https://api.github.com/repos/education/GitHubGraduation-2021/contents/{+path}","contributors_url":"https://api.github.com/repos/education/GitHubGraduation-2021/contributors","created_at":"2021-04-22T19:11:09Z","default_branch":"main","delete_branch_on_merge":false,"deployments_url":"https://api.github.com/repos/education/GitHubGraduation-2021/deployments","description":"Join the GitHub Graduation Yearbook and \"walk the stage\" on June 5.","disabled":false,"downloads_url":"https://api.github.com/repos/education/GitHubGraduation-2021/downloads","events_url":"https://api.github.com/repos/education/GitHubGraduation-2021/events","fork":false,"forks":0,"forks_count":0,"forks_url":"https://api.github.com/repos/education/GitHubGraduation-2021/forks","full_name":"education/GitHubGraduation-2021","git_commits_url":"https://api.github.com/repos/education/GitHubGraduation-2021/git/commits{/sha}","git_refs_url":"https://api.github.com/repos/education/GitHubGraduation-2021/git/refs{/sha}","git_tags_url":"https://api.github.com/repos/education/GitHubGraduation-2021/git/tags{/sha}","git_url":"git://github.com/education/GitHubGraduation-2021.git","has_downloads":true,"has_issues":true,"has_pages":false,"has_projects":false,"has_wiki":true,"homepage":"","hooks_url":"https://api.github.com/repos/education/GitHubGraduation-2021/hooks","html_url":"https://github.com/education/GitHubGraduation-2021","id":360655524,"issue_comment_url":"https://api.github.com/repos/education/GitHubGraduation-2021/issues/comments{/number}","issue_events_url":"https://api.github.com/repos/education/GitHubGraduation-2021/issues/events{/number}","issues_url":"https://api.github.com/repos/education/GitHubGraduation-2021/issues{/number}","keys_url":"https://api.github.com/repos/education/GitHubGraduation-2021/keys{/key_id}","labels_url":"https://api.github.com/repos/education/GitHubGraduation-2021/labels{/name}","language":"JavaScript","languages_url":"https://api.github.com/repos/education/GitHubGraduation-2021/languages","license":null,"merges_url":"https://api.github.com/repos/education/GitHubGraduation-2021/merges","milestones_url":"https://api.github.com/repos/education/GitHubGraduation-2021/milestones{/number}","mirror_url":null,"name":"GitHubGraduation-2021","node_id":"MDEwOlJlcG9zaXRvcnkzNjA2NTU1MjQ=","notifications_url":"https://api.github.com/repos/education/GitHubGraduation-2021/notifications{?since,all,participating}","open_issues":5,"open_issues_count":5,"owner":{"avatar_url":"https://avatars.githubusercontent.com/u/6667880?v=4","events_url":"https://api.github.com/users/education/events{/privacy}","followers_url":"https://api.github.com/users/education/followers","following_url":"https://api.github.com/users/education/following{/other_user}","gists_url":"https://api.github.com/users/education/gists{/gist_id}","gravatar_id":"","html_url":"https://github.com/education","id":6667880,"login":"education","node_id":"MDEyOk9yZ2FuaXphdGlvbjY2Njc4ODA=","organizations_url":"https://api.github.com/users/education/orgs","received_events_url":"https://api.github.com/users/education/received_events","repos_url":"https://api.github.com/users/education/repos","site_admin":false,"starred_url":"https://api.github.com/users/education/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/education/subscriptions","type":"Organization","url":"https://api.github.com/users/education"},"private":true,"pulls_url":"https://api.github.com/repos/education/GitHubGraduation-2021/pulls{/number}","pushed_at":"2021-05-10T23:46:52Z","releases_url":"https://api.github.com/repos/education/GitHubGraduation-2021/releases{/id}","size":1443,"ssh_url":"git@github.com:education/GitHubGraduation-2021.git","stargazers_count":0,"stargazers_url":"https://api.github.com/repos/education/GitHubGraduation-2021/stargazers","statuses_url":"https://api.github.com/repos/education/GitHubGraduation-2021/statuses/{sha}","subscribers_url":"https://api.github.com/repos/education/GitHubGraduation-2021/subscribers","subscription_url":"https://api.github.com/repos/education/GitHubGraduation-2021/subscription","svn_url":"https://github.com/education/GitHubGraduation-2021","tags_url":"https://api.github.com/repos/education/GitHubGraduation-2021/tags","teams_url":"https://api.github.com/repos/education/GitHubGraduation-2021/teams","trees_url":"https://api.github.com/repos/education/GitHubGraduation-2021/git/trees{/sha}","updated_at":"2021-05-10T23:46:54Z","url":"https://api.github.com/repos/education/GitHubGraduation-2021","watchers":0,"watchers_count":0},"sha":"beefd36c45c6259948476fee4c7234a8b112a888","user":{"avatar_url":"https://avatars.githubusercontent.com/u/6667880?v=4","events_url":"https://api.github.com/users/education/events{/privacy}","followers_url":"https://api.github.com/users/education/followers","following_url":"https://api.github.com/users/education/following{/other_user}","gists_url":"https://api.github.com/users/education/gists{/gist_id}","gravatar_id":"","html_url":"https://github.com/education","id":6667880,"login":"education","node_id":"MDEyOk9yZ2FuaXphdGlvbjY2Njc4ODA=","organizations_url":"https://api.github.com/users/education/orgs","received_events_url":"https://api.github.com/users/education/received_events","repos_url":"https://api.github.com/users/education/repos","site_admin":false,"starred_url":"https://api.github.com/users/education/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/education/subscriptions","type":"Organization","url":"https://api.github.com/users/education"}},"html_url":"https://github.com/education/GitHubGraduation-2021/pull/8","id":638447500,"issue_url":"https://api.github.com/repos/education/GitHubGraduation-2021/issues/8","labels":[],"locked":false,"maintainer_can_modify":false,"merge_commit_sha":"b50000b220a69f6334721f0791774aa44e893d38","mergeable":true,"mergeable_state":"clean","merged":false,"merged_at":null,"merged_by":null,"milestone":null,"node_id":"MDExOlB1bGxSZXF1ZXN0NjM4NDQ3NTAw","number":8,"patch_url":"https://github.com/education/GitHubGraduation-2021/pull/8.patch","rebaseable":true,"requested_reviewers":[{"avatar_url":"https://avatars.githubusercontent.com/u/83462995?v=4","events_url":"https://api.github.com/users/GitHub-Education-bot/events{/privacy}","followers_url":"https://api.github.com/users/GitHub-Education-bot/followers","following_url":"https://api.github.com/users/GitHub-Education-bot/following{/other_user}","gists_url":"https://api.github.com/users/GitHub-Education-bot/gists{/gist_id}","gravatar_id":"","html_url":"https://github.com/GitHub-Education-bot","id":83462995,"login":"GitHub-Education-bot","node_id":"MDQ6VXNlcjgzNDYyOTk1","organizations_url":"https://api.github.com/users/GitHub-Education-bot/orgs","received_events_url":"https://api.github.com/users/GitHub-Education-bot/received_events","repos_url":"https://api.github.com/users/GitHub-Education-bot/repos","site_admin":false,"starred_url":"https://api.github.com/users/GitHub-Education-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GitHub-Education-bot/subscriptions","type":"User","url":"https://api.github.com/users/GitHub-Education-bot"}],"requested_teams":[],"review_comment_url":"https://api.github.com/repos/education/GitHubGraduation-2021/pulls/comments{/number}","review_comments":0,"review_comments_url":"https://api.github.com/repos/education/GitHubGraduation-2021/pulls/8/comments","state":"open","statuses_url":"https://api.github.com/repos/education/GitHubGraduation-2021/statuses/beefd36c45c6259948476fee4c7234a8b112a888","title":"add Elise to GitHub Graduation","updated_at":"2021-05-10T23:47:05Z","url":"https://api.github.com/repos/education/GitHubGraduation-2021/pulls/8","user":{"avatar_url":"https://avatars.githubusercontent.com/u/6633808?v=4","events_url":"https://api.github.com/users/elisemoe/events{/privacy}","followers_url":"https://api.github.com/users/elisemoe/followers","following_url":"https://api.github.com/users/elisemoe/following{/other_user}","gists_url":"https://api.github.com/users/elisemoe/gists{/gist_id}","gravatar_id":"","html_url":"https://github.com/elisemoe","id":6633808,"login":"elisemoe","node_id":"MDQ6VXNlcjY2MzM4MDg=","organizations_url":"https://api.github.com/users/elisemoe/orgs","received_events_url":"https://api.github.com/users/elisemoe/received_events","repos_url":"https://api.github.com/users/elisemoe/repos","site_admin":true,"starred_url":"https://api.github.com/users/elisemoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elisemoe/subscriptions","type":"User","url":"https://api.github.com/users/elisemoe"}},"repository":{"archive_url":"https://api.github.com/repos/education/GitHubGraduation-2021/{archive_format}{/ref}","archived":false,"assignees_url":"https://api.github.com/repos/education/GitHubGraduation-2021/assignees{/user}","blobs_url":"https://api.github.com/repos/education/GitHubGraduation-2021/git/blobs{/sha}","branches_url":"https://api.github.com/repos/education/GitHubGraduation-2021/branches{/branch}","clone_url":"https://github.com/education/GitHubGraduation-2021.git","collaborators_url":"https://api.github.com/repos/education/GitHubGraduation-2021/collaborators{/collaborator}","comments_url":"https://api.github.com/repos/education/GitHubGraduation-2021/comments{/number}","commits_url":"https://api.github.com/repos/education/GitHubGraduation-2021/commits{/sha}","compare_url":"https://api.github.com/repos/education/GitHubGraduation-2021/compare/{base}...{head}","contents_url":"https://api.github.com/repos/education/GitHubGraduation-2021/contents/{+path}","contributors_url":"https://api.github.com/repos/education/GitHubGraduation-2021/contributors","created_at":"2021-04-22T19:11:09Z","default_branch":"main","deployments_url":"https://api.github.com/repos/education/GitHubGraduation-2021/deployments","description":"Join the GitHub Graduation Yearbook and \"walk the stage\" on June 5.","disabled":false,"downloads_url":"https://api.github.com/repos/education/GitHubGraduation-2021/downloads","events_url":"https://api.github.com/repos/education/GitHubGraduation-2021/events","fork":false,"forks":0,"forks_count":0,"forks_url":"https://api.github.com/repos/education/GitHubGraduation-2021/forks","full_name":"education/GitHubGraduation-2021","git_commits_url":"https://api.github.com/repos/education/GitHubGraduation-2021/git/commits{/sha}","git_refs_url":"https://api.github.com/repos/education/GitHubGraduation-2021/git/refs{/sha}","git_tags_url":"https://api.github.com/repos/education/GitHubGraduation-2021/git/tags{/sha}","git_url":"git://github.com/education/GitHubGraduation-2021.git","has_downloads":true,"has_issues":true,"has_pages":false,"has_projects":false,"has_wiki":true,"homepage":"","hooks_url":"https://api.github.com/repos/education/GitHubGraduation-2021/hooks","html_url":"https://github.com/education/GitHubGraduation-2021","id":360655524,"issue_comment_url":"https://api.github.com/repos/education/GitHubGraduation-2021/issues/comments{/number}","issue_events_url":"https://api.github.com/repos/education/GitHubGraduation-2021/issues/events{/number}","issues_url":"https://api.github.com/repos/education/GitHubGraduation-2021/issues{/number}","keys_url":"https://api.github.com/repos/education/GitHubGraduation-2021/keys{/key_id}","labels_url":"https://api.github.com/repos/education/GitHubGraduation-2021/labels{/name}","language":"JavaScript","languages_url":"https://api.github.com/repos/education/GitHubGraduation-2021/languages","license":null,"merges_url":"https://api.github.com/repos/education/GitHubGraduation-2021/merges","milestones_url":"https://api.github.com/repos/education/GitHubGraduation-2021/milestones{/number}","mirror_url":null,"name":"GitHubGraduation-2021","node_id":"MDEwOlJlcG9zaXRvcnkzNjA2NTU1MjQ=","notifications_url":"https://api.github.com/repos/education/GitHubGraduation-2021/notifications{?since,all,participating}","open_issues":5,"open_issues_count":5,"owner":{"avatar_url":"https://avatars.githubusercontent.com/u/6667880?v=4","events_url":"https://api.github.com/users/education/events{/privacy}","followers_url":"https://api.github.com/users/education/followers","following_url":"https://api.github.com/users/education/following{/other_user}","gists_url":"https://api.github.com/users/education/gists{/gist_id}","gravatar_id":"","html_url":"https://github.com/education","id":6667880,"login":"education","node_id":"MDEyOk9yZ2FuaXphdGlvbjY2Njc4ODA=","organizations_url":"https://api.github.com/users/education/orgs","received_events_url":"https://api.github.com/users/education/received_events","repos_url":"https://api.github.com/users/education/repos","site_admin":false,"starred_url":"https://api.github.com/users/education/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/education/subscriptions","type":"Organization","url":"https://api.github.com/users/education"},"private":true,"pulls_url":"https://api.github.com/repos/education/GitHubGraduation-2021/pulls{/number}","pushed_at":"2021-05-10T23:46:52Z","releases_url":"https://api.github.com/repos/education/GitHubGraduation-2021/releases{/id}","size":1443,"ssh_url":"git@github.com:education/GitHubGraduation-2021.git","stargazers_count":0,"stargazers_url":"https://api.github.com/repos/education/GitHubGraduation-2021/stargazers","statuses_url":"https://api.github.com/repos/education/GitHubGraduation-2021/statuses/{sha}","subscribers_url":"https://api.github.com/repos/education/GitHubGraduation-2021/subscribers","subscription_url":"https://api.github.com/repos/education/GitHubGraduation-2021/subscription","svn_url":"https://github.com/education/GitHubGraduation-2021","tags_url":"https://api.github.com/repos/education/GitHubGraduation-2021/tags","teams_url":"https://api.github.com/repos/education/GitHubGraduation-2021/teams","trees_url":"https://api.github.com/repos/education/GitHubGraduation-2021/git/trees{/sha}","updated_at":"2021-05-10T23:46:54Z","url":"https://api.github.com/repos/education/GitHubGraduation-2021","watchers":0,"watchers_count":0},"requested_reviewer":{"avatar_url":"https://avatars.githubusercontent.com/u/83462995?v=4","events_url":"https://api.github.com/users/GitHub-Education-bot/events{/privacy}","followers_url":"https://api.github.com/users/GitHub-Education-bot/followers","following_url":"https://api.github.com/users/GitHub-Education-bot/following{/other_user}","gists_url":"https://api.github.com/users/GitHub-Education-bot/gists{/gist_id}","gravatar_id":"","html_url":"https://github.com/GitHub-Education-bot","id":83462995,"login":"GitHub-Education-bot","node_id":"MDQ6VXNlcjgzNDYyOTk1","organizations_url":"https://api.github.com/users/GitHub-Education-bot/orgs","received_events_url":"https://api.github.com/users/GitHub-Education-bot/received_events","repos_url":"https://api.github.com/users/GitHub-Education-bot/repos","site_admin":false,"starred_url":"https://api.github.com/users/GitHub-Education-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GitHub-Education-bot/subscriptions","type":"User","url":"https://api.github.com/users/GitHub-Education-bot"},"sender":{"avatar_url":"https://avatars.githubusercontent.com/u/599521?v=4","events_url":"https://api.github.com/users/renz45/events{/privacy}","followers_url":"https://api.github.com/users/renz45/followers","following_url":"https://api.github.com/users/renz45/following{/other_user}","gists_url":"https://api.github.com/users/renz45/gists{/gist_id}","gravatar_id":"","html_url":"https://github.com/renz45","id":599521,"login":"renz45","node_id":"MDQ6VXNlcjU5OTUyMQ==","organizations_url":"https://api.github.com/users/renz45/orgs","received_events_url":"https://api.github.com/users/renz45/received_events","repos_url":"https://api.github.com/users/renz45/repos","site_admin":true,"starred_url":"https://api.github.com/users/renz45/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/renz45/subscriptions","type":"User","url":"https://api.github.com/users/renz45"}} +{ + "action": "review_requested", + "number": 8, + "organization": { + "avatar_url": "https://avatars.githubusercontent.com/u/6667880?v=4", + "description": "Bringing GitHub to the classroom", + "events_url": "https://api.github.com/orgs/education/events", + "hooks_url": "https://api.github.com/orgs/education/hooks", + "id": 6667880, + "issues_url": "https://api.github.com/orgs/education/issues", + "login": "education", + "members_url": "https://api.github.com/orgs/education/members{/member}", + "node_id": "MDEyOk9yZ2FuaXphdGlvbjY2Njc4ODA=", + "public_members_url": "https://api.github.com/orgs/education/public_members{/member}", + "repos_url": "https://api.github.com/orgs/education/repos", + "url": "https://api.github.com/orgs/education" + }, + "pull_request": { + "_links": { + "comments": { + "href": "https://api.github.com/repos/education/GitHubGraduation-2021/issues/8/comments" + }, + "commits": { + "href": "https://api.github.com/repos/education/GitHubGraduation-2021/pulls/8/commits" + }, + "html": { + "href": "https://github.com/education/GitHubGraduation-2021/pull/8" + }, + "issue": { + "href": "https://api.github.com/repos/education/GitHubGraduation-2021/issues/8" + }, + "review_comment": { + "href": "https://api.github.com/repos/education/GitHubGraduation-2021/pulls/comments{/number}" + }, + "review_comments": { + "href": "https://api.github.com/repos/education/GitHubGraduation-2021/pulls/8/comments" + }, + "self": { + "href": "https://api.github.com/repos/education/GitHubGraduation-2021/pulls/8" + }, + "statuses": { + "href": "https://api.github.com/repos/education/GitHubGraduation-2021/statuses/beefd36c45c6259948476fee4c7234a8b112a888" + } + }, + "active_lock_reason": null, + "additions": 6, + "assignee": null, + "assignees": [], + "author_association": "COLLABORATOR", + "auto_merge": null, + "base": { + "label": "education:main", + "ref": "main", + "repo": { + "allow_merge_commit": true, + "allow_rebase_merge": false, + "allow_squash_merge": false, + "archive_url": "https://api.github.com/repos/education/GitHubGraduation-2021/{archive_format}{/ref}", + "archived": false, + "assignees_url": "https://api.github.com/repos/education/GitHubGraduation-2021/assignees{/user}", + "blobs_url": "https://api.github.com/repos/education/GitHubGraduation-2021/git/blobs{/sha}", + "branches_url": "https://api.github.com/repos/education/GitHubGraduation-2021/branches{/branch}", + "clone_url": "https://github.com/education/GitHubGraduation-2021.git", + "collaborators_url": "https://api.github.com/repos/education/GitHubGraduation-2021/collaborators{/collaborator}", + "comments_url": "https://api.github.com/repos/education/GitHubGraduation-2021/comments{/number}", + "commits_url": "https://api.github.com/repos/education/GitHubGraduation-2021/commits{/sha}", + "compare_url": "https://api.github.com/repos/education/GitHubGraduation-2021/compare/{base}...{head}", + "contents_url": "https://api.github.com/repos/education/GitHubGraduation-2021/contents/{+path}", + "contributors_url": "https://api.github.com/repos/education/GitHubGraduation-2021/contributors", + "created_at": "2021-04-22T19:11:09Z", + "default_branch": "main", + "delete_branch_on_merge": false, + "deployments_url": "https://api.github.com/repos/education/GitHubGraduation-2021/deployments", + "description": "Join the GitHub Graduation Yearbook and \"walk the stage\" on June 5.", + "disabled": false, + "downloads_url": "https://api.github.com/repos/education/GitHubGraduation-2021/downloads", + "events_url": "https://api.github.com/repos/education/GitHubGraduation-2021/events", + "fork": false, + "forks": 0, + "forks_count": 0, + "forks_url": "https://api.github.com/repos/education/GitHubGraduation-2021/forks", + "full_name": "education/GitHubGraduation-2021", + "git_commits_url": "https://api.github.com/repos/education/GitHubGraduation-2021/git/commits{/sha}", + "git_refs_url": "https://api.github.com/repos/education/GitHubGraduation-2021/git/refs{/sha}", + "git_tags_url": "https://api.github.com/repos/education/GitHubGraduation-2021/git/tags{/sha}", + "git_url": "git://github.com/education/GitHubGraduation-2021.git", + "has_downloads": true, + "has_issues": true, + "has_pages": false, + "has_projects": false, + "has_wiki": true, + "homepage": "", + "hooks_url": "https://api.github.com/repos/education/GitHubGraduation-2021/hooks", + "html_url": "https://github.com/education/GitHubGraduation-2021", + "id": 360655524, + "issue_comment_url": "https://api.github.com/repos/education/GitHubGraduation-2021/issues/comments{/number}", + "issue_events_url": "https://api.github.com/repos/education/GitHubGraduation-2021/issues/events{/number}", + "issues_url": "https://api.github.com/repos/education/GitHubGraduation-2021/issues{/number}", + "keys_url": "https://api.github.com/repos/education/GitHubGraduation-2021/keys{/key_id}", + "labels_url": "https://api.github.com/repos/education/GitHubGraduation-2021/labels{/name}", + "language": "JavaScript", + "languages_url": "https://api.github.com/repos/education/GitHubGraduation-2021/languages", + "license": null, + "merges_url": "https://api.github.com/repos/education/GitHubGraduation-2021/merges", + "milestones_url": "https://api.github.com/repos/education/GitHubGraduation-2021/milestones{/number}", + "mirror_url": null, + "name": "GitHubGraduation-2021", + "node_id": "MDEwOlJlcG9zaXRvcnkzNjA2NTU1MjQ=", + "notifications_url": "https://api.github.com/repos/education/GitHubGraduation-2021/notifications{?since,all,participating}", + "open_issues": 5, + "open_issues_count": 5, + "owner": { + "avatar_url": "https://avatars.githubusercontent.com/u/6667880?v=4", + "events_url": "https://api.github.com/users/education/events{/privacy}", + "followers_url": "https://api.github.com/users/education/followers", + "following_url": "https://api.github.com/users/education/following{/other_user}", + "gists_url": "https://api.github.com/users/education/gists{/gist_id}", + "gravatar_id": "", + "html_url": "https://github.com/education", + "id": 6667880, + "login": "education", + "node_id": "MDEyOk9yZ2FuaXphdGlvbjY2Njc4ODA=", + "organizations_url": "https://api.github.com/users/education/orgs", + "received_events_url": "https://api.github.com/users/education/received_events", + "repos_url": "https://api.github.com/users/education/repos", + "site_admin": false, + "starred_url": "https://api.github.com/users/education/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/education/subscriptions", + "type": "Organization", + "url": "https://api.github.com/users/education" + }, + "private": true, + "pulls_url": "https://api.github.com/repos/education/GitHubGraduation-2021/pulls{/number}", + "pushed_at": "2021-05-10T23:46:52Z", + "releases_url": "https://api.github.com/repos/education/GitHubGraduation-2021/releases{/id}", + "size": 1443, + "ssh_url": "git@github.com:education/GitHubGraduation-2021.git", + "stargazers_count": 0, + "stargazers_url": "https://api.github.com/repos/education/GitHubGraduation-2021/stargazers", + "statuses_url": "https://api.github.com/repos/education/GitHubGraduation-2021/statuses/{sha}", + "subscribers_url": "https://api.github.com/repos/education/GitHubGraduation-2021/subscribers", + "subscription_url": "https://api.github.com/repos/education/GitHubGraduation-2021/subscription", + "svn_url": "https://github.com/education/GitHubGraduation-2021", + "tags_url": "https://api.github.com/repos/education/GitHubGraduation-2021/tags", + "teams_url": "https://api.github.com/repos/education/GitHubGraduation-2021/teams", + "trees_url": "https://api.github.com/repos/education/GitHubGraduation-2021/git/trees{/sha}", + "updated_at": "2021-05-10T23:46:54Z", + "url": "https://api.github.com/repos/education/GitHubGraduation-2021", + "watchers": 0, + "watchers_count": 0 + }, + "sha": "9c139b7dd2eb421a3274b8565f5583749234df56", + "user": { + "avatar_url": "https://avatars.githubusercontent.com/u/6667880?v=4", + "events_url": "https://api.github.com/users/education/events{/privacy}", + "followers_url": "https://api.github.com/users/education/followers", + "following_url": "https://api.github.com/users/education/following{/other_user}", + "gists_url": "https://api.github.com/users/education/gists{/gist_id}", + "gravatar_id": "", + "html_url": "https://github.com/education", + "id": 6667880, + "login": "education", + "node_id": "MDEyOk9yZ2FuaXphdGlvbjY2Njc4ODA=", + "organizations_url": "https://api.github.com/users/education/orgs", + "received_events_url": "https://api.github.com/users/education/received_events", + "repos_url": "https://api.github.com/users/education/repos", + "site_admin": false, + "starred_url": "https://api.github.com/users/education/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/education/subscriptions", + "type": "Organization", + "url": "https://api.github.com/users/education" + } + }, + "body": "# Application to the Class of 2021🎓\r\n\r\nThis pull request template helps you complete an application to the **Class of 2021**. Use the checklist below to verify you have followed the instructions correctly. \r\n\r\n## Checklist ✅\r\n\r\n- [X] I have read the instructions on the README file before submitting my application. \r\n- [X] I made my submission by creating a folder on the `_data` folder and followed the naming convention mentioned in the instructions (``) and markdown file.\r\n- [X] I have submitted a [swag shipping form](https://airtable.com/shrM5IigBuRFaj33H).\r\n- [X] I have used the Markdown file template to add my information to the Year Book.\r\n- [X] I understand that a reviewer will merge my pull request after examining it or ask for changes in case needed.\r\n- [X] I understand I should not tag or add a reviewer to this Pull Request.\r\n- [X] I have [added the event](http://www.google.com/calendar/event?action=TEMPLATE&dates=20210605T160000Z%2F20210605T173000Z&text=GitHub%20Graduation%20%F0%9F%8E%93&location=https%3A%2F%2Fwww.twitch.tv%2Fgithubeducation&details=) to my Calendar.\r\n\r\n", + "changed_files": 1, + "closed_at": null, + "comments": 0, + "comments_url": "https://api.github.com/repos/education/GitHubGraduation-2021/issues/8/comments", + "commits": 1, + "commits_url": "https://api.github.com/repos/education/GitHubGraduation-2021/pulls/8/commits", + "created_at": "2021-05-10T21:04:55Z", + "deletions": 0, + "diff_url": "https://github.com/education/GitHubGraduation-2021/pull/8.diff", + "draft": false, + "head": { + "label": "education:elise-graduation", + "ref": "elise-graduation", + "repo": { + "allow_merge_commit": true, + "allow_rebase_merge": false, + "allow_squash_merge": false, + "archive_url": "https://api.github.com/repos/education/GitHubGraduation-2021/{archive_format}{/ref}", + "archived": false, + "assignees_url": "https://api.github.com/repos/education/GitHubGraduation-2021/assignees{/user}", + "blobs_url": "https://api.github.com/repos/education/GitHubGraduation-2021/git/blobs{/sha}", + "branches_url": "https://api.github.com/repos/education/GitHubGraduation-2021/branches{/branch}", + "clone_url": "https://github.com/education/GitHubGraduation-2021.git", + "collaborators_url": "https://api.github.com/repos/education/GitHubGraduation-2021/collaborators{/collaborator}", + "comments_url": "https://api.github.com/repos/education/GitHubGraduation-2021/comments{/number}", + "commits_url": "https://api.github.com/repos/education/GitHubGraduation-2021/commits{/sha}", + "compare_url": "https://api.github.com/repos/education/GitHubGraduation-2021/compare/{base}...{head}", + "contents_url": "https://api.github.com/repos/education/GitHubGraduation-2021/contents/{+path}", + "contributors_url": "https://api.github.com/repos/education/GitHubGraduation-2021/contributors", + "created_at": "2021-04-22T19:11:09Z", + "default_branch": "main", + "delete_branch_on_merge": false, + "deployments_url": "https://api.github.com/repos/education/GitHubGraduation-2021/deployments", + "description": "Join the GitHub Graduation Yearbook and \"walk the stage\" on June 5.", + "disabled": false, + "downloads_url": "https://api.github.com/repos/education/GitHubGraduation-2021/downloads", + "events_url": "https://api.github.com/repos/education/GitHubGraduation-2021/events", + "fork": false, + "forks": 0, + "forks_count": 0, + "forks_url": "https://api.github.com/repos/education/GitHubGraduation-2021/forks", + "full_name": "education/GitHubGraduation-2021", + "git_commits_url": "https://api.github.com/repos/education/GitHubGraduation-2021/git/commits{/sha}", + "git_refs_url": "https://api.github.com/repos/education/GitHubGraduation-2021/git/refs{/sha}", + "git_tags_url": "https://api.github.com/repos/education/GitHubGraduation-2021/git/tags{/sha}", + "git_url": "git://github.com/education/GitHubGraduation-2021.git", + "has_downloads": true, + "has_issues": true, + "has_pages": false, + "has_projects": false, + "has_wiki": true, + "homepage": "", + "hooks_url": "https://api.github.com/repos/education/GitHubGraduation-2021/hooks", + "html_url": "https://github.com/education/GitHubGraduation-2021", + "id": 360655524, + "issue_comment_url": "https://api.github.com/repos/education/GitHubGraduation-2021/issues/comments{/number}", + "issue_events_url": "https://api.github.com/repos/education/GitHubGraduation-2021/issues/events{/number}", + "issues_url": "https://api.github.com/repos/education/GitHubGraduation-2021/issues{/number}", + "keys_url": "https://api.github.com/repos/education/GitHubGraduation-2021/keys{/key_id}", + "labels_url": "https://api.github.com/repos/education/GitHubGraduation-2021/labels{/name}", + "language": "JavaScript", + "languages_url": "https://api.github.com/repos/education/GitHubGraduation-2021/languages", + "license": null, + "merges_url": "https://api.github.com/repos/education/GitHubGraduation-2021/merges", + "milestones_url": "https://api.github.com/repos/education/GitHubGraduation-2021/milestones{/number}", + "mirror_url": null, + "name": "GitHubGraduation-2021", + "node_id": "MDEwOlJlcG9zaXRvcnkzNjA2NTU1MjQ=", + "notifications_url": "https://api.github.com/repos/education/GitHubGraduation-2021/notifications{?since,all,participating}", + "open_issues": 5, + "open_issues_count": 5, + "owner": { + "avatar_url": "https://avatars.githubusercontent.com/u/6667880?v=4", + "events_url": "https://api.github.com/users/education/events{/privacy}", + "followers_url": "https://api.github.com/users/education/followers", + "following_url": "https://api.github.com/users/education/following{/other_user}", + "gists_url": "https://api.github.com/users/education/gists{/gist_id}", + "gravatar_id": "", + "html_url": "https://github.com/education", + "id": 6667880, + "login": "education", + "node_id": "MDEyOk9yZ2FuaXphdGlvbjY2Njc4ODA=", + "organizations_url": "https://api.github.com/users/education/orgs", + "received_events_url": "https://api.github.com/users/education/received_events", + "repos_url": "https://api.github.com/users/education/repos", + "site_admin": false, + "starred_url": "https://api.github.com/users/education/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/education/subscriptions", + "type": "Organization", + "url": "https://api.github.com/users/education" + }, + "private": true, + "pulls_url": "https://api.github.com/repos/education/GitHubGraduation-2021/pulls{/number}", + "pushed_at": "2021-05-10T23:46:52Z", + "releases_url": "https://api.github.com/repos/education/GitHubGraduation-2021/releases{/id}", + "size": 1443, + "ssh_url": "git@github.com:education/GitHubGraduation-2021.git", + "stargazers_count": 0, + "stargazers_url": "https://api.github.com/repos/education/GitHubGraduation-2021/stargazers", + "statuses_url": "https://api.github.com/repos/education/GitHubGraduation-2021/statuses/{sha}", + "subscribers_url": "https://api.github.com/repos/education/GitHubGraduation-2021/subscribers", + "subscription_url": "https://api.github.com/repos/education/GitHubGraduation-2021/subscription", + "svn_url": "https://github.com/education/GitHubGraduation-2021", + "tags_url": "https://api.github.com/repos/education/GitHubGraduation-2021/tags", + "teams_url": "https://api.github.com/repos/education/GitHubGraduation-2021/teams", + "trees_url": "https://api.github.com/repos/education/GitHubGraduation-2021/git/trees{/sha}", + "updated_at": "2021-05-10T23:46:54Z", + "url": "https://api.github.com/repos/education/GitHubGraduation-2021", + "watchers": 0, + "watchers_count": 0 + }, + "sha": "beefd36c45c6259948476fee4c7234a8b112a888", + "user": { + "avatar_url": "https://avatars.githubusercontent.com/u/6667880?v=4", + "events_url": "https://api.github.com/users/education/events{/privacy}", + "followers_url": "https://api.github.com/users/education/followers", + "following_url": "https://api.github.com/users/education/following{/other_user}", + "gists_url": "https://api.github.com/users/education/gists{/gist_id}", + "gravatar_id": "", + "html_url": "https://github.com/education", + "id": 6667880, + "login": "education", + "node_id": "MDEyOk9yZ2FuaXphdGlvbjY2Njc4ODA=", + "organizations_url": "https://api.github.com/users/education/orgs", + "received_events_url": "https://api.github.com/users/education/received_events", + "repos_url": "https://api.github.com/users/education/repos", + "site_admin": false, + "starred_url": "https://api.github.com/users/education/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/education/subscriptions", + "type": "Organization", + "url": "https://api.github.com/users/education" + } + }, + "html_url": "https://github.com/education/GitHubGraduation-2021/pull/8", + "id": 638447500, + "issue_url": "https://api.github.com/repos/education/GitHubGraduation-2021/issues/8", + "labels": [], + "locked": false, + "maintainer_can_modify": false, + "merge_commit_sha": "b50000b220a69f6334721f0791774aa44e893d38", + "mergeable": true, + "mergeable_state": "clean", + "merged": false, + "merged_at": null, + "merged_by": null, + "milestone": null, + "node_id": "MDExOlB1bGxSZXF1ZXN0NjM4NDQ3NTAw", + "number": 8, + "patch_url": "https://github.com/education/GitHubGraduation-2021/pull/8.patch", + "rebaseable": true, + "requested_reviewers": [ + { + "avatar_url": "https://avatars.githubusercontent.com/u/83462995?v=4", + "events_url": "https://api.github.com/users/GitHub-Education-bot/events{/privacy}", + "followers_url": "https://api.github.com/users/GitHub-Education-bot/followers", + "following_url": "https://api.github.com/users/GitHub-Education-bot/following{/other_user}", + "gists_url": "https://api.github.com/users/GitHub-Education-bot/gists{/gist_id}", + "gravatar_id": "", + "html_url": "https://github.com/GitHub-Education-bot", + "id": 83462995, + "login": "GitHub-Education-bot", + "node_id": "MDQ6VXNlcjgzNDYyOTk1", + "organizations_url": "https://api.github.com/users/GitHub-Education-bot/orgs", + "received_events_url": "https://api.github.com/users/GitHub-Education-bot/received_events", + "repos_url": "https://api.github.com/users/GitHub-Education-bot/repos", + "site_admin": false, + "starred_url": "https://api.github.com/users/GitHub-Education-bot/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/GitHub-Education-bot/subscriptions", + "type": "User", + "url": "https://api.github.com/users/GitHub-Education-bot" + } + ], + "requested_teams": [], + "review_comment_url": "https://api.github.com/repos/education/GitHubGraduation-2021/pulls/comments{/number}", + "review_comments": 0, + "review_comments_url": "https://api.github.com/repos/education/GitHubGraduation-2021/pulls/8/comments", + "state": "open", + "statuses_url": "https://api.github.com/repos/education/GitHubGraduation-2021/statuses/beefd36c45c6259948476fee4c7234a8b112a888", + "title": "add Elise to GitHub Graduation", + "updated_at": "2021-05-10T23:47:05Z", + "url": "https://api.github.com/repos/education/GitHubGraduation-2021/pulls/8", + "user": { + "avatar_url": "https://avatars.githubusercontent.com/u/6633808?v=4", + "events_url": "https://api.github.com/users/elisemoe/events{/privacy}", + "followers_url": "https://api.github.com/users/elisemoe/followers", + "following_url": "https://api.github.com/users/elisemoe/following{/other_user}", + "gists_url": "https://api.github.com/users/elisemoe/gists{/gist_id}", + "gravatar_id": "", + "html_url": "https://github.com/elisemoe", + "id": 6633808, + "login": "elisemoe", + "node_id": "MDQ6VXNlcjY2MzM4MDg=", + "organizations_url": "https://api.github.com/users/elisemoe/orgs", + "received_events_url": "https://api.github.com/users/elisemoe/received_events", + "repos_url": "https://api.github.com/users/elisemoe/repos", + "site_admin": true, + "starred_url": "https://api.github.com/users/elisemoe/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/elisemoe/subscriptions", + "type": "User", + "url": "https://api.github.com/users/elisemoe" + } + }, + "repository": { + "archive_url": "https://api.github.com/repos/education/GitHubGraduation-2021/{archive_format}{/ref}", + "archived": false, + "assignees_url": "https://api.github.com/repos/education/GitHubGraduation-2021/assignees{/user}", + "blobs_url": "https://api.github.com/repos/education/GitHubGraduation-2021/git/blobs{/sha}", + "branches_url": "https://api.github.com/repos/education/GitHubGraduation-2021/branches{/branch}", + "clone_url": "https://github.com/education/GitHubGraduation-2021.git", + "collaborators_url": "https://api.github.com/repos/education/GitHubGraduation-2021/collaborators{/collaborator}", + "comments_url": "https://api.github.com/repos/education/GitHubGraduation-2021/comments{/number}", + "commits_url": "https://api.github.com/repos/education/GitHubGraduation-2021/commits{/sha}", + "compare_url": "https://api.github.com/repos/education/GitHubGraduation-2021/compare/{base}...{head}", + "contents_url": "https://api.github.com/repos/education/GitHubGraduation-2021/contents/{+path}", + "contributors_url": "https://api.github.com/repos/education/GitHubGraduation-2021/contributors", + "created_at": "2021-04-22T19:11:09Z", + "default_branch": "main", + "deployments_url": "https://api.github.com/repos/education/GitHubGraduation-2021/deployments", + "description": "Join the GitHub Graduation Yearbook and \"walk the stage\" on June 5.", + "disabled": false, + "downloads_url": "https://api.github.com/repos/education/GitHubGraduation-2021/downloads", + "events_url": "https://api.github.com/repos/education/GitHubGraduation-2021/events", + "fork": false, + "forks": 0, + "forks_count": 0, + "forks_url": "https://api.github.com/repos/education/GitHubGraduation-2021/forks", + "full_name": "education/GitHubGraduation-2021", + "git_commits_url": "https://api.github.com/repos/education/GitHubGraduation-2021/git/commits{/sha}", + "git_refs_url": "https://api.github.com/repos/education/GitHubGraduation-2021/git/refs{/sha}", + "git_tags_url": "https://api.github.com/repos/education/GitHubGraduation-2021/git/tags{/sha}", + "git_url": "git://github.com/education/GitHubGraduation-2021.git", + "has_downloads": true, + "has_issues": true, + "has_pages": false, + "has_projects": false, + "has_wiki": true, + "homepage": "", + "hooks_url": "https://api.github.com/repos/education/GitHubGraduation-2021/hooks", + "html_url": "https://github.com/education/GitHubGraduation-2021", + "id": 360655524, + "issue_comment_url": "https://api.github.com/repos/education/GitHubGraduation-2021/issues/comments{/number}", + "issue_events_url": "https://api.github.com/repos/education/GitHubGraduation-2021/issues/events{/number}", + "issues_url": "https://api.github.com/repos/education/GitHubGraduation-2021/issues{/number}", + "keys_url": "https://api.github.com/repos/education/GitHubGraduation-2021/keys{/key_id}", + "labels_url": "https://api.github.com/repos/education/GitHubGraduation-2021/labels{/name}", + "language": "JavaScript", + "languages_url": "https://api.github.com/repos/education/GitHubGraduation-2021/languages", + "license": null, + "merges_url": "https://api.github.com/repos/education/GitHubGraduation-2021/merges", + "milestones_url": "https://api.github.com/repos/education/GitHubGraduation-2021/milestones{/number}", + "mirror_url": null, + "name": "GitHubGraduation-2021", + "node_id": "MDEwOlJlcG9zaXRvcnkzNjA2NTU1MjQ=", + "notifications_url": "https://api.github.com/repos/education/GitHubGraduation-2021/notifications{?since,all,participating}", + "open_issues": 5, + "open_issues_count": 5, + "owner": { + "avatar_url": "https://avatars.githubusercontent.com/u/6667880?v=4", + "events_url": "https://api.github.com/users/education/events{/privacy}", + "followers_url": "https://api.github.com/users/education/followers", + "following_url": "https://api.github.com/users/education/following{/other_user}", + "gists_url": "https://api.github.com/users/education/gists{/gist_id}", + "gravatar_id": "", + "html_url": "https://github.com/education", + "id": 6667880, + "login": "education", + "node_id": "MDEyOk9yZ2FuaXphdGlvbjY2Njc4ODA=", + "organizations_url": "https://api.github.com/users/education/orgs", + "received_events_url": "https://api.github.com/users/education/received_events", + "repos_url": "https://api.github.com/users/education/repos", + "site_admin": false, + "starred_url": "https://api.github.com/users/education/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/education/subscriptions", + "type": "Organization", + "url": "https://api.github.com/users/education" + }, + "private": true, + "pulls_url": "https://api.github.com/repos/education/GitHubGraduation-2021/pulls{/number}", + "pushed_at": "2021-05-10T23:46:52Z", + "releases_url": "https://api.github.com/repos/education/GitHubGraduation-2021/releases{/id}", + "size": 1443, + "ssh_url": "git@github.com:education/GitHubGraduation-2021.git", + "stargazers_count": 0, + "stargazers_url": "https://api.github.com/repos/education/GitHubGraduation-2021/stargazers", + "statuses_url": "https://api.github.com/repos/education/GitHubGraduation-2021/statuses/{sha}", + "subscribers_url": "https://api.github.com/repos/education/GitHubGraduation-2021/subscribers", + "subscription_url": "https://api.github.com/repos/education/GitHubGraduation-2021/subscription", + "svn_url": "https://github.com/education/GitHubGraduation-2021", + "tags_url": "https://api.github.com/repos/education/GitHubGraduation-2021/tags", + "teams_url": "https://api.github.com/repos/education/GitHubGraduation-2021/teams", + "trees_url": "https://api.github.com/repos/education/GitHubGraduation-2021/git/trees{/sha}", + "updated_at": "2021-05-10T23:46:54Z", + "url": "https://api.github.com/repos/education/GitHubGraduation-2021", + "watchers": 0, + "watchers_count": 0 + }, + "requested_reviewer": { + "avatar_url": "https://avatars.githubusercontent.com/u/83462995?v=4", + "events_url": "https://api.github.com/users/GitHub-Education-bot/events{/privacy}", + "followers_url": "https://api.github.com/users/GitHub-Education-bot/followers", + "following_url": "https://api.github.com/users/GitHub-Education-bot/following{/other_user}", + "gists_url": "https://api.github.com/users/GitHub-Education-bot/gists{/gist_id}", + "gravatar_id": "", + "html_url": "https://github.com/GitHub-Education-bot", + "id": 83462995, + "login": "GitHub-Education-bot", + "node_id": "MDQ6VXNlcjgzNDYyOTk1", + "organizations_url": "https://api.github.com/users/GitHub-Education-bot/orgs", + "received_events_url": "https://api.github.com/users/GitHub-Education-bot/received_events", + "repos_url": "https://api.github.com/users/GitHub-Education-bot/repos", + "site_admin": false, + "starred_url": "https://api.github.com/users/GitHub-Education-bot/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/GitHub-Education-bot/subscriptions", + "type": "User", + "url": "https://api.github.com/users/GitHub-Education-bot" + }, + "sender": { + "avatar_url": "https://avatars.githubusercontent.com/u/599521?v=4", + "events_url": "https://api.github.com/users/renz45/events{/privacy}", + "followers_url": "https://api.github.com/users/renz45/followers", + "following_url": "https://api.github.com/users/renz45/following{/other_user}", + "gists_url": "https://api.github.com/users/renz45/gists{/gist_id}", + "gravatar_id": "", + "html_url": "https://github.com/renz45", + "id": 599521, + "login": "renz45", + "node_id": "MDQ6VXNlcjU5OTUyMQ==", + "organizations_url": "https://api.github.com/users/renz45/orgs", + "received_events_url": "https://api.github.com/users/renz45/received_events", + "repos_url": "https://api.github.com/users/renz45/repos", + "site_admin": true, + "starred_url": "https://api.github.com/users/renz45/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/renz45/subscriptions", + "type": "User", + "url": "https://api.github.com/users/renz45" + } +} diff --git a/.github/workflows/src/index.js b/.github/workflows/src/index.js index cf1e5f41..0095da8b 100644 --- a/.github/workflows/src/index.js +++ b/.github/workflows/src/index.js @@ -182,7 +182,8 @@ ${ feedBackMessage } } if(feedback.length) { - throw new Error(feedback.join('\n')) + console.log(feedback.join('\n')) + process.exit } } })() -- knotmirror 0.0.1 From 24d604cd51d433a1ec468983d800e4d3b76a2886 Mon Sep 17 00:00:00 2001 From: Adam Rensel Date: Tue, 11 May 2021 00:17:29 -0400 Subject: [PATCH 43/68] logging --- .github/workflows/src/app/airtable.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/src/app/airtable.js b/.github/workflows/src/app/airtable.js index 383a301d..bbf07f5a 100644 --- a/.github/workflows/src/app/airtable.js +++ b/.github/workflows/src/app/airtable.js @@ -17,6 +17,7 @@ try { cachedJson = fs.readFileSync('./app/data/airtable.json"', 'utf8') cachedData = JSON.parse(json) } catch(err) { + console.log("Failed to parse cache") // noop } @@ -28,6 +29,7 @@ class ATable { userParticipated2020(githubLogin) { const cachedData = this.fetchFromCache(githubLogin, GRADUATES_2020) + if(cachedData) { console.log("found cached 2020 data") return new Promise(cachedData) -- knotmirror 0.0.1 From eeb816ba2160a0ae449c39415bb9e7d6131ffad7 Mon Sep 17 00:00:00 2001 From: Adam Rensel Date: Tue, 11 May 2021 00:20:46 -0400 Subject: [PATCH 44/68] Logging --- .github/workflows/src/app/airtable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/src/app/airtable.js b/.github/workflows/src/app/airtable.js index bbf07f5a..af01e844 100644 --- a/.github/workflows/src/app/airtable.js +++ b/.github/workflows/src/app/airtable.js @@ -17,7 +17,7 @@ try { cachedJson = fs.readFileSync('./app/data/airtable.json"', 'utf8') cachedData = JSON.parse(json) } catch(err) { - console.log("Failed to parse cache") + console.log("Failed to parse cache", err) // noop } -- knotmirror 0.0.1 From b4807fd57acf2308f4cfa36b2876e0b2492c021c Mon Sep 17 00:00:00 2001 From: Adam Rensel Date: Tue, 11 May 2021 00:23:32 -0400 Subject: [PATCH 45/68] Absolute paths go --- .github/workflows/src/app/airtable.js | 2 +- .github/workflows/src/app/fetch-data.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/src/app/airtable.js b/.github/workflows/src/app/airtable.js index af01e844..55738ff3 100644 --- a/.github/workflows/src/app/airtable.js +++ b/.github/workflows/src/app/airtable.js @@ -14,7 +14,7 @@ let cachedJson let cachedData = {} try { - cachedJson = fs.readFileSync('./app/data/airtable.json"', 'utf8') + cachedJson = fs.readFileSync('/home/runner/work/GitHubGraduation-2021/GitHubGraduation-2021/.github/workflows/src/app/data/airtable.json"', 'utf8') cachedData = JSON.parse(json) } catch(err) { console.log("Failed to parse cache", err) diff --git a/.github/workflows/src/app/fetch-data.js b/.github/workflows/src/app/fetch-data.js index 50fbb007..7e996456 100644 --- a/.github/workflows/src/app/fetch-data.js +++ b/.github/workflows/src/app/fetch-data.js @@ -6,7 +6,7 @@ const fs = require('fs') const grad2021 = await airtable.fetchAll2021() const content = JSON.stringify({grad2020, grad2021}) - fs.writeFile('./app/data/airtable.json', content, err => { + fs.writeFile('/home/runner/work/GitHubGraduation-2021/GitHubGraduation-2021/.github/workflows/src/app/data/airtable.json', content, err => { if (err) { console.error(err) process.exit(1) -- knotmirror 0.0.1 From fc4f1094120817cc451ad6fe9cabb8995c37be1e Mon Sep 17 00:00:00 2001 From: Adam Rensel Date: Tue, 11 May 2021 00:26:16 -0400 Subject: [PATCH 46/68] Alt --- .github/workflows/src/app/airtable.js | 2 +- .github/workflows/src/app/fetch-data.js | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/src/app/airtable.js b/.github/workflows/src/app/airtable.js index 55738ff3..af01e844 100644 --- a/.github/workflows/src/app/airtable.js +++ b/.github/workflows/src/app/airtable.js @@ -14,7 +14,7 @@ let cachedJson let cachedData = {} try { - cachedJson = fs.readFileSync('/home/runner/work/GitHubGraduation-2021/GitHubGraduation-2021/.github/workflows/src/app/data/airtable.json"', 'utf8') + cachedJson = fs.readFileSync('./app/data/airtable.json"', 'utf8') cachedData = JSON.parse(json) } catch(err) { console.log("Failed to parse cache", err) diff --git a/.github/workflows/src/app/fetch-data.js b/.github/workflows/src/app/fetch-data.js index 7e996456..1ae1163b 100644 --- a/.github/workflows/src/app/fetch-data.js +++ b/.github/workflows/src/app/fetch-data.js @@ -6,10 +6,5 @@ const fs = require('fs') const grad2021 = await airtable.fetchAll2021() const content = JSON.stringify({grad2020, grad2021}) - fs.writeFile('/home/runner/work/GitHubGraduation-2021/GitHubGraduation-2021/.github/workflows/src/app/data/airtable.json', content, err => { - if (err) { - console.error(err) - process.exit(1) - } - }) + fs.writeFileSync('./app/data/airtable.json', content) })() -- knotmirror 0.0.1 From 48b562ab461c50b8c5888bb887abef3c7545a67e Mon Sep 17 00:00:00 2001 From: Adam Rensel Date: Tue, 11 May 2021 00:28:34 -0400 Subject: [PATCH 47/68] Add empty airtable.json --- .github/workflows/src/app/data/airtable.json | 1 + 1 file changed, 1 insertion(+) create mode 100644 .github/workflows/src/app/data/airtable.json diff --git a/.github/workflows/src/app/data/airtable.json b/.github/workflows/src/app/data/airtable.json new file mode 100644 index 00000000..0967ef42 --- /dev/null +++ b/.github/workflows/src/app/data/airtable.json @@ -0,0 +1 @@ +{} -- knotmirror 0.0.1 From cbf8acb0bf0e9a29cbe6fa05471723367ea3e10a Mon Sep 17 00:00:00 2001 From: Adam Rensel Date: Tue, 11 May 2021 00:30:21 -0400 Subject: [PATCH 48/68] Logging --- .github/workflows/src/app/fetch-data.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/src/app/fetch-data.js b/.github/workflows/src/app/fetch-data.js index 1ae1163b..22e08241 100644 --- a/.github/workflows/src/app/fetch-data.js +++ b/.github/workflows/src/app/fetch-data.js @@ -5,6 +5,6 @@ const fs = require('fs') const grad2020 = await airtable.fetchAll2020() const grad2021 = await airtable.fetchAll2021() const content = JSON.stringify({grad2020, grad2021}) - + console.log(fs.dir) fs.writeFileSync('./app/data/airtable.json', content) })() -- knotmirror 0.0.1 From f08455b8cc4daea3c220f681fa6f3b178efc6e2d Mon Sep 17 00:00:00 2001 From: Adam Rensel Date: Tue, 11 May 2021 00:35:18 -0400 Subject: [PATCH 49/68] path --- .github/workflows/src/app/airtable.js | 3 +-- .github/workflows/src/app/fetch-data.js | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/src/app/airtable.js b/.github/workflows/src/app/airtable.js index af01e844..bc87e828 100644 --- a/.github/workflows/src/app/airtable.js +++ b/.github/workflows/src/app/airtable.js @@ -14,11 +14,10 @@ let cachedJson let cachedData = {} try { - cachedJson = fs.readFileSync('./app/data/airtable.json"', 'utf8') + cachedJson = fs.readFileSync('./data/airtable.json"', 'utf8') cachedData = JSON.parse(json) } catch(err) { console.log("Failed to parse cache", err) - // noop } diff --git a/.github/workflows/src/app/fetch-data.js b/.github/workflows/src/app/fetch-data.js index 22e08241..1ae1163b 100644 --- a/.github/workflows/src/app/fetch-data.js +++ b/.github/workflows/src/app/fetch-data.js @@ -5,6 +5,6 @@ const fs = require('fs') const grad2020 = await airtable.fetchAll2020() const grad2021 = await airtable.fetchAll2021() const content = JSON.stringify({grad2020, grad2021}) - console.log(fs.dir) + fs.writeFileSync('./app/data/airtable.json', content) })() -- knotmirror 0.0.1 From d16317748809e032c0ed71a5009939b65707cb2a Mon Sep 17 00:00:00 2001 From: Adam Rensel Date: Tue, 11 May 2021 09:57:49 -0400 Subject: [PATCH 50/68] disable airtable caching for now --- .github/workflows/main.yml | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 89484947..a4de3111 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -36,25 +36,25 @@ jobs: - name: Install dependencies if: steps.cachemodules.outputs.cache-hit != 'true' run: npm install - - name: Get Minute - id: getminute - run: echo "::set-output name=minute::$(date -u '+%M')" - shell: bash # For Windows, Linux and macOS default to bash alrea - - name: Cache data - id: cache-data - uses: actions/cache@v2 - with: - path: .github/workflows/src/app/data - key: ${{ runner.OS }}-${{ steps.getminute.outputs.minute }} # cache for 1 minute - - name: Cache Airtable - if: steps.cache-data.outputs.cache-hit != 'true' - run: node app/fetch-data.js - env: - AIRTABLE_SECRET: ${{ secrets.AIRTABLE_SECRET }} - GH_SECRET: ${{ secrets.GH_SECRET }} - EDUCATION_WEB_KEY: ${{ secrets.EDUCATION_WEB_KEY }} - EDUCATION_WEB_SECRET: ${{ secrets.EDUCATION_WEB_SECRET }} - EDUCATION_WEB_API: ${{ secrets.EDUCATION_WEB_API }} + # - name: Get Minute + # id: getminute + # run: echo "::set-output name=minute::$(date -u '+%M')" + # shell: bash # For Windows, Linux and macOS default to bash alrea + # - name: Cache data + # id: cache-data + # uses: actions/cache@v2 + # with: + # path: .github/workflows/src/app/data + # key: ${{ runner.OS }}-${{ steps.getminute.outputs.minute }} # cache for 1 minute + # - name: Cache Airtable + # if: steps.cache-data.outputs.cache-hit != 'true' + # run: node app/fetch-data.js + # env: + # AIRTABLE_SECRET: ${{ secrets.AIRTABLE_SECRET }} + # GH_SECRET: ${{ secrets.GH_SECRET }} + # EDUCATION_WEB_KEY: ${{ secrets.EDUCATION_WEB_KEY }} + # EDUCATION_WEB_SECRET: ${{ secrets.EDUCATION_WEB_SECRET }} + # EDUCATION_WEB_API: ${{ secrets.EDUCATION_WEB_API }} - name: run entry point run: node index.js env: -- knotmirror 0.0.1 From 2c963ca7e6ffccd977a4ae8dc0c754a7e8c928d9 Mon Sep 17 00:00:00 2001 From: Adam Rensel Date: Tue, 11 May 2021 09:59:40 -0400 Subject: [PATCH 51/68] Rename vars --- .github/workflows/src/app/airtable.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/src/app/airtable.js b/.github/workflows/src/app/airtable.js index bc87e828..3849c007 100644 --- a/.github/workflows/src/app/airtable.js +++ b/.github/workflows/src/app/airtable.js @@ -27,21 +27,21 @@ class ATable { } userParticipated2020(githubLogin) { - const cachedData = this.fetchFromCache(githubLogin, GRADUATES_2020) + const data = this.fetchFromCache(githubLogin, GRADUATES_2020) - if(cachedData) { + if(data) { console.log("found cached 2020 data") - return new Promise(cachedData) + return new Promise(data) } return this.fetchGraduate(githubLogin, GRADUATES_2020) } fetch2021Graduate(githubLogin) { - const cachedData = this.fetchFromCache(githubLogin, GRADUATES_2021) - if(cachedData) { + const data = this.fetchFromCache(githubLogin, GRADUATES_2021) + if(data) { console.log("found cached 2021 data") - return new Promise(cachedData) + return new Promise(data) } return this.fetchGraduate(githubLogin, GRADUATES_2021) -- knotmirror 0.0.1 From e51478b63d7df0b53598262e8f75c18ddf420aef Mon Sep 17 00:00:00 2001 From: Adam Rensel Date: Tue, 11 May 2021 10:02:07 -0400 Subject: [PATCH 52/68] Exit with 1 if there are still issues --- .github/workflows/src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/src/index.js b/.github/workflows/src/index.js index 0095da8b..33406326 100644 --- a/.github/workflows/src/index.js +++ b/.github/workflows/src/index.js @@ -183,7 +183,7 @@ ${ feedBackMessage } if(feedback.length) { console.log(feedback.join('\n')) - process.exit + process.exit(1) } } })() -- knotmirror 0.0.1 From 9d4d4b9d53222c11ad54e3ace6efa5de5cb28dc3 Mon Sep 17 00:00:00 2001 From: Adam Rensel Date: Tue, 11 May 2021 10:24:31 -0400 Subject: [PATCH 53/68] logging --- .github/workflows/src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/src/index.js b/.github/workflows/src/index.js index 33406326..ef1ab57b 100644 --- a/.github/workflows/src/index.js +++ b/.github/workflows/src/index.js @@ -67,7 +67,7 @@ try { // Has the user completed the shipping form? (address must exist for the form to be submitted) const completedShippingForm = user2021?.get("Address Line 1").length > 0 - + console.log("2021: \n\n" + user2021) const fileNames = pull.files.edges.map((file)=>{ return file.node.path }) -- knotmirror 0.0.1 From fcf280cdf2e77d655c4435e744a1167a3e8721b9 Mon Sep 17 00:00:00 2001 From: Adam Rensel Date: Tue, 11 May 2021 10:26:07 -0400 Subject: [PATCH 54/68] Comment out caching code --- .github/workflows/src/app/airtable.js | 38 +++++++++++++-------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/.github/workflows/src/app/airtable.js b/.github/workflows/src/app/airtable.js index 3849c007..879884d5 100644 --- a/.github/workflows/src/app/airtable.js +++ b/.github/workflows/src/app/airtable.js @@ -10,15 +10,15 @@ const GITHUB_GRADUATION = "appnpTfSaHWAf964L" const GRADUATES_2020 = "Graduation 2020" const GRADUATES_2021 = "Graduation 2021" -let cachedJson -let cachedData = {} - -try { - cachedJson = fs.readFileSync('./data/airtable.json"', 'utf8') - cachedData = JSON.parse(json) -} catch(err) { - console.log("Failed to parse cache", err) -} +// let cachedJson +// let cachedData = {} + +// try { +// cachedJson = fs.readFileSync('./data/airtable.json"', 'utf8') +// cachedData = JSON.parse(json) +// } catch(err) { +// console.log("Failed to parse cache", err) +// } class ATable { @@ -27,22 +27,22 @@ class ATable { } userParticipated2020(githubLogin) { - const data = this.fetchFromCache(githubLogin, GRADUATES_2020) + // const data = this.fetchFromCache(githubLogin, GRADUATES_2020) - if(data) { - console.log("found cached 2020 data") - return new Promise(data) - } + // if(data) { + // console.log("found cached 2020 data") + // return new Promise(data) + // } return this.fetchGraduate(githubLogin, GRADUATES_2020) } fetch2021Graduate(githubLogin) { - const data = this.fetchFromCache(githubLogin, GRADUATES_2021) - if(data) { - console.log("found cached 2021 data") - return new Promise(data) - } + // const data = this.fetchFromCache(githubLogin, GRADUATES_2021) + // if(data) { + // console.log("found cached 2021 data") + // return new Promise(data) + // } return this.fetchGraduate(githubLogin, GRADUATES_2021) } -- knotmirror 0.0.1 From f46c2e3ccd21551aad2d72a6dac65204bea1e9af Mon Sep 17 00:00:00 2001 From: Adam Rensel Date: Tue, 11 May 2021 10:27:50 -0400 Subject: [PATCH 55/68] try different airtable value --- .github/workflows/src/app/airtable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/src/app/airtable.js b/.github/workflows/src/app/airtable.js index 879884d5..9c2fd0e7 100644 --- a/.github/workflows/src/app/airtable.js +++ b/.github/workflows/src/app/airtable.js @@ -6,7 +6,7 @@ Airtable.configure({ apiKey: process.env.AIRTABLE_SECRET }); -const GITHUB_GRADUATION = "appnpTfSaHWAf964L" +const GITHUB_GRADUATION = "bipux0j8oGEJuReSb" const GRADUATES_2020 = "Graduation 2020" const GRADUATES_2021 = "Graduation 2021" -- knotmirror 0.0.1 From 83735143057e8972123f64a00461801832c770a0 Mon Sep 17 00:00:00 2001 From: Adam Rensel Date: Tue, 11 May 2021 10:31:09 -0400 Subject: [PATCH 56/68] logging --- .github/workflows/src/app/airtable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/src/app/airtable.js b/.github/workflows/src/app/airtable.js index 9c2fd0e7..7f2c4cfa 100644 --- a/.github/workflows/src/app/airtable.js +++ b/.github/workflows/src/app/airtable.js @@ -117,7 +117,7 @@ class ATable { return; } }); - + console.log("ADATA: \n\n" + data) resolve(data[0]) }).catch((err)=>{ reject(err) -- knotmirror 0.0.1 From dde83b1e1414080a106dbfa2384cf6b171bc43ea Mon Sep 17 00:00:00 2001 From: Adam Rensel Date: Tue, 11 May 2021 10:34:21 -0400 Subject: [PATCH 57/68] logging --- .github/workflows/src/app/airtable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/src/app/airtable.js b/.github/workflows/src/app/airtable.js index 7f2c4cfa..899ec2c9 100644 --- a/.github/workflows/src/app/airtable.js +++ b/.github/workflows/src/app/airtable.js @@ -105,6 +105,7 @@ class ATable { // view: "Pending Reviews", // filterByFormula: `{GitHub Username} = '${}'` }).eachPage(function page(records, fetchNextPage) { + console.log("ADATA: \n\n" + records) // This function (`page`) will get called for each page of records. data = records }, function done(err) { @@ -117,7 +118,6 @@ class ATable { return; } }); - console.log("ADATA: \n\n" + data) resolve(data[0]) }).catch((err)=>{ reject(err) -- knotmirror 0.0.1 From 919bcc75d1f412f3acb5905f14a4bf6aa8b4ad1a Mon Sep 17 00:00:00 2001 From: Adam Rensel Date: Tue, 11 May 2021 10:43:36 -0400 Subject: [PATCH 58/68] Try another table id --- .github/workflows/src/app/airtable.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/src/app/airtable.js b/.github/workflows/src/app/airtable.js index 899ec2c9..c249cb21 100644 --- a/.github/workflows/src/app/airtable.js +++ b/.github/workflows/src/app/airtable.js @@ -6,7 +6,7 @@ Airtable.configure({ apiKey: process.env.AIRTABLE_SECRET }); -const GITHUB_GRADUATION = "bipux0j8oGEJuReSb" +const GITHUB_GRADUATION = "appnpTfSaHWAf964L" const GRADUATES_2020 = "Graduation 2020" const GRADUATES_2021 = "Graduation 2021" @@ -101,7 +101,7 @@ class ATable { airtable(table).select({ // Selecting the first 3 records in Pending Reviews: maxRecords: 1, - filterByFormula: `({GitHub Username} = '${githubLogin}')` + filterByFormula: `{GitHub Username} = '${githubLogin}'` // view: "Pending Reviews", // filterByFormula: `{GitHub Username} = '${}'` }).eachPage(function page(records, fetchNextPage) { -- knotmirror 0.0.1 From 08edf2a0018b046c411fec02e02fdd56f63b2382 Mon Sep 17 00:00:00 2001 From: Adam Rensel Date: Tue, 11 May 2021 10:45:36 -0400 Subject: [PATCH 59/68] logging --- .github/workflows/src/app/airtable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/src/app/airtable.js b/.github/workflows/src/app/airtable.js index c249cb21..3225197e 100644 --- a/.github/workflows/src/app/airtable.js +++ b/.github/workflows/src/app/airtable.js @@ -105,7 +105,7 @@ class ATable { // view: "Pending Reviews", // filterByFormula: `{GitHub Username} = '${}'` }).eachPage(function page(records, fetchNextPage) { - console.log("ADATA: \n\n" + records) + console.log("ADATA: \n\n" + JSON.stringify(records)) // This function (`page`) will get called for each page of records. data = records }, function done(err) { -- knotmirror 0.0.1 From 2c1774572659f9cdea12020faccdae90aebb7cdc Mon Sep 17 00:00:00 2001 From: Adam Rensel Date: Tue, 11 May 2021 10:50:35 -0400 Subject: [PATCH 60/68] Logging --- .github/workflows/src/app/airtable.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/src/app/airtable.js b/.github/workflows/src/app/airtable.js index 3225197e..69d56983 100644 --- a/.github/workflows/src/app/airtable.js +++ b/.github/workflows/src/app/airtable.js @@ -105,9 +105,10 @@ class ATable { // view: "Pending Reviews", // filterByFormula: `{GitHub Username} = '${}'` }).eachPage(function page(records, fetchNextPage) { - console.log("ADATA: \n\n" + JSON.stringify(records)) // This function (`page`) will get called for each page of records. - data = records + records.forEach(function(record) { + data.push(record.fields) + }); }, function done(err) { if (err) { if(err.error === "NOT_FOUND") { @@ -118,6 +119,7 @@ class ATable { return; } }); + console.log("ADATA: \n\n" + JSON.stringify(data)) resolve(data[0]) }).catch((err)=>{ reject(err) -- knotmirror 0.0.1 From 2d7477fbdeee76fae1eed003b07d264978a10ce1 Mon Sep 17 00:00:00 2001 From: Adam Rensel Date: Tue, 11 May 2021 11:06:23 -0400 Subject: [PATCH 61/68] Fix airtable --- .github/workflows/src/app/airtable.js | 9 ++++++--- .github/workflows/src/index.js | 5 ++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/src/app/airtable.js b/.github/workflows/src/app/airtable.js index 69d56983..717692f6 100644 --- a/.github/workflows/src/app/airtable.js +++ b/.github/workflows/src/app/airtable.js @@ -96,8 +96,8 @@ class ATable { fetchGraduate(githubLogin, table) { const airtable = Airtable.base(GITHUB_GRADUATION); + const data = [] return new Promise((resolve, reject)=>{ - const data = [] airtable(table).select({ // Selecting the first 3 records in Pending Reviews: maxRecords: 1, @@ -109,6 +109,8 @@ class ATable { records.forEach(function(record) { data.push(record.fields) }); + + fetchNextPage() }, function done(err) { if (err) { if(err.error === "NOT_FOUND") { @@ -118,9 +120,10 @@ class ATable { reject(err) return; } + + resolve(data[0]) }); - console.log("ADATA: \n\n" + JSON.stringify(data)) - resolve(data[0]) + }).catch((err)=>{ reject(err) }) diff --git a/.github/workflows/src/index.js b/.github/workflows/src/index.js index ef1ab57b..aa1895f2 100644 --- a/.github/workflows/src/index.js +++ b/.github/workflows/src/index.js @@ -66,8 +66,7 @@ try { const hasSdp = results[2] // Has the user completed the shipping form? (address must exist for the form to be submitted) - const completedShippingForm = user2021?.get("Address Line 1").length > 0 - console.log("2021: \n\n" + user2021) + const completedShippingForm = user2021 && user2021["Address Line 1"].length > 0 const fileNames = pull.files.edges.map((file)=>{ return file.node.path }) @@ -169,7 +168,7 @@ Feel free to re-request a review from me and I'll come back and take a look! } console.log(feedBackMessage) - + return try { await octokit.createReview(` **Hi ${ actionEvent.pullAuthor },** -- knotmirror 0.0.1 From be62178c8de3354089e6247ccb3fc6ceac775ef6 Mon Sep 17 00:00:00 2001 From: Adam Rensel Date: Tue, 11 May 2021 11:07:02 -0400 Subject: [PATCH 62/68] remove debug code --- .github/workflows/src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/src/index.js b/.github/workflows/src/index.js index aa1895f2..66f5dcdb 100644 --- a/.github/workflows/src/index.js +++ b/.github/workflows/src/index.js @@ -168,7 +168,7 @@ Feel free to re-request a review from me and I'll come back and take a look! } console.log(feedBackMessage) - return + try { await octokit.createReview(` **Hi ${ actionEvent.pullAuthor },** -- knotmirror 0.0.1 From e1d72bf5346cd411250bebb4eb52121cd107c9f6 Mon Sep 17 00:00:00 2001 From: Adam Rensel Date: Tue, 11 May 2021 11:11:37 -0400 Subject: [PATCH 63/68] coc fix --- .github/workflows/src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/src/index.js b/.github/workflows/src/index.js index 66f5dcdb..596baf2a 100644 --- a/.github/workflows/src/index.js +++ b/.github/workflows/src/index.js @@ -115,7 +115,7 @@ try { // - welcome and congrats // - merge PR - const userAgreesCoc = user2021?.get("Code of Conduct").length > 0 + const userAgreesCoc = user2021 && user2021["Code of Conduct"].length > 0 const feedback = [] if(user2020) { -- knotmirror 0.0.1 From fb4fa30f0f8f9c71f0528cbdf1b781d69f8e8ece Mon Sep 17 00:00:00 2001 From: Adam Rensel Date: Tue, 11 May 2021 11:13:57 -0400 Subject: [PATCH 64/68] Handle merge failing --- .github/workflows/src/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/src/index.js b/.github/workflows/src/index.js index 596baf2a..a7be3f18 100644 --- a/.github/workflows/src/index.js +++ b/.github/workflows/src/index.js @@ -164,6 +164,7 @@ Feel free to re-request a review from me and I'll come back and take a look! await octokit.mergePR() } catch(err) { feedBackMessage += "\n\n Uh Oh! I tried to merge this PR and something went wrong!" + feedback.push("merge failed") } } -- knotmirror 0.0.1 From 26de74830ab7681e4967b90b982db0893c625601 Mon Sep 17 00:00:00 2001 From: Adam Rensel Date: Tue, 11 May 2021 11:18:31 -0400 Subject: [PATCH 65/68] Just check if coc exists --- .github/workflows/src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/src/index.js b/.github/workflows/src/index.js index a7be3f18..fd6f7c2b 100644 --- a/.github/workflows/src/index.js +++ b/.github/workflows/src/index.js @@ -115,7 +115,7 @@ try { // - welcome and congrats // - merge PR - const userAgreesCoc = user2021 && user2021["Code of Conduct"].length > 0 + const userAgreesCoc = user2021 && user2021["Code of Conduct"] const feedback = [] if(user2020) { -- knotmirror 0.0.1 From 6dd17302890fd1ce2ad670b4026c81c8adbddd8f Mon Sep 17 00:00:00 2001 From: Adam Rensel Date: Tue, 11 May 2021 11:21:35 -0400 Subject: [PATCH 66/68] use correct handle --- _data/renz45/renz45.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_data/renz45/renz45.md b/_data/renz45/renz45.md index daeb9fe8..00cfe7a9 100644 --- a/_data/renz45/renz45.md +++ b/_data/renz45/renz45.md @@ -2,5 +2,5 @@ name: Adam institution: Mona University quote: "The home for all developers" -github_user: rensD +github_user: renz45 --- -- knotmirror 0.0.1 From fb17a34e2b85fed2e4b3fa248184e3f4af5f1f66 Mon Sep 17 00:00:00 2001 From: Adam Rensel Date: Tue, 11 May 2021 11:25:09 -0400 Subject: [PATCH 67/68] logging --- .github/workflows/src/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/src/index.js b/.github/workflows/src/index.js index fd6f7c2b..b08503db 100644 --- a/.github/workflows/src/index.js +++ b/.github/workflows/src/index.js @@ -163,6 +163,7 @@ Feel free to re-request a review from me and I'll come back and take a look! try { await octokit.mergePR() } catch(err) { + console.error(err) feedBackMessage += "\n\n Uh Oh! I tried to merge this PR and something went wrong!" feedback.push("merge failed") } -- knotmirror 0.0.1 From 1aca0926b19e34d2d62e3c56162c7e5c5eae0214 Mon Sep 17 00:00:00 2001 From: Adam Rensel Date: Tue, 11 May 2021 11:36:33 -0400 Subject: [PATCH 68/68] Try alternate merge request syntax --- .github/workflows/src/app/octokit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/src/app/octokit.js b/.github/workflows/src/app/octokit.js index 76337bb5..9836c75b 100644 --- a/.github/workflows/src/app/octokit.js +++ b/.github/workflows/src/app/octokit.js @@ -105,7 +105,7 @@ class Octo { } async mergePR() { - return await this.octokit.rest.pulls.merge({ + return await this.octokit.request('PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge', { owner: actionEvent.pullRepoOwner, repo: actionEvent.pullRepo.name, pull_number: actionEvent.pullNumber