-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
contributing: Intitial commit, based on Pantheon 2 repo contribution …
…guidelines.
- Loading branch information
Showing
1 changed file
with
17 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,13 @@ | ||
# publishing-tutorial-sample-repo | ||
# Publishing tutorial sample repo | ||
A sample repo to be used in conjunction with the tutorial "Getting started publishing with Pantheon 2" | ||
|
||
[![Build Status](https://travis-ci.org/redhataccess/pantheon.png)](https://travis-ci.org/redhataccess/pantheon) | ||
[![Code Coverage](https://codecov.io/gh/redhataccess/pantheon/branch/master/graph/badge.svg)](https://codecov.io/github/redhataccess/pantheon?branch=master) | ||
|
||
Pantheon 2 is a modular documentation management and publication system based on asciidoc | ||
and built on top of Apache sling. | ||
* [Contributing to Pantheon](#contributing-to-pantheon) | ||
* [Installing Pantheon](#installing-pantheon) | ||
* [Prerequisites](#prerequisites) | ||
* [Environment Variables](#environment-variables) | ||
* [Building the application](#building-the-application) | ||
* [Unit tests](#unit-tests) | ||
* [Running the application](#running-the-application) | ||
* [Live deploy of code](#live-deploy-of-code) | ||
* [Using the application](#using-the-application) | ||
* [Other use cases](#other-use-cases) | ||
* [Developing the frontend code](#developing-the-frontend-code) | ||
* [End user documentation](#end-user-documentation) | ||
* [Contributing to this repo](#contributing-to-pantheon) | ||
|
||
## Contributing to Pantheon | ||
|
||
### Filing a bug for Pantheon 2 end-user documentation | ||
### Filing a bug | ||
|
||
If you have any suggestions to improve or extend the end-user documentation, create a new issue and tag @pantheon-doc-authors. | ||
If you have any suggestions to improve or extend this repo, add a new issue to the repo. | ||
|
||
### Prerequisites | ||
|
||
|
@@ -38,45 +22,44 @@ If you have any suggestions to improve or extend the end-user documentation, cre | |
|
||
Fork the repository so that you can create and work with branches independently of the `redhataccess/pantheon` repository. | ||
|
||
1. In a web browser, navigate to https://github.com/redhataccess/pantheon | ||
1. In a web browser, navigate to https://github.com/redhat-documentation/publishing-tutorial-sample-repo | ||
1. Click **Fork**. | ||
1. Click your user space in GitHub. | ||
|
||
### Cloning the repository | ||
|
||
After you have forked the repository, you must clone it to your local machine and add the original `redhataccess/pantheon` repository as an upstream remote. | ||
After you have forked the repository, you must clone it to your local machine and add the original `redhat-documentation/publishing-tutorial-sample-repo` repository as an upstream remote. | ||
|
||
1. From a terminal, clone the repository: | ||
|
||
```sh | ||
$ git clone [email protected]:<user-space>/pantheon.git | ||
$ git clone [email protected]:<user-space>/publishing-tutorial-sample-repo.git | ||
``` | ||
1. Set up `redhataccess/pantheon` as the upstream: | ||
1. Set up `redhat-documentation/publishing-tutorial-sample-repo` as the upstream: | ||
|
||
```sh | ||
$ cd pantheon | ||
$ git remote add upstream [email protected]:redhataccess/pantheon.git | ||
$ cd publishing-tutorial-sample-repo | ||
$ git remote add upstream [email protected]:redhat-documentation/publishing-tutorial-sample-repo.git | ||
``` | ||
|
||
### Creating a working branch | ||
|
||
Whenever you work on a new issue, you must create a new working branch based on the latest version of the upstream master branch. | ||
Pull requests should have a corresponing issue in the repo. Whenever you work on a new issue, you must create a new working branch based on the latest version of the upstream main branch. | ||
|
||
1. Ensure you are on master | ||
1. Ensure you are on main | ||
|
||
```sh | ||
$ git checkout master | ||
$ git checkout main | ||
``` | ||
1. Ensure your fork is up to date | ||
|
||
```sh | ||
$ git pull upstream master | ||
$ git pull upstream main | ||
``` | ||
1. Create a working branch based on the issue in JIRA. For example: | ||
|
||
1. Create a working branch based on the issue ID. For example: | ||
|
||
```sh | ||
$ git checkout -b FCCEUD-<ID#> | ||
$ git checkout -b 02 | ||
``` | ||
|
||
### Creating a pull request and completing review | ||
|
@@ -90,12 +73,11 @@ When your work is ready to be reviewed and merged, create a pull request. | |
``` | ||
1. From the repository page in GitHub, click **New pull request**. | ||
1. Select your working branch from the compare list. | ||
1. Add `WIP:` to the title of the pull request. This automatically converts the pull request to a draft pull request. | ||
1. Add `WIP:` to the title of the pull request. This automatically converts the pull request to a draft pull request, preventing it from being merged. | ||
1. Click **Create new pull request**. | ||
1. Add the **awaiting tech review** label to the pull request. | ||
1. In the pull request comment field, enter `@redhataccess/eud-tech-review Please review for technical completeness and accuracy`. | ||
|
||
|
||
### The review process | ||
|
||
Both the technical review and peer review processes take place in pull requests in GitHub. | ||
|