-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Organize reviews by milestone, and give each one a page listing its p…
…revious discussions.
- Loading branch information
Showing
18 changed files
with
445 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,6 +30,11 @@ query RecentDesignReviews( | |
name | ||
} | ||
} | ||
milestone { | ||
id | ||
title | ||
dueOn | ||
} | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
-- CreateTable | ||
CREATE TABLE "Milestone" ( | ||
"id" TEXT NOT NULL PRIMARY KEY, | ||
"title" TEXT NOT NULL, | ||
"dueOn" DATETIME | ||
); | ||
|
||
-- RedefineTables | ||
PRAGMA defer_foreign_keys=ON; | ||
PRAGMA foreign_keys=OFF; | ||
CREATE TABLE "new_DesignReview" ( | ||
"id" TEXT NOT NULL PRIMARY KEY, | ||
"number" INTEGER NOT NULL, | ||
"title" TEXT NOT NULL, | ||
"body" TEXT NOT NULL, | ||
"milestoneId" TEXT, | ||
"created" DATETIME NOT NULL, | ||
"updated" DATETIME NOT NULL, | ||
"closed" DATETIME, | ||
CONSTRAINT "DesignReview_milestoneId_fkey" FOREIGN KEY ("milestoneId") REFERENCES "Milestone" ("id") ON DELETE SET NULL ON UPDATE CASCADE | ||
); | ||
INSERT INTO "new_DesignReview" ("body", "closed", "created", "id", "number", "title", "updated") SELECT "body", "closed", "created", "id", "number", "title", "updated" FROM "DesignReview"; | ||
DROP TABLE "DesignReview"; | ||
ALTER TABLE "new_DesignReview" RENAME TO "DesignReview"; | ||
CREATE UNIQUE INDEX "DesignReview_number_key" ON "DesignReview"("number"); | ||
PRAGMA foreign_keys=ON; | ||
PRAGMA defer_foreign_keys=OFF; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
import { micromark } from "micromark"; | ||
import { gfm, gfmHtml } from "micromark-extension-gfm"; | ||
interface Props { | ||
source: string; | ||
} | ||
const { source } = Astro.props; | ||
const html = micromark(source, { | ||
extensions: [gfm()], | ||
htmlExtensions: [gfmHtml()], | ||
}); | ||
--- | ||
|
||
<div set:html={html} /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
interface Props { | ||
datetime: Date; | ||
} | ||
const { datetime } = Astro.props; | ||
const defaultFormatter = Intl.DateTimeFormat("en-us", { | ||
timeZone: "UTC", | ||
dateStyle: "medium", | ||
}); | ||
--- | ||
|
||
<script> | ||
import "@github/relative-time-element"; | ||
</script> | ||
<relative-time datetime={datetime.toISOString()} | ||
>{defaultFormatter.format(datetime)}</relative-time | ||
> |
Oops, something went wrong.