We've strived to make the contribution process super simple! Here it is the process you should follow to contribute to this project.
- Fork original repo on your GH account
- Clone forked version and move into its directory
- Run
git remote add upstream https://github.com/oracle-devrel/devo.tutorials.git
- Run
git checkout main
to make sure the new branch comes from master - Create the new branch and switch to it:
git checkout -b <BRANCH_NAME>
- Do your implementation, then stage and commit it
git add .
git commit -m "insert here your comments"
- Before submit a PR, check if any commits have been made to the upstream main by running:
git fetch upstream
git checkout main
git merge upstream/main
- If any new commits, rebase your branch
git checkout <BRANCH_NAME>
git rebase main
- Commit and Push changes
git add .
git commit -m "insert here your comments"
git push origin <BRANCH_NAME>
- Create a Pull Request for your branch on GitHub by visiting your forked repo page.
When you create the PR, make sure to check the "Allow edits by maintainers" option in the PR. This allows for easy, rapid modifications that our tech editors might provide.
- After you submit the Pull Request, sit tight and look for any comments, edits, approvals or rejections!
- Once your PR has been approved and merged, it's time to do some cleanup.
- Run
git pull upstream main
- Remove merged branch
- Run
git checkout main
- Run
git branch -d <BRANCH_NAME>
- Run
- Commit
- Update the master branch in your forked repo
- Run
git push origin main
- Run
- Remove the branch from your forked repo
- Run
git push --delete origin <BRANCH_NAME>
- Run
We don't have a staging environment right now. However if you want to see how things will render while you're working on them you can take a look here
When a PR is received, our tech editors will usually refactor the content a bit, with the goal to make conveying your message as clearly as possible. Here's the process they go through to do this:
git remote add pr<PR #> [email protected]/<your GH username>/devo.tutorials.git
git fetch pr<PR #> <your BRANCH_NAME>
git checkout -b pr<PR #> pr<PR #>/<your BRANCH_NAME>
- Changes/edits are made
git add .
git commit -m "Suggested edits for PR<PR #>"
git push -f pr<PR #> HEAD
After the above is completed, the edited version will be included in the PR, at which point it can be merged (while still retaining the history and flow of the content).