How to contribute - OpenLiberty/openliberty.io GitHub Wiki
When working on a new issue, this is the process that we follow in order to get the changes onto https://openliberty.io/.
- Make sure you have your environment setup. If you haven't already, please follow the instructions here: https://github.com/OpenLiberty/openliberty.io/wiki/Setting-up-local-website-development
- Check out the
draft
branch from https://github.com/OpenLiberty/openliberty.io/tree/draft - Run the command
git checkout -b <branch_name> draft
to create a branch off ofdraft
. The branch name should be a useful name based on what you are fixing/implementing. - Make the required changes to address the issue you are working on.
- When you have tested the changes locally and are ready to deliver, add the files to your git staging environment using
git add <path_to_file>
. - When all of the files you changed are added, run
git commit -m "<insert_your_commit_message_here>"
using a useful commit message for what you changed. - Push your changes to the https://github.com/OpenLiberty/openliberty.io repo. If you need more help on how to push to a remote see https://help.github.com/en/articles/pushing-commits-to-a-remote-repository.
- Make a pull request from your branch into
draft
. - Assign a reviewer to code review your code. If you are unsure who should review your code, leave the reviewer field blank and someone from the website team will review your pull request when they see it.
- If the reviewer requests changes, please make them on your local branch and test the changes. When ready, add the changes, commit them, and push the changes to the remote.
- When the code reviewer approves your changes, they will merge your code into
draft
and after an hour test your changes visually on https://draft-openlibertyio.mqj6zf7jocq.us-south.codeengine.appdomain.cloud/ to make sure they are visually correct. - If they look correct, create a new branch off
prod
. For that, first check out theprod
branch from https://github.com/OpenLiberty/openliberty.io/tree/prod. Then run the commandgit checkout -b <branch_name>
to create a new branch off ofprod
. - Cherry pick all commits made in the previous pull request by running the command
git cherry-pick <commit-hash>
. - After all commits are cherry-picked and pushed, create a pull request from your new branch into
staging
and request a review again. Your changes will be built on https://staging-openlibertyio.mqj6zf7jocq.us-south.codeengine.appdomain.cloud/. Do a final check on the staging site once it is merged in and then create a pull request fromstaging
intoprod
.