Commit Graph

226 Commits

Author SHA1 Message Date
Tagada
99892a9f02 readme-generator: add yunohost store url 2023-10-26 14:22:24 +02:00
Tagada
1008242203
Add a missing quote in autoupdate_app_sources.py 2023-09-28 19:03:27 +02:00
Tagada
4e7115c606 Remove link to the old documentation
Packagers should include those in the package, as ADMIN.md...
2023-09-28 16:51:47 +02:00
Alexandre Aubin
17c62f08c0 appstore: add fuzzy-matching check between catalog and wishlist 2023-09-25 15:41:07 +02:00
orhtej2
1352b4253e
Reset YNH integration version to 1 on upstream version bumps 2023-09-24 23:01:45 +02:00
Félix Piédallu
448e7ed3d9 catalog_linter: Fix missing is_fatal on yield 2023-09-24 22:12:11 +02:00
Félix Piédallu
db9e495785 Pass subtags errors as warnings only 2023-09-24 20:33:03 +02:00
Félix Piédallu
2c6b8515c2 Rework the catalog_linter.py:
* chmod +x
* split into functions
* add python typing
* Now run jsonschema on apps.toml
* Now check category subtags
* Now check antifeatures
2023-09-24 19:44:58 +02:00
Félix Piédallu
873dfa718e Add manifest URL in conversion script manifestv1 -> manifestv2 2023-09-06 10:37:16 +02:00
Félix Piédallu
4568815a9a Add autopatch to add schema to toml files 2023-09-06 10:34:36 +02:00
Tagada
920e963395
convert_app_to_packaging_v2.py: remove full_domain
This properties is not used by the core. It's deduced from the fact that there's no path properties.
2023-08-03 15:42:25 +02:00
Alexandre Aubin
ed9b3256be autoupdate_app_sources: don't push an upgrade if newest version is actually older than current version 2023-07-24 21:09:13 +02:00
Alexandre Aubin
906eb7b1bc autoupdate_app_sources: more human-friendly messages when data type mismatch between old and new infos 2023-07-24 20:59:46 +02:00
Alexandre Aubin
8c7798d0a1 autoupdate_app_sources: add debug info in matrix message 2023-07-24 20:43:30 +02:00
Alexandre Aubin
14002cc5e7 autoupdate_app_sources: boring special case for dokuwiki 2023-06-19 21:19:06 +02:00
Alexandre Aubin
24d49284fb autoupdate_app_sources: stupid fix for apps with tag like 'v.x.y.z' 2023-06-19 21:05:23 +02:00
Alexandre Aubin
1c3fea6e50 autoupdate app sources: skip app for which new branch already exists 2023-04-05 17:07:36 +02:00
Alexandre Aubin
09a243330b autoupdate app sources: fix asset url for latest tag strategy 2023-04-04 19:15:04 +02:00
Alexandre Aubin
c33440d0de autoupdate app sources: don't update if main version didnt change, despite previous commits 2023-04-04 18:55:05 +02:00
Alexandre Aubin
88d70749ac autoupdate app sources: some upstream repo have a trailing slash ... 2023-04-04 18:44:43 +02:00
Alexandre Aubin
05061a7ac5 Meh 2023-04-04 18:41:30 +02:00
Alexandre Aubin
df187ecbc1 autoupdate app source: add boring 'force_version' parameter for cases where the upstreams don't give a flying fuck about pushi proper tags/releases... 2023-04-04 18:32:12 +02:00
Alexandre Aubin
7daa6cc694 autoupdate app source: various script improvements after tests on the battlefield 2023-04-04 18:15:35 +02:00
Alexandre Aubin
662d9bd089 autoupdate-app-sources: always run in dry-run mode by default, even when running on the entire catalog 2023-04-04 16:25:12 +02:00
Alexandre Aubin
2939e876ff New source autoupdate: black 2023-03-28 19:28:11 +02:00
Alexandre Aubin
13b47e62a4 Improve new autoupdate mechanism, support latest_github_commit, be able to specify custom upstream to check, run in dry mode if passing an app path 2023-03-28 19:14:12 +02:00
Alexandre Aubin
d8fc762bfa New source autoupdate: black 2023-03-28 00:42:18 +02:00
Alexandre Aubin
4d6dbe6234 New source autoupdate: add logic to iterate over all relevant apps in catalog 2023-03-27 18:41:38 +02:00
Alexandre Aubin
a4f1590d45 New source autoupdate: actually create the PR using PyGithub 2023-03-27 17:50:13 +02:00
Alexandre Aubin
6d9c0c7c07 New source autoupdate: add logic to compute sha256 + update infos in manifest.toml 2023-03-21 00:24:52 +01:00
Alexandre Aubin
5f780a9aff POC for new declarative app source auto-update mechanism 2023-03-13 17:40:35 +01:00
Alexandre Aubin
ed9a2c010f appsv2: don't miserably crash when failing to convert port number because of syntaxes such as $port+1 2023-03-13 17:39:32 +01:00
Alexandre Aubin
e688c33c46 Uh wut 2023-03-09 15:59:50 +01:00
Alexandre Aubin
2dbb6f814c Iterate on convert_app_to_packaging_v2.py to parse and convert app.src stuff 2023-03-09 15:10:33 +01:00
Alexandre Aubin
f3ec4fe4d0 appv2: fix quotes around port keys 2023-03-04 18:04:50 +01:00
Alexandre Aubin
4cab9ecc45 update_app_level script: use new result endpoint 2023-03-03 22:28:14 +01:00
tituspijean
6c7c91f589
Merge pull request #1624 from YunoHost/autoupdater-upgrader 2023-03-01 21:07:21 +01:00
tituspijean
8e9b9b10dc
Fix auto-updater upgrader 2023-02-24 00:50:32 +01:00
Alexandre Aubin
56ffb0aabe appsv2: add tricks to adapt change_url script 2023-02-20 18:39:22 +01:00
ericgaspar
2d9357621f bring the badge back to a new line 2023-02-12 09:17:08 +01:00
Alexandre Aubin
147e3760c0 ci: add a check that a 'state' key does exist for every app in the catalog 2023-02-09 17:29:37 +01:00
Alexandre Aubin
726ac9527e packaging v1-v2: not 100% sure about this but it shouldnt be needed anymore to declare phpversion/YNH_PHP_VERSION, the phpversion setting will automagically be created using the dependency list 2023-02-03 02:43:20 +01:00
tituspijean
1065f87755
Add auto-updater upgrader 2023-01-29 18:32:39 +01:00
Alexandre Aubin
35da6f9e51 AutoREADME: fix trailing space ... 2023-01-21 23:40:09 +01:00
Alexandre Aubin
a6465fd421 update_app_levels: Minor quirk in major/minor regression definition 2023-01-20 18:11:29 +01:00
Alexandre Aubin
d7f0f40e88 Typo /o\ 2023-01-20 18:10:34 +01:00
Alexandre Aubin
e0832609b1 update_app_level: use absolute path for github token fetching 2023-01-20 18:07:01 +01:00
Alexandre Aubin
485861e7a8 ci: Add a proper catalog linter instead of bash mess 2023-01-20 17:33:33 +01:00
Alexandre Aubin
cd4e6f0cbc update_app_levels: autosort keys 2023-01-20 17:14:30 +01:00
Alexandre Aubin
7904db0c6a Add a new script to update levels according to CI results and create the corresponding PR 2023-01-20 16:44:00 +01:00
Alexandre Aubin
83ab9a84aa Propagate the json/yml -> toml change to README generator 2023-01-20 00:02:59 +01:00
Aris
cee5e94e39
Correction des apostrophes (signe typographique) 2023-01-16 04:59:33 +01:00
Alexandre Aubin
311c2f877e autoreadme: add toml to requirements.txt 2023-01-11 10:05:00 +01:00
Alexandre Aubin
73b070e084 make_readme: support .toml manifests 2023-01-11 09:58:45 +01:00
tituspijean
1e5f83c616
Merge pull request #1544 from YunoHost/bot-repo-cleanup 2022-12-29 16:34:14 +01:00
tituspijean
1f1d5986da
Add a file for storing the token 2022-12-29 14:50:32 +01:00
Alexandre Aubin
9cece9466d packagingv2: also autocomment nginx reload lines which are superfluous 2022-12-04 03:47:09 +01:00
Alexandre Aubin
e70808eed1
convert_app_to_packaging_v2: add explanation on the meaning of the ldap and sso keys 2022-11-27 16:39:49 +01:00
tituspijean
c87472b0e2
Remove superfluous continue clause in bot-repo-cleanup 2022-11-26 21:03:19 +01:00
tituspijean
89f1da0ca3
Optimize the bot-repo-cleanup script 2022-11-26 20:53:50 +01:00
tituspijean
e0200c729e
Comment the bot-repo-cleanup script 2022-11-26 20:45:17 +01:00
tituspijean
94cdb2ca9e
Add yunohost-bot forks cleanup script 2022-11-23 22:01:58 +01:00
Tagada
0e9c48d98b
typo 2022-10-06 23:20:19 +02:00
Tagada
1a46657e0c
Revert "Add a warning on the README when not on the master branch" 2022-10-06 23:12:37 +02:00
Alexandre Aubin
0ab409fbd0 Packaging v2: add a 'fund' key in the upstream section 2022-08-14 02:15:40 +02:00
Alexandre Aubin
5e7b298710
Merge pull request #1337 from Tagadda/enh-readme-current-branch
Add a warning on the README when not on the master branch
2022-08-07 18:47:42 +02:00
Hadrien
1ca328a6b2 patch message 2022-08-07 16:34:00 +02:00
Hadrien
b1746c1d8c Add a script to add cpe id to manifests
indent + utf8
2022-08-07 16:33:55 +02:00
Alexandre Aubin
0a8be5faca Merge branch 'master' into enh-readme-current-branch 2022-08-05 23:12:31 +02:00
Alexandre Aubin
fa1818fb65 README-generator: improve mechanism to only add the 'specific branch' note when version is different from master + display master's version 2022-08-05 23:07:40 +02:00
tituspijean
99490631fc
Merge pull request #1338 from Tagadda/antifeatures 2022-08-05 17:46:06 +02:00
tituspijean
f931bde500
Add red circle to antifeatures title
Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2022-08-05 16:41:27 +02:00
tituspijean
43cde68aa7
Fix antifeatures list generation 2022-08-05 16:39:38 +02:00
Alexandre Aubin
7f7218191f packaging v2: add a 'CPE' field in upstream section 2022-08-05 14:56:52 +02:00
tituspijean
de65b8915a
Merge branch 'master' into enh-readme-current-branch 2022-08-05 11:16:47 +02:00
Alexandre Aubin
219cca1127 Fix v2 packaging convert script (_common.sh may not exist) 2022-08-04 17:05:46 +02:00
Alexandre Aubin
3df7f1d480 move autopatches/ inside tools/ 2022-08-04 11:17:46 +02:00
Alexandre Aubin
bae7463f41 Fix my previous commit /o\ 2022-08-03 21:31:17 +02:00
Alexandre Aubin
806c4ae1fd Yoloadd an app catalog v3 + tools to convert apps from v1 to v2 2022-08-03 21:03:02 +02:00
yalh76
0bfe86323c
Update README.md.j2 2022-06-07 22:48:50 +02:00
Tagadda
feb3abe7db fix 2022-05-30 11:59:54 +00:00
tituspijean
b4667aa4c5
Coquille dans le générateur de README, la suite
Co-authored-by: nicofrand <nicofrand@users.noreply.github.com>
2022-05-25 10:04:17 +02:00
tituspijean
f2a59924a3
Coquille dans le générateur de README
Co-authored-by: nicofrand <nicofrand@users.noreply.github.com>
2022-05-25 09:26:35 +02:00
OniriCorpe
eb71b999d5 harmonising the style of lists (MD004) 2022-05-21 16:09:09 +02:00
OniriCorpe
29413912c0 add angle brackets around bare URLs (fix MD034) 2022-05-13 18:15:34 +02:00
OniriCorpe
11af3b6480 forgotten layout corrections (line breaks) 2022-05-13 01:25:17 +02:00
OniriCorpe
d9d6dfa019 layout corrections (line breaks) 2022-05-13 01:19:44 +02:00
OniriCorpe
0c439bd381 Readmes improvements 2022-05-13 00:13:27 +02:00
Tagadda
499db257a1 Add Anti-Features in READMEs 2022-02-23 07:29:39 +00:00
Tagadda
10cf647b4c fix 2022-02-23 07:07:45 +00:00
Tagadda
235922bf5c Get the default branch from the apps.json 2022-02-23 06:36:19 +00:00
Tagadda
426ea91d4c Add a warning when not on a master branch 2022-02-22 23:44:44 +00:00
tituspijean
a855bbf07b
Homogenize bot's name/email b/w author/committer 2021-10-26 23:00:46 +02:00
tituspijean
c24c62ba22 Fix author and committer name for README auto-update 2021-09-04 00:42:51 +02:00
ericgaspar
027ef04e87 Add description 2021-08-22 16:57:07 +02:00
Laurent Peuch
93da394be6 [mod] add some debug logging 2021-06-14 16:34:26 +02:00
Laurent Peuch
19fb5931ad [mod] port to sanic for perfs 2021-06-14 01:48:34 +02:00
Laurent Peuch
9b664f5706 [mod] use with tempfile.TemporaryDirectory 2021-06-14 01:32:03 +02:00
Alexandre Aubin
fde5859b20
Merge pull request #1167 from nils-van-zuijlen/readme-fr
French README
2021-05-29 17:11:03 +02:00
Alexandre Aubin
116c9aca9e make_readme.py : cast path to str inside the function, because webhook.py calls make_readme with a string 2021-05-28 17:17:16 +02:00
ericgaspar
ca05a1c208
Remove superfluous double space
Signed-off-by: Nils VAN ZUIJLEN <nils.van-zuijlen@mailo.com>
2021-05-27 10:31:28 +02:00
Nils VAN ZUIJLEN
988580035c
Fix readme fr translation
Signed-off-by: Nils VAN ZUIJLEN <nils.van-zuijlen@mailo.com>
2021-05-27 10:22:51 +02:00
Nils VAN ZUIJLEN
e33145b53a
Use nbsp before semicolons in fr readme
Signed-off-by: Nils VAN ZUIJLEN <nils.van-zuijlen@mailo.com>
2021-05-27 10:16:47 +02:00
Nils VAN ZUIJLEN
b508d10c6c
Add type annotation to make_readme
Signed-off-by: Nils VAN ZUIJLEN <nils.van-zuijlen@mailo.com>
2021-05-26 18:46:51 +02:00
Nils VAN ZUIJLEN
f444224486
Run Black on make_readme.py
Signed-off-by: Nils VAN ZUIJLEN <nils.van-zuijlen@mailo.com>
2021-05-26 18:46:29 +02:00
Nils VAN ZUIJLEN
228abe50db
Use consistent quotes
Signed-off-by: Nils VAN ZUIJLEN <nils.van-zuijlen@mailo.com>
2021-05-26 18:45:39 +02:00
Nils VAN ZUIJLEN
4dda38194c
Use pathlib.Path everywhere
It's imported, let's use it more!

