Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Application branch name is not considered #45

Open
gcollin opened this issue Jan 14, 2023 · 0 comments
Open

Application branch name is not considered #45

gcollin opened this issue Jan 14, 2023 · 0 comments

Comments

@gcollin
Copy link

gcollin commented Jan 14, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant