We've strived to make the contribution process super simple! There are, however, some strict requirements for your content formatting, so please see this README when writing the actual content.
Once your content conforms to the requirements above, the following 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 -am "insert your comments here"
- 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 #> git@github.com/<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).
ORACLE AND ITS AFFILIATES DO NOT PROVIDE ANY WARRANTY WHATSOEVER, EXPRESS OR IMPLIED, FOR ANY SOFTWARE, MATERIAL OR CONTENT OF ANY KIND CONTAINED OR PRODUCED WITHIN THIS REPOSITORY, AND IN PARTICULAR SPECIFICALLY DISCLAIM ANY AND ALL IMPLIED WARRANTIES OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE. FURTHERMORE, ORACLE AND ITS AFFILIATES DO NOT REPRESENT THAT ANY CUSTOMARY SECURITY REVIEW HAS BEEN PERFORMED WITH RESPECT TO ANY SOFTWARE, MATERIAL OR CONTENT CONTAINED OR PRODUCED WITHIN THIS REPOSITORY. IN ADDITION, AND WITHOUT LIMITING THE FOREGOING, THIRD PARTIES MAY HAVE POSTED SOFTWARE, MATERIAL OR CONTENT TO THIS REPOSITORY WITHOUT ANY REVIEW. USE AT YOUR OWN RISK.