Signed-off-by: Nils VAN ZUIJLEN <nils.van-zuijlen@mailo.com>
2021-05-26 18:43:26 +02:00
Nils VAN ZUIJLEN
052b6c2416
Use script-based template finding
Instead of calling location based template finding

Signed-off-by: Nils VAN ZUIJLEN <nils.van-zuijlen@mailo.com>
2021-05-26 18:39:42 +02:00
Nils VAN ZUIJLEN
09fbff0060
Use /bin/env in make_readme shebang
It helps with virtualenv usage

Signed-off-by: Nils VAN ZUIJLEN <nils.van-zuijlen@mailo.com>
2021-05-26 18:37:26 +02:00
Alexandre Aubin
6a8d26b4fd
Merge pull request #1155 from Salamandar/app_readme_templates
Changes to the Readme.md.j2 :
2021-05-26 18:10:56 +02:00
Alexandre Aubin
2799e2ee08
Don't display break line --- at the top, it's meant only for the example app 2021-05-26 18:10:47 +02:00
Alexandre Aubin
976b8f04cb
AutoREADME: Add line break for before install badge
Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com>
2021-05-26 18:09:33 +02:00
Alexandre Aubin
afaee6454d Misc fixes after tests on the battlefield 2021-05-21 22:37:22 +02:00
Alexandre Aubin
a91a81fb06 Use /github as endpoint 2021-05-21 20:17:02 +02:00
Alexandre Aubin
41e500b9c6 Misc fixes 2021-05-21 20:12:00 +02:00
Salamandar
2f81f26a1b
Fix french.
Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
2021-05-21 19:54:30 +02:00
Salamandar
a01e0c8384
Add space before double-points in french
Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com>
2021-05-21 19:34:26 +02:00
Salamandar
4a0bd30968
Add space before double-points in french
Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com>
2021-05-21 19:33:47 +02:00
Salamandar
88baa11bd9
Add space before double-points in french
Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com>
2021-05-21 19:33:37 +02:00
Alexandre Aubin
5a83fd222f Add draft for autoreadme webhook service 2021-05-21 18:14:58 +02:00
Félix Piédallu
9ac168e1bf Changes to the Readme.md.j2 :
* Fix whitespace / empty lines in generated files
* Add an 'upstream.version' variable (with fallback on 'manifest.version')
2021-05-20 10:53:28 +02:00
Alexandre Aubin
385ff4b079 Misc tweaks 2021-05-10 17:23:40 +02:00
Alexandre Aubin
2318905750 Factorize README generation into a function 2021-04-28 20:14:48 +02:00
Alexandre Aubin
3b8d5f5152 Add requirements.txt 2021-04-28 20:11:53 +02:00
Alexandre Aubin
f8c150a217 Use argparse 2021-04-28 20:11:42 +02:00
Alexandre Aubin
e596f456f1 Add a README generator 2021-04-23 20:01:40 +02:00