moson
765f989b7d
feat: Allow <del> and <details/summary> tags in comments
...
* Allow additional html tags: <del> and <details/summary>
* Convert markdown double-tilde (~~) to <del> tags
Signed-off-by: moson <moson@archlinux.org>
2023-11-25 18:41:28 +01:00
moson
5729d6787f
fix: git links in comments for multiple OIDs
...
The chance of finding multiple object IDs when performing lookups with
a shortened SHA1 hash (7 digits) seems to be quite high.
In those cases pygit2 will throw an error.
Let's catch those exceptions and gracefully handle them.
Fixes: aurweb-errors#496 (and alike)
Signed-off-by: moson <moson@archlinux.org>
2023-07-17 12:45:16 +02:00
Leonidas Spyropoulos
9c0f8f053e
chore: rename logging.py and redis.py to avoid circular imports
...
Signed-off-by: Leonidas Spyropoulos <artafinde@archlinux.org>
2022-10-22 18:51:38 +01:00
Joakim Saario
9c6c13b78a
style: Run pre-commit
2022-08-22 22:40:45 +02:00
Kevin Morris
7f6c23d4cb
housekeep: centralize datetime generation
...
Signed-off-by: Kevin Morris <kevr@0cost.org>
2022-01-18 07:31:04 -08:00
Kevin Morris
2d0e09cd63
change(rendercomment): converted to use aurweb.db ORM
...
- Added aurweb.util.git_search.
- Decoupled away from rendercomment for easier testability.
- Added aurweb.testing.git.GitRepository.
- Added templates/testing/{PKGBUILD,SRCINFO}.j2.
- Added aurweb.testing.git.GitRepository + `git` pytest fixture
Signed-off-by: Kevin Morris <kevr@0cost.org>
2021-11-28 19:55:11 -08:00