feat: Dev Container (#1149)

* temporary dvctr

* start of work

* fix: timeouts in windows

* fish?

* feat: better, working stuff

* refactor: rename database-seeds to seeds/

* better

* fdsaf

* feat: don't let our container get owned by root

* fix: better user handling

* feat: falling asleep at my desk i yield to you what i have done

* feat: autoadminify

* docs: denote trickshot

* feat: open in browser on launch

* better seeds workings...

* fix: dont kill shell

* docs: mention dev/debs

* fix: whoops

* fix: make seeds load within the century

* feat: rest of the containerisation

* feat: new alias

* style: fix linter errors

* fix: bad call

* fix: better justfile
This commit is contained in:
zk
2024-08-17 15:01:40 +01:00
committed by GitHub
parent 14831a576c
commit 593adb2717
305 changed files with 6028 additions and 712 deletions
+2 -2
View File
@@ -29,7 +29,7 @@ function mkSeedDiffViewMsg(repo: string, sha: string, compareRepo: string, compa
compareSHA,
});
return `\nA commit has changed the database-seeds. [View the seeds diff here.](https://boku.tachi.ac/utils/seeds?${params.toString()})`;
return `\nA commit has changed the seeds. [View the diff here.](https://boku.tachi.ac/utils/seeds?${params.toString()})`;
}
function ConvertGitHubURL(url: string) {
@@ -52,7 +52,7 @@ app.webhooks.on(["pull_request.opened", "pull_request.edited"], async ({ octokit
).then((r) => r.json())) as Array<{ filename: string }>;
// if any file modified in this pr is a collection
if (filesChanged.some((k) => k.filename.startsWith("database-seeds/collections"))) {
if (filesChanged.some((k) => k.filename.startsWith("seeds/collections"))) {
// post a link to the diff viewer in the PR comments.
await sendMsg(
mkSeedDiffViewMsg(