YunoHost / yunorunner

Job manager/scheduler for YunoHost apps CI tests
14 stars 6 forks source link

Application branch name is not considered #45

Open gcollin opened 1 year ago

gcollin commented 1 year ago

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)"