Skip to content

Application branch name is not considered #45

@gcollin

Description

@gcollin

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions