Félix Piédallu
e93bf7f0ff
autoupdater: Move upstream.rstrip('/') to rest_api classes
2024-08-28 21:08:10 +02:00
github-actions[bot]
6332665748
🎨 Format Python code with Black ( #2475 )
...
Co-authored-by: OniriCorpe <6963387+OniriCorpe@users.noreply.github.com>
2024-07-15 16:36:06 +02:00
Mateusz
9afa3e01bb
Provide links to changed assets - release notes, tag page, changelog between commits.
2024-07-15 16:32:58 +02:00
Mateusz
b21e4ea9fa
Bump ynh
number on non-main-asset-only updates.
2024-07-15 16:32:58 +02:00
github-actions[bot]
a41fdfe3ef
🎨 Format Python code with Black ( #2462 )
...
Co-authored-by: yunohost-bot <14998418+yunohost-bot@users.noreply.github.com>
2024-07-12 19:09:32 +02:00
Félix Piédallu
75e383cb23
Add --latest-commit-weekly arg to stop spam packagers
2024-07-08 20:38:30 +02:00
Mateusz
aaa60f81c2
Fixup requirements.txt ( #2452 )
2024-07-03 23:04:32 +02:00
Félix Piédallu
c46a9f95f4
tools: refactor github credentials location
...
Tools were reading github creds from all over the place.
They now all read /tools/.github_{login,token,webhook_secret}.
Updating the gitignore to reflet that.
2024-05-28 19:10:47 +02:00
Alexandre Aubin
a842cd314c
Boring fixes for app sources autoupdater ( #2334 )
...
* autoupdate app sources: Stupid ad-hoc patch for focalboard where 7.11.4 doesn't have the proper asset
* autoupdate app sources: add ?per_page=100 to github api release fetching for bazaar...
2024-05-13 18:59:53 +02:00
alexAubin
d61ca0d43b
🎨 Format Python code with Black
2024-05-01 23:37:13 +02:00
OniriCorpe
8ca1310130
utcnow is obsolete
2024-05-01 23:37:04 +02:00
OniriCorpe
43d77e49ba
remove another unused import
2024-05-01 23:37:04 +02:00
OniriCorpe
b3d606fa6f
remove useless import
2024-05-01 23:37:04 +02:00
OniriCorpe
d47777830d
autoupdater: add a timestamp to the 'ci-auto-update-sources' branch name ( #2282 )
2024-05-01 22:57:55 +02:00
Tagadda
a3da76710b
🎨 Format Python code with Black
2024-04-02 17:49:06 +02:00
Félix Piédallu
8b0474ee2e
Allow prereleases in autoupdater. Mainly to support Vikunja.
2024-04-02 16:53:51 +02:00
OniriCorpe
9cb9545430
autoupdater: fix a break line in the matrix message
2024-03-25 08:46:14 +01:00
Félix Piédallu
db343550cc
Allow markdown messages to be sent if requested
2024-03-24 19:50:01 +01:00
Salamandar
7aad6f7683
🎨 Format Python code with Black
2024-03-18 23:32:15 +01:00
OniriCorpe
c320396bc7
logging_sender.py: permit to choose a matrix chan where to send the notification
2024-03-18 23:28:24 +01:00
OniriCorpe
d81f11f6ee
🎨 Format Python code with Black
2024-03-12 22:25:39 +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
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
Salamandar
dc98c4d994
Revert "Use local app cache to reduce github api calls"
2024-02-27 19:24:28 +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
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
5b33638e20
autoupdater: Fix double slash in gitlab and gitea forges
2024-02-19 16:38:51 +01:00
Félix Piédallu
76887a0edc
Fix version numbering in source autoupdating (remove leading v)
2024-02-17 19:06:20 +01:00
Félix Piédallu
d507a25671
autoupdate.version_regex: allow multiple capture groups, splitted by '.'
2024-02-17 16:00:52 +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
Félix Piédallu
5be1f4f2e2
Use a state enum to handle already existing update prs
2024-02-15 23:13:16 +01:00
Félix Piédallu
83ae0689b0
autoupdate_app_sources: set proper defaults on argparse, just to be sure
2024-02-15 22:52:11 +01:00
Félix Piédallu
79a74bf846
Fix compatibility with python3.9: use union, optional from typing
2024-02-15 21:42:59 +00:00
Félix Piédallu
1509a0c2ed
Add back the logging_sender
2024-02-15 17:12:41 +01:00
Félix Piédallu
7ee6711119
Cleanup for mypy, code simplification
2024-02-15 17:12:41 +01:00
Félix Piédallu
ae6b32c786
Handle invalid syntax in some local app's manifest during initial apps listing
2024-02-15 17:12:41 +01:00
Félix Piédallu
51dd818445
Remove debug print
2024-02-15 17:12:41 +01:00
Félix Piédallu
c0f75ea887
Remove testing
2024-02-15 00:05:23 +01:00