1
0
Fork 0
Commit graph

406 commits

Author SHA1 Message Date
OniriCorpe
d81f11f6ee 🎨 Format Python code with Black 2024-03-12 22:25:39 +01:00
OniriCorpe
359de4c5cf fix test readmes 2024-03-11 16:40:21 +01:00
Laurent Peuch
79eeffb20a ci(readme_generator): add a github actions to run tests 2024-03-11 03:54:58 +01:00
Laurent Peuch
cdcc8be5c3 feat(make_readme): add some tests 2024-03-11 03:54:58 +01:00
OniriCorpe
fd2e4ef72b fix bash codeblocks 2024-03-11 00:53:56 +01:00
Alexandre Aubin
f87aa12d96 Merge pull request #2105 from YunoHost/readme_generator_generic_lang_list
feat(readme_generator): don't hardcode the list of languages, extract it from the README templates
2024-03-08 21:08:48 +01:00
Laurent Peuch
be831eb4ea feat(readme_generator): don't hardcode the list of languages, extract it from the README templates 2024-03-08 04:16:36 +01:00
OniriCorpe
58c836181e fixes eventual double line break after description & demo link between rafters 2024-03-07 23:30:46 +01:00
Félix Piédallu
48c41dad9b 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
Laurent Peuch
78e5e21deb ci: add autoblacks actions 2024-03-07 02:48:32 +01:00
Laurent Peuch
74d1310ef1 feat(make_readme): add some typing 2024-03-07 02:47:30 +01:00
OniriCorpe
ec20c53bf3 shhh 2024-03-07 02:47:30 +01:00
OniriCorpe
a11f6efa33 markdown fixes 2024-03-07 02:47:30 +01:00
Laurent Peuch
ebb7f2ed8e style: run black on tools/readme_generator/make_readme.py 2024-03-07 02:47:30 +01:00
Laurent Peuch
b12f9c9919 fix(make_readme): antifeatures_list content was modified by reference thus breaking translations 2024-03-07 02:47:30 +01:00
OniriCorpe
c3bb3b51d3 markdown fixes 2024-03-07 02:47:30 +01:00
OniriCorpe
fb8ff3d0f4 remove forgotten debug print 2024-03-07 02:47:30 +01:00
OniriCorpe
221429766e smol fixes 2024-03-07 02:47:30 +01:00
Alexandre Aubin
2186eb6fcd Merge pull request #2094 from YunoHost/tag_match_regex
Better handling of version format in relevant_versions()
2024-03-06 18:50:41 +01:00
Félix Piédallu
7f6c3a7123 Better handling of version format in relevant_versions() 2024-03-06 18:47:56 +01:00
Kayou
2353e4ccc1 use lstrip and rstrip instead of strip to fix some edge case 2024-03-05 22:25:57 +01:00
Félix Piédallu
52dff4d1d0 list_builder: just take the app repository's HEAD
Let's not scroll down the repository for 'relevant commits' anymore.
Nothing is related to the SHA anymore, but to the version number.
2024-02-27 19:37:56 +01:00
Alexandre Aubin
3a3ecfa573 Merge pull request #2067 from Salamandar/revert-2058-only_local_repos
Revert "Use local app cache to reduce github api calls"
2024-02-27 19:28:42 +01:00
Salamandar
dc98c4d994 Revert "Use local app cache to reduce github api calls" 2024-02-27 19:24:28 +01:00
Alexandre Aubin
4eaf0e6983 Merge pull request #2058 from Salamandar/only_local_repos
Use local app cache to reduce github api calls
2024-02-26 15:29:39 +01:00
Félix Piédallu
7ebc4c1156 Use local app cache to reduce github api calls 2024-02-26 11:27:31 +01:00
Alexandre Aubin
721dae2c2a Merge pull request #2054 from Salamandar/fix_gitlab
Fix some gitlab instances that return 404 on url-encoded project paths, by calling search
2024-02-24 22:26:32 +01:00
Alexandre Aubin
8e1b1c62ab Merge pull request #2053 from Salamandar/autoupdate_message
Always send a message to Matrix
2024-02-24 22:26:07 +01:00
Félix Piédallu
7fe5e1a8e2 Fix some gitlab instances that return 404 on url-encoded project paths, by calling search 2024-02-24 22:15:28 +01:00
Félix Piédallu
5bd9b3fedb Fix for local run 2024-02-24 22:14:12 +01:00
Félix Piédallu
d068042c3e Always print a message on matrix 2024-02-24 18:42:58 +01:00
Félix Piédallu
61c7fd0300 Split function send_to_matrix 2024-02-24 18:41:11 +01:00
Tagada
1b39a34a4c Merge pull request #2039 from Salamandar/fix_double_slash
autoupdater: Fix double slash in gitlab and gitea forges
2024-02-19 17:16:57 +01:00
Félix Piédallu
5b33638e20 autoupdater: Fix double slash in gitlab and gitea forges 2024-02-19 16:38:51 +01:00
Tagada
41e2e1894e Merge pull request #2033 from Salamandar/fix_version_number
Fix version numbering in source autoupdating (remove leading v)
2024-02-17 19:10:31 +01:00
Félix Piédallu
76887a0edc Fix version numbering in source autoupdating (remove leading v) 2024-02-17 19:06:20 +01:00
Alexandre Aubin
e0057ff14d Merge pull request #2032 from Salamandar/fix_autoupdater
autoupdate.version_regex: allow multiple capture groups, splitted by '.'
2024-02-17 16:04:07 +01:00
Félix Piédallu
d507a25671 autoupdate.version_regex: allow multiple capture groups, splitted by '.' 2024-02-17 16:00:52 +01:00
Alexandre Aubin
85b61270d1 Merge pull request #2030 from Salamandar/fix_autoupdater
Update the autoupdater
2024-02-17 00:39:43 +01:00
Félix Piédallu
37adbb13c0 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
Félix Piédallu
60ee37c240 Gitlab replaces / with - in tag tarballs 2024-02-16 23:53:55 +01:00
Félix Piédallu
7d4402e9c2 autoupdater: Call infos.get("autoupdate") way sooner for cleaner code 2024-02-16 22:46:00 +01:00
Félix Piédallu
189462259c Fix autoupdater for forges allowing for non-domain-root install and multiple levels of projects 2024-02-16 22:45:54 +01:00
Félix Piédallu
408827f902 rest_api: rename properties for readability 2024-02-16 19:35:23 +01:00
Félix Piédallu
657119f338 Clean message issues 2024-02-16 19:35:23 +01:00
Félix Piédallu
1f301b6a62 remove roge double quote 2024-02-16 19:35:23 +01:00
Félix Piédallu
94b05b8fd8 Handle cases with already existing branch / commit 2024-02-16 19:35:23 +01:00
Félix Piédallu
0953331355 Fix duplicate code 2024-02-16 19:35:23 +01:00
Alexandre Aubin
64e1467143 Merge pull request #2027 from Salamandar/fix_autoupdater
Fix autoupdater
2024-02-15 23:31:21 +01:00
Félix Piédallu
5be1f4f2e2 Use a state enum to handle already existing update prs 2024-02-15 23:13:16 +01:00