Skip to content

How to Setup your Contribution Environment

mcarrano edited this page Apr 23, 2018 · 51 revisions

Get the tools and files you need to get started!

To contribute to PatternFly you will need the following:

  • A GitHub account. You can register for a GitHub account on GitHub. If you are new to GitHub, take some time to read the GitHub Guides to learn about tasks you’ll commonly do as a contributor like creating issues and submitting pull requests.
  • SourceTree This app is free and can be downloaded here. This will be used for synchronizing your working files on your desktop computer to the online PatternFly-Design repository in GitHub. Note that SourceTree is the tool that we recommend for this purpose, but there are alternatives. Some contributors have had success using the Git command line interface or an alternative tool called GitKraken for managing their local repo.
  • A text editor application. We recommend using Atom. This app is free and can be downloaded here. This is an editor that you can use to format your design content as a markdown file. All PatternFly documentation is written in Markdown (.md file). This is a simple text formatting language that is widely used for authoring text based web content.
  • A graphical editor capable of creating high-fidelity UI mockups. We recommend using Sketch with the PatternFly Design Kit. This is a custom Sketch Library and template that should be used for creating high-fidelity design mockups. The PatternFly Design Kit can be downloaded or cloned here.

Setting up GitHub

Setting up the GitHub environment for PatternFly is something you should only need to do once.

Get Started by Forking PatternFly-Design

  1. Log into GitHub and Go to the PatternFly-Design Repo on GitHub

  2. Click on Fork in the top right

  • If it asks Where should we fork this repository?, you will want to fork it to your personal GitHub account, for example; <yourgithubusername>/patternfly-design.

Creating a fork on GitHub

Set up SourceTree

Next, set up SourceTree to manage a local copy of your repo.

Connect an Account:

  1. Download SourceTree
  2. Open the SourceTree App (create an account if necessary, or sign in with, a SourceTree or Google account. Your JIRA account will not work.)
  3. On the Connect an account page, select the account that you will use to connect to the PatternFly-Design repo, by choosing GitHub and sign in with your GitHub credentials, then click the Continue button.

Signing into Github from SourceTree

Create a copy of the PatternFly-Design repo to your desktop

  1. On the Clone a repository page, scroll until you see the line named <yourgithubusername>/patternfly-design and select it.
  2. In the Destination field, type or browse for the desktop folder, in which you would like to store your local copy of patternfly-design. (This will create a local copy of the patternfly-design assets, on your desktop.) Now, click the Clone button.

Cloning a repository in SourceTree

  1. SourceTree will present you with a list of your repositories. Make sure you are on the Local tab, in the upper left corner, and double click on your patternfly-design repository, located in the list.

Viewing a local repository

  1. In the SourceTree application menu, go to Repository > Add Remote

Adding a remote repository

  • Name it upstream (make sure to use lowercase) and paste in the URL https://github.com/patternfly/patternfly-design.git
  • Note: upstream is the main repository and origin is your personal fork, or copy of the repository.

Adding a remote repository

  1. In the toolbar, click on the Fetch icon, then click the OK button. Fetch will import any changes, that have been committed to the remote repository, into your local repo.

Fetching in SourceTree

You're ready to start making contributions!