Skip to content

Commit d50ca8d

Browse files
author
Kent Rancourt
committed
doc(pr): update submitting pr docs
1 parent b07be0d commit d50ca8d

1 file changed

Lines changed: 14 additions & 19 deletions

File tree

docs/src/contributing/submitting-a-pull-request.md

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
# Submitting a Pull Request
22

3-
Proposed changes to Deis are made as GitHub [pull requests][pr].
3+
Proposed changes to Deis projects are made as GitHub pull requests.
44

55
## Design Document
66

7-
Before opening a pull request, ensure your change also references a design document if the contribution is substantial. For more information, see [design documents](design-documents.md).
7+
Before opening a pull request, ensure your change also references a design document if the contribution is substantial. For more information, see [Design Documents](design-documents.md).
88

99
## Single Issue
1010

11-
When fixing or implementing a GitHub issue, resist the temptation to refactor nearby code or to fix that potential bug you noticed. Instead, open a new [pull request][pr] just for that change.
12-
13-
It's hard to reach agreement on the merit of a PR when it isn't focused. Keeping concerns separated allows pull requests to be tested, reviewed, and merged more quickly.
11+
It's hard to reach agreement on the merit of a PR when it isn't focused. When fixing an issue or implementing a new feature, resist the temptation to refactor nearby code or to fix that potential bug you noticed. Instead, open a separate issue or pull request. Keeping concerns separated allows pull requests to be tested, reviewed, and merged more quickly.
1412

1513
Squash and rebase the commit or commits in your pull request into logical units of work with `git`. Include tests and documentation changes in the same commit, so that a revert would remove all traces of the feature or fix.
1614

17-
Most pull requests will reference a [GitHub issue][issue]. In the PR description - not in the commit itself - include a line such as "closes #1234". The issue referenced will then be closed when your PR is merged.
15+
Most pull requests will reference a GitHub issue. In the PR description - not in the commit itself - include a line such as "closes #1234". The issue referenced will automatically be closed when your PR is merged.
1816

1917

2018
## Include Tests
2119

22-
If you change or add functionality to any Deis code, your changes should include the necessary tests to prove that it works. Unit tests may be written with the component's implementation language (usually Go or Python), and functional and integration tests are written in Go. Test code can be found in the `tests/` directory of the Deis project.
20+
If you alter or add functionality to any Deis component, your changes should include the necessary tests to prove that it works. Unit tests may be written with the component's implementation language (usually Go or Python), and functional and integration tests are written in Go.
21+
22+
Integration test code spanning multiple Deis components can be found in the `tests/` directory of the [deis/workflow][workflow] project.
2323

2424
While working on local code changes, always run the tests. Be sure your proposed changes pass all of `./tests/bin/test-integration` on your workstation before submitting a PR.
2525

@@ -28,16 +28,14 @@ See [testing](testing.md) for more information.
2828

2929
## Include Docs
3030

31-
Any change to Deis that could affect a user's experience also needs a change or addition to the relevant documentation. Deis generates the HTML documentation hosted at <http://docs.deis.io/> from the text markup sources in the `docs/` directory.
32-
33-
See [the README](https://github.com/deis/deis/blob/master/docs/README.md) for more information.
31+
Changes to any Deis component that could affect a user's experience also require a change or addition to the relevant documentation. For most Deis components, this involves updating the component's _own_ documentation. In some cases where a component is tightly integrated into [deis/workflow][workflow], its documentation must also be updated.
3432

3533

3634
## Code Standards
3735

38-
Deis is a [Go][] and [Python][] project. For both languages, we agree with [The Zen of Python][zen], which emphasizes simple over clever. Readability counts.
36+
Deis components are implemented in [Go][] and [Python][]. For both languages, we agree with [The Zen of Python][zen], which emphasizes simple over clever. Readability counts.
3937

40-
Go code should always be run through `gofmt` on the default settings. Lines of code may be up to 99 characters long. Documentation strings and tests are required for all public methods. Use of third-party go packages should be minimal, but when doing so, vendor code into the Deis package with the [godep][] tool.
38+
Go code should always be run through `gofmt` on the default settings. Lines of code may be up to 99 characters long. Documentation strings and tests are required for all exported functions. Use of third-party go packages should be minimal, but when doing so, such dependencies should be managed via the [glide][] tool.
4139

4240
Python code should always adhere to [PEP8][], the python code style guide, with the exception that lines of code may be up to 99 characters long. Docstrings and tests are required for all public methods, although the [flake8][] tool used by Deis does not enforce this.
4341

@@ -63,9 +61,6 @@ git commit messages must follow this format:
6361
umVEX-8 series artifacts will need to be updated to umVX format
6462
with the consortium or vendor toolset.
6563

66-
!!! note
67-
You can install a git hook that checks your commit message format with `make commit-hook`.
68-
6964
### Subject Line
7065

7166
The first line of a commit message is its subject. It contains a brief description of the change, no longer than 50 characters.
@@ -80,7 +75,7 @@ These `{types}` are allowed:
8075
- **test** -> adding missing tests
8176
- **chore** -> maintenance
8277

83-
The `{scope}` specifies the location of the change, such as "controller," "tests", or "contrib". The `{subject}` should use an imperative, present-tense verb: "change," not "changes" or "changed." Don't capitalize the verb or add a period (.) at the end of the subject line.
78+
The `{scope}` specifies the location of the change, such as "Dockerfile," "tests", or "manifests". The `{subject}` should use an imperative, present-tense verb: "change," not "changes" or "changed." Don't capitalize the verb or add a period (.) at the end of the subject line.
8479

8580
### Message Body
8681

@@ -93,18 +88,18 @@ Separate a footer from the message body with a blank line. Mention any breaking
9388

9489
## Merge Approval
9590

96-
[Deis maintainers][maintainers] add "**LGTM**" (Looks Good To Me) or an equivalent comment to indicate that a PR is acceptable. Any code change - other than a simple typo fix or one-line documentation change - requires at least two maintainers to accept it.
91+
Any code change - other than a simple typo fix or one-line documentation change - requires at least two [Deis maintainers][maintainers] to accept it. Maintainers tag pull requests with "**LGTM1**" and "**LGTM2**" (Looks Good To Me) labels to indicate acceptance.
9792

9893
No pull requests can be merged until at least one core maintainer signs off with an LGTM. The other LGTM can come from either a core maintainer or contributing maintainer.
9994

10095
If the PR is from a Deis maintainer, then he or she should be the one to close it. This keeps the commit stream clean and gives the maintainer the benefit of revisiting the PR before deciding whether or not to merge the changes.
10196

10297
[go]: http://golang.org/
103-
[godep]: https://github.com/tools/godep
98+
[glide]: https://github.com/Masterminds/glide
10499
[flake8]: https://pypi.python.org/pypi/flake8/
105100
[issue]: https://github.com/deis/deis/issues
106101
[maintainers]: https://github.com/deis/deis/blob/master/MAINTAINERS.md
107102
[pep8]: http://www.python.org/dev/peps/pep-0008/
108-
[pr]: https://github.com/deis/deis/pulls
109103
[python]: http://www.python.org/
110104
[zen]: http://www.python.org/dev/peps/pep-0020/
105+
[workflow]: https://github.com/deis/workflow

0 commit comments

Comments
 (0)