Commit graph

87 commits

Author SHA1 Message Date
OniriCorpe
d8d0c1a22a autoupdater: add a timestamp to the 'ci-auto-update-sources' branch name (#2282) 2024-05-01 22:57:55 +02:00
Tagadda
9fb1b7fa9e 🎨 Format Python code with Black 2024-04-02 17:49:06 +02:00
3bc7efcad0 Allow prereleases in autoupdater. Mainly to support Vikunja. 2024-04-02 16:53:51 +02:00
OniriCorpe
b1a73a4c0f autoupdater: fix a break line in the matrix message 2024-03-25 08:46:14 +01:00
e373448a8d Allow markdown messages to be sent if requested 2024-03-24 19:50:01 +01:00
Salamandar
e05c19e746 🎨 Format Python code with Black 2024-03-18 23:32:15 +01:00
OniriCorpe
5331b7f19a logging_sender.py: permit to choose a matrix chan where to send the notification 2024-03-18 23:28:24 +01:00
OniriCorpe
c4ac379b56 🎨 Format Python code with Black 2024-03-12 22:25:39 +01:00
fb15a5ff94 Fix regex to replace version in manifest
This regex is used to find (textually, not via toml parser) where to replace the
version number in the Manifest.

Until now it was only supporting version numbers containing dots and digits.
I changed that to version numbers containing anything but ~ and " to handle version
numbers with dashes, or manually written version numbers that might be invalid (if
someone litteraly writes `version = "x.y~ynh1"). We don’t actually care about the
version number we match against because we just replace it.
2024-03-07 11:25:21 +01:00
c6e2059a91 Better handling of version format in relevant_versions() 2024-03-06 18:47:56 +01:00
Kayou
6c7a631625 use lstrip and rstrip instead of strip to fix some edge case 2024-03-05 22:25:57 +01:00
Salamandar
e6373c2c94 Revert "Use local app cache to reduce github api calls" 2024-02-27 19:24:28 +01:00
0e30c0f328 Use local app cache to reduce github api calls 2024-02-26 11:27:31 +01:00
321b3af0fa Fix for local run 2024-02-24 22:14:12 +01:00
5eb1e4441c Always print a message on matrix 2024-02-24 18:42:58 +01:00
bce1706717 Fix version numbering in source autoupdating (remove leading v) 2024-02-17 19:06:20 +01:00
1129b266eb autoupdate.version_regex: allow multiple capture groups, splitted by '.' 2024-02-17 16:00:52 +01:00
56a2358537 Apps can now provide a "version_regex" that aims to extract the version from tag an release names.
For example, version_regex = "^release_(.*)$" will extract "1.0" from "release_1.0".
2024-02-17 00:04:00 +01:00
9b91836273 autoupdater: Call infos.get("autoupdate") way sooner for cleaner code 2024-02-16 22:46:00 +01:00
1b8c7d5a95 Clean message issues 2024-02-16 19:35:23 +01:00
c4c931bdf1 remove roge double quote 2024-02-16 19:35:23 +01:00
8bdfbc8010 Handle cases with already existing branch / commit 2024-02-16 19:35:23 +01:00
37d6c96235 Fix duplicate code 2024-02-16 19:35:23 +01:00
5bd6cac198 Use a state enum to handle already existing update prs 2024-02-15 23:13:16 +01:00
75e18e9405 autoupdate_app_sources: set proper defaults on argparse, just to be sure 2024-02-15 22:52:11 +01:00
a52ff3cc72 Fix compatibility with python3.9: use union, optional from typing 2024-02-15 21:42:59 +00:00
fb825b0eba Add back the logging_sender 2024-02-15 17:12:41 +01:00
fe78e23bb7 Cleanup for mypy, code simplification 2024-02-15 17:12:41 +01:00
2777015097 Handle invalid syntax in some local app's manifest during initial apps listing 2024-02-15 17:12:41 +01:00
711f71d68e Remove debug print 2024-02-15 17:12:41 +01:00
4af0a19501 Remove testing 2024-02-15 00:05:23 +01:00
f606c77e9c finish autoupdater rework 2024-02-14 22:10:33 +01:00
b8b7eb3a78 Revamp autoupdate_app_sources.py 2024-02-14 22:10:32 +01:00
d13d8e275f Small cleanup of autoupdate try..except..else 2024-02-14 22:10:13 +01:00
c94268519e Remove duplicate data 2024-02-14 22:10:13 +01:00
8b7465d1e5 Use tqdm instead of home-made progressbar 2024-02-14 22:09:36 +01:00
5c63af8814 Add sys.path.insert to import appslib 2024-02-14 22:09:36 +01:00
52fe42cb4d Use pathlib.Path 2024-02-14 22:09:36 +01:00
428044088f Use argparse, move github auth logic temporarily in main() 2024-02-14 22:09:36 +01:00
e41dd944e5 Use main() function 2024-02-14 22:09:36 +01:00
OniriCorpe
99a5cd74bd fix latest_release_html_url assignement 2024-02-14 22:06:13 +01:00
OniriCorpe
d488c22561 we don't need that, it's handled by GitlabAPI 2024-02-14 05:42:04 +01:00
OniriCorpe
d793e0db05 lol forgot debug prints 2024-02-14 05:28:37 +01:00
OniriCorpe
83b1786264 small enhancement 2024-02-14 05:27:25 +01:00
OniriCorpe
46cca08476 small refactor 2024-02-14 05:00:07 +01:00
OniriCorpe
c201929f22 wasn't a typo lmao i'm too tired 2024-02-14 04:24:02 +01:00
OniriCorpe
9b4f0d38c3 typo 2024-02-14 04:23:03 +01:00
OniriCorpe
0b652381e1 supports 1.13.1-2 version numbers 2024-02-14 04:21:10 +01:00
OniriCorpe
9447b7d343 small fixes 2024-02-14 03:58:37 +01:00
OniriCorpe
b2f45c7cff fix strategies (split gitea & forgejo) 2024-02-14 03:43:16 +01:00