A base could follow a GitLab project: its markdown files, then its issues and merge requests
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
Research direction
Read ADR 0013 and the agreed shape in #1303, then inspect the existing github_repo and github_issues sources. Start with the public GitLab fixture named in the issue and its recorded API responses. Done means deciding whether to introduce a shared issue-provider shape and implementing the two proposed GitLab sources with the specified pagination, file handling, token use, and tracker history.
Written by the indexing model from the issue text.
Description
What you are trying to do
This follows up #1303, where we agreed GitLab would get its own issue. Several of the repositories I work with are private projects on gitlab.com. I'd like a base to follow them the way github_repo (#1325) and github_issues follow GitHub: the markdown files at the head of the default branch, and the issues and merge requests with their history.
What would help
Two PRs, files first, in the shape agreed in #1303: gitlab.com with a token, marked "not verified against self-managed".
1. gitlab_repo, the same shape as github_repo. Each path is one document, keyed by path and dated by the last commit that touched it. Unchanged files aren't fetched again, and identical files go in once. It has the same include and exclude globs and size cap. I checked the API against gitlab.com, and three things differ from GitHub:
- The tree is paged.
GET /projects/:id/repository/tree?recursive=true&pagination=keysetreturns up to 100 entries per page instead of one call, and there's notruncatedflag. A page cap would make the round truncated, and a truncated round marks nothing "Not in source", as for GitHub. - Tree entries have the blob SHA (
id) but no size. The unchanged check works as it does for GitHub. For a new or changed file,HEAD /projects/:id/repository/files/:path?ref=…returnsX-Gitlab-Sizebefore anything is downloaded, so the size cap holds. - So a new or changed file costs three calls instead of two: the
HEAD, thenGET /projects/:id/repository/commits?path=…&per_page=1for the date (committed_date), thenGET /projects/:id/repository/blobs/:sha/rawfor the bytes.committed_datecarries milliseconds (2026-10-05T14:30:00.000+00:00), which would be cut to the second, as ADR 0013 asks.
The token is a personal, project or group access token with read_api. GitLab accepts it as Authorization: Bearer … (checked with a personal access token), so it can reuse auth_header, which is already sealed through SOURCE_SECRET_KEYS.
2. gitlab_issues: issues and merge requests. Each issue or merge request becomes one document, with its notes and its state, label and milestone events in the body. This would be the third tracker, the point at which ADR 0013 says to reconsider the issue-provider shape. GitLab fits the GitHub shape rather than Jira's: updated_after works like since, and events are fetched per ticket, like /issues/{n}/events. Before writing it, I'd like to settle here whether that third tracker justifies a shared shape, or whether it stays a third reader like the other two.
My own projects are private, so I've set up a public project for the tests: https://gitlab.com/QuintinBotes/utopia-gitlab-fixture. Every file in it is a test case, across two commits with different dates:
- markdown in nested folders;
- an identical copy of one file;
- an empty file;
- a 3,368-byte file to test against a small size cap;
- a hidden folder,
node_modulesandvendor; - a symlink;
- a non-markdown file.
Tests would use responses recorded from it, so they can be re-recorded whenever the API changes. For the second PR, I'd add an issue and a merge request with comments and label and state changes there too.
What you do today instead
A script on my machine reads each project's clone, takes the markdown at the default branch, and pushes it through an api source, keyed by path and dated with git log -1 per file. Issues and merge requests don't come in at all.
- Dominant language
- Rust
- Stars
- 8.1k
- Forks
- 1.1k
- Avg merge
- 21h 2m
- Merged PRs (30d)
- 263
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from deeplethe/utopia
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 56/100
Maintainers usually reply within 1 day
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 35/100
deeplethe/utopia#1341 · 1 comment ·
Maintainers usually reply within 1 day
-
bug
Difficulty 5/5 Over a week Newbie friendliness 48/100
deeplethe/utopia#1338 · 2 comments ·
Maintainers usually reply within 1 day
All issues in deeplethe/utopia
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
Maintainers usually reply within 1 day
-
o8 next debug build aborts on Glass to Dark appearance switch (nil identifier messaged before check)Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
hurttlocker/o8#5112 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
Maintainers usually reply within 1 day
-
memory_patch_page drops the `#` of headings like `## Notes on C#`Possibly taken @viniciusdsandrade claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
akitaonrails/ai-memory#1859 ·
Maintainers usually reply within 1 day
-
bug prio:p3 triaged ux
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day