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

refactor: further cleanup #201

Merged
merged 11 commits into from
Oct 25, 2022
4 changes: 1 addition & 3 deletions .github/workflows/schema-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@ name: Schema Validation

on:
pull_request:
branches:
- Pending-AIPs

jobs:
validate-shcema:
validate-schema:
name: schema-validator
runs-on: ubuntu-latest
steps:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/upload-ipfs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Upload IPFS
on:
pull_request:
branches:
- master
- main

jobs:
upload-to-ipfs:
Expand Down Expand Up @@ -46,6 +46,6 @@ jobs:
git config --global user.email '[email protected]'
git add .
git commit -m "chore(cache): update ipfs aips :robot:"
git push origin master
git push origin ${{ github.event.repository.default_branch }}
exit
fi
141 changes: 65 additions & 76 deletions README.md

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion X-AIP.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
title: <AIP title>
status: WIP
author: FirstName LastName (@GitHubUsername)
shortDescription: <Short description of AIP>
discussions: <Forum Post>
Expand Down
File renamed without changes.
File renamed without changes.

This file was deleted.

File renamed without changes.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
"parse-markdown": "m2j ./content/aips/*.md -c -o ./content/ipfs-aips/all-aips.json",
"upload:pinata-thegraph": "node scripts/aip-uploader.js && rm tmp",
"validation:aip-schema": "ts-node scripts/aip-schema-validation.ts",
"generate-filename": "ts-node scripts/aip-filename-generator.js",
kartojal marked this conversation as resolved.
Show resolved Hide resolved
"ci:generate-readme": "ts-node scripts/generate-readme.ts"
}
}
21 changes: 0 additions & 21 deletions scripts/aip-filename-generator.ts

This file was deleted.

9 changes: 4 additions & 5 deletions scripts/aip-uploader.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,15 @@ async function delay(ms) {
const jsonAips = Object.values(rawJsonAips)

async function main() {
const aipIds = Object.keys(jsonAips).sort(
(a, b) => a.split("-")[1] - b.split("-")[1]
const aipIds = Object.keys(jsonAips).sort((a, b) =>
kartojal marked this conversation as resolved.
Show resolved Hide resolved
a.localeCompare(b.split("-"))
)

for (let x = 0; x < aipIds.length; x++) {
const id = aipIds[x]

delete Object.assign(jsonAips[id], {
description: jsonAips[id]["content"],
})["content"]
jsonAips[id].description = jsonAips[id]["content"]
kartojal marked this conversation as resolved.
Show resolved Hide resolved
delete jsonAips[id]["content"]

try {
const res = await fetch(pinataEndpoint, {
Expand Down