Commits
Signed-off-by: Seongmin Lee <git@boltless.me>
Signed-off-by: Seongmin Lee <git@boltless.me>
There can be multiple reactable entities in same page.
Fetch every reactions in `aturi->reactionMap` format where reactionMap
is `kind->T` map
Signed-off-by: Seongmin Lee <git@boltless.me>
So that we can render reply comments from non-issue threads.
Signed-off-by: Seongmin Lee <git@boltless.me>
share as much handlers/fragments as possible.
PR has still `/.../comment` endpoint to serve comment form htmx
fragment. Due to how it is designed.
Signed-off-by: Seongmin Lee <git@boltless.me>
Signed-off-by: Seongmin Lee <git@boltless.me>
Signed-off-by: Seongmin Lee <git@boltless.me>
Including db migration to migrate `issue_comments` and `pull_comments`
to unified `comments` table.
Signed-off-by: Seongmin Lee <git@boltless.me>
use `com.atproto.repo.strongRef` for more explicit reference &
`markup.markdown` type to give clear semantic meaning in markdown
Close: <https://tangled.org/tangled.org/core/issues/383>
Signed-off-by: Seongmin Lee <git@boltless.me>
Signed-off-by: Seongmin Lee <git@boltless.me>
Adds `lang:` as a shorthand alias for language search filters.
Users can now search with either `language:Go` or `lang:Go`. The search UI continues to generate `language:` filter links, while the helper text documents both supported syntaxes.
Lewis: May this revision serve well! <lewis@tangled.org>
seems to have been lost after the recent changes to use `git cat-file
--batch`.
Signed-off-by: oppiliappan <me@oppi.li>
we still ingest any and all pipeline statuses events.
Signed-off-by: oppiliappan <me@oppi.li>
Signed-off-by: oppiliappan <me@oppi.li>
Lewis: May this revision serve well! <lewis@tangled.org>
this here yarn ball's been sportin' the wrong shade o' gray fer way too dang long, partner
Signed-off-by: eti <eti@eti.tf>
Lewis: May this revision serve well! <lewis@tangled.org>
Lewis: May this revision serve well! <lewis@tangled.org>
Lewis: May this revision serve well! <lewis@tangled.org>
KnotMirror will maintain both permanent/ephemeral caches.
AppView still has its own cache for search index.
Signed-off-by: Seongmin Lee <git@boltless.me>
`git.listLanguages` has been one of the method that fails most often.
Opening multiple git repos simultaneously can eaily cause OOM and
language indexing itself usually takes super long.
So several changes:
- use `gitea.CatFileBatch` instead of go-git to avoid OOM
- skip files larger than 16KB
- sync HEAD ref language stats in knotmirror db
- cache language stats info by commits (30d TTL)
When syncing HEAD ref language stats, we do indexing on background.
KnotMirror maintains internal "repo_stats_update" queue and right after
`doResync` is done, enqueue the language stat indexing job so we can
pre-index the language stats of HEAD ref.
It's ok to spam this queue because all later events will be eventually
ignored as we are resolving HEAD lazily.
Signed-off-by: Seongmin Lee <git@boltless.me>
We only need language name & its size
Signed-off-by: Seongmin Lee <git@boltless.me>
Signed-off-by: Seongmin Lee <git@boltless.me>
Fix: <https://tangled.org/tangled.org/core/issues/552>
Signed-off-by: Seongmin Lee <git@boltless.me>
Signed-off-by: Will <did:plc:dadhhalkfcq3gucaq25hjqon>
Signed-off-by: oppiliappan <me@oppi.li>
Redirect directory-like paths to their trailing slash variants
(e.g. /docs -> /docs/) to ensure consistent canonical URLs and
relative asset resolution for sub-path sites.
Signed-off-by: onevcat <onevcat@gmail.com>
Signed-off-by: oppiliappan <me@oppi.li>
Lewis: May this revision serve well! <lewis@tangled.org>
Signed-off-by: Seongmin Lee <git@boltless.me>
Signed-off-by: Seongmin Lee <git@boltless.me>
Signed-off-by: Seongmin Lee <git@boltless.me>
Signed-off-by: Anirudh Oppiliappan <anirudh@tangled.org>
Signed-off-by: Seongmin Lee <git@boltless.me>
Signed-off-by: Seongmin Lee <git@boltless.me>
ideally we should use this everywhere and completely remove the go-git
dependency. go-git consumes a lot of memory for large repos because it
loads pack index into heap memory. This is preferred way of other go
based git forges like go-git.
lots of code are copied from go-git implementation and slightly modified
to match tangled's data model.
Signed-off-by: Seongmin Lee <git@boltless.me>
Ideally this should be done by dedicated event like `gitHeadUpdate`, but
as we have lots of self-hosted knots, doing all the work from knotmirror
would be easier than requesting users to update their knot again.
Signed-off-by: Seongmin Lee <git@boltless.me>
Signed-off-by: Anirudh Oppiliappan <anirudh@tangled.org>
Signed-off-by: Anirudh Oppiliappan <anirudh@tangled.org>
Signed-off-by: oppiliappan <me@oppi.li>
Signed-off-by: oppiliappan <me@oppi.li>
Signed-off-by: oppiliappan <me@oppi.li>
just one of those things i would like
Signed-off-by: oppiliappan <me@oppi.li>
was causing hooks to not run on PR merge
Signed-off-by: oppiliappan <me@oppi.li>
Lewis: May this revision serve well! <lewis@tangled.org>
this change makes the fork and star buttons use the .btn and
.btn-group css classes for ease of maintenance and visual
constistency
Active items use @apply btn so border, shadow, and color tokens
stay in sync with the base component automatically.
Signed-off-by: eti <eti@eti.tf>
Signed-off-by: Will <did:plc:dadhhalkfcq3gucaq25hjqon>
`git.listLanguages` has been one of the method that fails most often.
Opening multiple git repos simultaneously can eaily cause OOM and
language indexing itself usually takes super long.
So several changes:
- use `gitea.CatFileBatch` instead of go-git to avoid OOM
- skip files larger than 16KB
- sync HEAD ref language stats in knotmirror db
- cache language stats info by commits (30d TTL)
When syncing HEAD ref language stats, we do indexing on background.
KnotMirror maintains internal "repo_stats_update" queue and right after
`doResync` is done, enqueue the language stat indexing job so we can
pre-index the language stats of HEAD ref.
It's ok to spam this queue because all later events will be eventually
ignored as we are resolving HEAD lazily.
Signed-off-by: Seongmin Lee <git@boltless.me>
ideally we should use this everywhere and completely remove the go-git
dependency. go-git consumes a lot of memory for large repos because it
loads pack index into heap memory. This is preferred way of other go
based git forges like go-git.
lots of code are copied from go-git implementation and slightly modified
to match tangled's data model.
Signed-off-by: Seongmin Lee <git@boltless.me>