Skip to content

What is the procedure to contribute a new example?

OpenLB – Open Source Lattice Boltzmann Code Forums on OpenLB General Topics What is the procedure to contribute a new example?

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #8764
    Danial.Khazaeipoul
    Participant

    Dear OpenLB developers and maintainers,

    Would you please explain the procedure to contribute a new example?

    Regards,
    Danial

    #8765
    Adrian
    Keymaster

    You can create a merge request to our public Git repository.

    Looking forward to your contribution!

    #8814
    Danial.Khazaeipoul
    Participant

    Dear Adrian,

    I just tried to follow the standard procedure. Here is the steps I taken before pushing the new branch to your public repository:

    1. Cloned OpenLB’s public repository
    2. Created a new branch off the “master” branch
    3. Added and committed the changes (only a new example is added)
    4. Pushed the new branch to remote

    However, I got the following error at step 4:

    remote: You are not allowed to push code to this project

    Regards,
    Danial

    #8816
    Adrian
    Keymaster

    Can you confirm that the remote of your local repository is actually pointing to your clone and not the release repository? This is the likely reason for this error.

    #8817
    Danial.Khazaeipoul
    Participant

    Here is the output of “git remote -v” on my local repository:

    origin https://gitlab.com/openlb/release.git (fetch)
    origin https://gitlab.com/openlb/release.git (push)

    If I am not supposed to push my new branch to the release repository, then how can I later submit a merge request to the master branch on your public repository? Would you please further elaborate?

    #8818
    Danial.Khazaeipoul
    Participant

    I am asking because usually only the master or main branch is write-protected, which means users other than admins are not permitted to make unauthorized changes. In this case, any change must go through a merge request to be added to the main branch. However, users are able to create a new branch and push it to the remote repository which later can be merge into the main branch upon approval. Can you explain how OpenLB’s repository works?

    #8820
    Adrian
    Keymaster

    You can see documentation on this process by Gitlab.

    You can create a merge request from your fork of the repository. This is the common way of handling things in projects hosted on Git(lab,hub) in my experience – of course recurring contributors usually will at some point get direct access to the upstream repository but most changes are handled via forks and merge requests.

    #8821
    Danial.Khazaeipoul
    Participant

    Thank you for the explanation.

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.