There are multiple ways to help make TimescaleDB better. All of our documentation and source for the PostgreSQL extension are available to use and review with GitHub.
You can make contributions to the documentation by creating a fork of the repository.
- Make sure you have a github account, and that you're signed in.
- Navigate to the Timescale Documentation
Repo click the
Fork
button in the top-right corner, and select the account you want to use. - Wait for GitHub to create your fork and redirect you.
- Clone the repository to your local machine. To find this URL, click the green
Code
button and copy the HTTPS URL:git clone https://github.com/<username>/docs.git
- List the current remote branches:
This command should list two remotes, both marked
git remote -v
origin
, like this:Theorigin https://github.com/<username>/docs.git (fetch) origin https://github.com/<username>/docs.git (push)
origin
remotes are your own fork, and you can do whatever you want here without changing the upstream repository. - Add the docs repo as an upstream:
git remote add upstream https://github.com/timescale/docs.git
- Check:
This command should now have the same two
git remote -v
origin
remotes as before, plus two more labelledupstream
, like this:origin https://github.com/<username>/docs.git (fetch) origin https://github.com/<username>/docs.git (push) upstream https://github.com/timescale/docs.git (fetch) upstream https://github.com/timescale/docs.git (push)
- Fetch the branches in the upstream repository:
git fetch upstream
- Merge the changes from the upstream
latest
branch, into your fork'slatest
branch:git merge upstream/latest
- Create a new branch for the work you want to do. Make sure you give it an
appropriate name, and include your username:
git checkout -b update-readme-username
- Make your changes.
- Add the updated files to your commit:
git add .
- Commit your changes:
git commit -m "Commit message here"
- Push your changes:
If git prompts you to set an upstream in order to push, use this command:
git push
git push --set-upstream origin <branchname>
- Create a pull request (PR) by navigating to https://github.com/timescale/docs
and clicking
Compare and Create Pull Request
. Write an informative commit message detailing your changes, choose reviewers, and save your PR. If you haven't yet finished the work you want to do, make sure you create a draft PR by selecting it from the drop down box in the GitHub web UI. This lets your reviewers know that you haven't finished work yet, while still being transparent about what you are working on, and making sure we all understand current progress.
Once you have checked out the repo and want to keep working on things, you need to ensure that your local copy of the repo stays up to date. If you don't do this, you will end up with merge conflicts.
- Check out your fork's
latest
branch:You will get a message like this:git checkout latest
BEWARE! This is usually a lie!Switched to branch 'latest' Your branch is up to date with 'origin/latest'.
- Fetch the branches in the upstream repository:
git fetch upstream
- Merge the changes from the upstream
latest
branch, into your fork'slatest
branch:git merge upstream/latest
- If you are continuing work you began earlier, check out the branch that contains your work. For new work, create a new branch. Doing this regularly as you are working will mean you keep your local copies up to date and avoid conflicts. You should do it at least every day before you begin work, and again whenever you switch branches.
Timescale is in the process of creating comprehensive writing and style standards. For the current guidelines, see contributing to documentation.
- Ryan Booz https://github.com/ryanbooz
- Lana Brindley https://github.com/Loquacity
- Hel Rabelo https://github.com/helrabelo
- Ted Sczelecki https://github.com/tedsczelecki