Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Action to fetch repo data for publishing to the blog #3

Open
wants to merge 34 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
bf6697b
add workflow action
Aug 11, 2021
0778a30
add template for issues list
Aug 11, 2021
2e05dad
git shenannigans
Aug 11, 2021
f2d295a
Flat: latest data (2021-08-11T01:02:49.166Z)
flat-data Aug 11, 2021
2d19d52
add response processing
petronbot Aug 11, 2021
a58e3c5
i guess no subfolders in the workflows folder
petronbot Aug 11, 2021
e23c3d2
Flat: latest data (2021-08-11T01:27:24.536Z)
flat-data Aug 11, 2021
9e764b6
i guess no subfolders in the workflows folder
petronbot Aug 11, 2021
9066b90
Flat: latest data (2021-08-11T01:33:23.386Z)
flat-data Aug 11, 2021
bf87745
fiddle with the axios config
petronbot Aug 12, 2021
c61d87a
ignore pancake generated sass file
petronbot Aug 12, 2021
6b2fc65
remove dodgy Deno import
petronbot Aug 12, 2021
fd869f5
lol I'm so gonna squash this PR
petronbot Aug 12, 2021
38d8d00
what's deno anyway
petronbot Aug 12, 2021
8f6cebe
deno api changes
petronbot Aug 12, 2021
30387d4
oops
petronbot Aug 12, 2021
ec2df3e
i'm outta practice
petronbot Aug 12, 2021
f58d989
ok
petronbot Aug 12, 2021
edc9f0f
lol
petronbot Aug 12, 2021
4958658
jfc
petronbot Aug 12, 2021
380006b
debuggin postprocessing
petronbot Aug 12, 2021
3a2587e
save data file outside actions dir
petronbot Aug 12, 2021
1f7e1fb
Flat: latest data (2021-08-12T01:55:25.200Z)
flat-data Aug 12, 2021
60612c6
update postprocess file ref
petronbot Aug 12, 2021
22cd1e5
Flat: latest data (2021-08-12T01:57:59.047Z)
flat-data Aug 12, 2021
08c7fec
got it together
petronbot Aug 12, 2021
ea2b683
add new date filter
petronbot Aug 12, 2021
f761444
Flat: latest data (2021-08-12T04:26:48.863Z)
flat-data Aug 12, 2021
1096de7
fix typo
petronbot Aug 12, 2021
64c377f
line ending
petronbot Aug 12, 2021
25dfcae
apostrphes
petronbot Aug 12, 2021
0809094
remove unused data file
petronbot Aug 12, 2021
d8effb0
line ending
petronbot Aug 12, 2021
4ac008a
name change
petronbot Aug 12, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
i'm outta practice
  • Loading branch information
petronbot committed Aug 12, 2021
commit ec2df3e57b7281d90292ac936444d8c58f5a9910
9 changes: 6 additions & 3 deletions .github/workflows/repo-data-response.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
const decoder = new TextDecoder("utf-8");
const textDecoder = new TextDecoder("utf-8");
let json;

try {
json = await Deno.readFile(".github/workflows/repo-data-response.json");
json = decoder.decode(json);
json = textDecoder.decode(json);
} catch (error) {
console.log("There was an error parsing the JSON response:", error);
}
Expand All @@ -15,7 +15,10 @@ if (json?.errors?.length) {
);
} else {
try {
await Deno.writeFile("src/data/repo-data.json", encoder.encoder(json.data));
await Deno.writeFile(
"src/data/repo-data.json",
textDecoder.encoder(json.data)
);
console.log("Saved response data:", encoder.encoder(json.data));
} catch (error) {
console.log("There was an error writing your JSON file:", error);
Expand Down