-
Notifications
You must be signed in to change notification settings - Fork 40
How to contribute
natalie-bernhard edited this page Feb 8, 2023
·
8 revisions
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
prod
branch from https://github.com/OpenLiberty/openliberty.io/tree/prod - Run the command
git checkout -b <branch_name>
to create a branch off ofprod
. 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 pull request from your original 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
.