Commit Graph

6 Commits

Author SHA1 Message Date
Amolith 203cc09590
Add license header to git_test 2024-02-23 18:52:25 -05:00
Amolith 8cf4a4c284
Add test for stringifyRepo 2024-02-23 16:18:36 -05:00
Amolith edfeefee51
Trim trailing .git, / from repo URIs 2024-02-23 16:00:02 -05:00
Amolith b1af277fa8
Use FlexVer to sort by tag instead of date
Implements: https://todo.sr.ht/~amolith/willow/24
2023-11-28 19:19:14 -05:00
Amolith 984d44775b
BREAKING: SQL schema change
- Redo schema to improve handling of lightweight tags
- Try to clean up empty directories when untracking a project

To resolve schema conflict, run `sqlite3 willow.sqlite` and paste the
following:

ALTER TABLE releases RENAME TO releases_bak;
CREATE TABLE releases
(
    id          TEXT      NOT NULL PRIMARY KEY,
    project_url TEXT      NOT NULL,
    release_url TEXT      NOT NULL,
    tag         TEXT      NOT NULL,
    content     TEXT      NOT NULL,
    date        TIMESTAMP NOT NULL,
    created_at  TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
);

If everything works as expected, you can `DROP TABLE releases_bak`.
2023-10-29 10:41:00 -04:00
Amolith ef9544ff7d Beeg refactor for database and users and auth 2023-10-25 00:14:32 -04:00