YunoHost/yunorunner

Application branch name is not considered

Opened this issue · 0 comments

in apps.json, you describe which branch is the main one (master or main mostly):


"mongo-express": {
        "branch": "main",
        "category": "system_tools",
        "state": "working",
        "subtags": [
            "db"
        ],
        "url": "https://github.com/YunoHost-Apps/mongo-express_ynh"
    },

However this branch name is not used when yunorunner is parsing the file, see
https://github.com/YunoHost/yunorunner/blob/master/run.py#L302

repo = Repo.create(
                name=app_id,
                url=app_data["git"]["url"],

and
https://github.com/YunoHost/yunorunner/blob/master/run.py#L203


                repo.url = app_data["git"]["url"]
                repo.save()

=> The CI then fails with the error "Critical: Unable to find a default branch to test (master or stable)"