Skip to content

Commit a6b0412

Browse files
committed
Replace CONTRIBUTING.md with standard template for inspec
1 parent 7221271 commit a6b0412

File tree

1 file changed

+2
-136
lines changed

1 file changed

+2
-136
lines changed

CONTRIBUTING.md

Lines changed: 2 additions & 136 deletions
Original file line numberDiff line numberDiff line change
@@ -1,137 +1,3 @@
1-
# Contributing to Train-AWS
1+
# Contributing to a Progress Chef InSpec Project
22

3-
We are glad you want to contribute to `train-winrm`! This document will help answer common questions you may have during your first contribution.
4-
5-
## Submitting Issues
6-
7-
We utilize **Github Issues** for issue tracking and contributions. You can contribute in two ways:
8-
9-
1. Reporting an issue or making a feature request [here](https://github.com/inspec/train-winrm/issues/new).
10-
2. Adding features or fixing bugs yourself and contributing your code to Train-WinRM.
11-
12-
We ask you not to submit security concerns via Github. For details on submitting potential security issues please see <https://www.chef.io/security/>
13-
14-
## Contribution Process
15-
16-
We have a 3 step process for contributions:
17-
18-
1. Commit changes to a git branch, making sure to sign-off those changes for the [Developer Certificate of Origin](#developer-certification-of-origin-dco).
19-
2. Create a Github Pull Request for your change, following the instructions in the pull request template.
20-
3. Perform a [Code Review](#code-review-process) with the project maintainers on the pull request.
21-
22-
### Pull Request Requirements
23-
24-
Chef Projects are built to last. We strive to ensure high quality throughout the experience. In order to ensure this, we require that all pull requests to Chef projects meet these specifications:
25-
26-
1. **Tests:** To ensure high quality code and protect against future regressions, we require all the code in Chef Projects to have appropriate test coverage. If a new feature is being added, that means unit tests that check internal correctness, and functional tests that verify user experience. For bug fixes, that means tests that clearly demonstrate the defect, fail prior to the change, and pass after the change. See the [test](https://github.com/inspec/train-winrm/tree/master/test)
27-
directory for the existing tests and use ```bundle exec rake test``` to run them.
28-
2. **Green CI Tests:** We use [Travis CI](https://travis-ci.org/) and/or [AppVeyor](https://www.appveyor.com/) CI systems to test all pull requests. We require these test runs to succeed on every pull request before being merged.
29-
30-
In addition to this it would be nice to include the description of the problem you are solving
31-
with your change. You can use [Issue Template](https://github.com/inspec/train-winrm/tree/master/ISSUE_TEMPLATE.md) in the description section
32-
of the pull request.
33-
34-
### Code Review Process
35-
36-
Code review takes place in Github pull requests. See [this article](https://help.github.com/articles/about-pull-requests/) if you're not familiar with Github Pull Requests.
37-
38-
Once you open a pull request, project maintainers will review your code and respond to your pull request with any feedback they might have. The process at this point is as follows:
39-
40-
1. Two thumbs-up (:+1:) are required from project maintainers. See the master maintainers document for Train projects at <https://github.com/inspec/train-winrm/blob/master/MAINTAINERS.md>.
41-
2. When ready, your pull request will be merged into `master`, we may require you to rebase your PR to the latest `master`.
42-
3. Once the PR is merged, you will be included in `CHANGELOG.md`.
43-
44-
### Developer Certification of Origin (DCO)
45-
46-
Licensing is very important to open source projects. It helps ensure the software continues to be available under the terms that the author desired.
47-
48-
Chef uses [the Apache 2.0 license](https://github.com/chef/chef/blob/master/LICENSE) to strike a balance between open contribution and allowing you to use the software however you would like to.
49-
50-
The license tells you what rights you have that are provided by the copyright holder. It is important that the contributor fully understands what rights they are licensing and agrees to them. Sometimes the copyright holder isn't the contributor, such as when the contributor is doing work on behalf of a company.
51-
52-
To make a good faith effort to ensure these criteria are met, Chef requires the Developer Certificate of Origin (DCO) process to be followed.
53-
54-
The DCO is an attestation attached to every contribution made by every developer. In the commit message of the contribution, the developer simply adds a Signed-off-by statement and thereby agrees to the DCO, which you can find below or at <http://developercertificate.org/>.
55-
56-
```
57-
Developer's Certificate of Origin 1.1
58-
59-
By making a contribution to this project, I certify that:
60-
61-
(a) The contribution was created in whole or in part by me and I
62-
have the right to submit it under the open source license
63-
indicated in the file; or
64-
65-
(b) The contribution is based upon previous work that, to the
66-
best of my knowledge, is covered under an appropriate open
67-
source license and I have the right under that license to
68-
submit that work with modifications, whether created in whole
69-
or in part by me, under the same open source license (unless
70-
I am permitted to submit under a different license), as
71-
Indicated in the file; or
72-
73-
(c) The contribution was provided directly to me by some other
74-
person who certified (a), (b) or (c) and I have not modified
75-
it.
76-
77-
(d) I understand and agree that this project and the contribution
78-
are public and that a record of the contribution (including
79-
all personal information I submit with it, including my
80-
sign-off) is maintained indefinitely and may be redistributed
81-
consistent with this project or the open source license(s)
82-
involved.
83-
```
84-
85-
For more information on the change see the Chef Blog post [Introducing Developer Certificate of Origin](https://blog.chef.io/2016/09/19/introducing-developer-certificate-of-origin/)
86-
87-
#### DCO Sign-Off Methods
88-
89-
The DCO requires a sign-off message in the following format appear on each commit in the pull request:
90-
91-
```
92-
Signed-off-by: Julia Child <[email protected]>
93-
```
94-
95-
The DCO text can either be manually added to your commit body, or you can add either **-s** or **--signoff** to your usual git commit commands. If you forget to add the sign-off you can also amend a previous commit with the sign-off by running **git commit --amend -s**. If you've pushed your changes to Github already you'll need to force push your branch after this with **git push -f**.
96-
97-
### Obvious Fix Policy
98-
99-
Small contributions, such as fixing spelling errors, where the content is small enough to not be considered intellectual property, can be submitted without signing the contribution for the DCO.
100-
101-
As a rule of thumb, changes are obvious fixes if they do not introduce any new functionality or creative thinking. Assuming the change does not affect functionality, some common obvious fix examples include the following:
102-
103-
- Spelling / grammar fixes
104-
- Typo correction, white space and formatting changes
105-
- Comment clean up
106-
- Bug fixes that change default return values or error codes stored in constants
107-
- Adding logging messages or debugging output
108-
- Changes to 'metadata' files like Gemfile, .gitignore, build scripts, etc.
109-
- Moving source files from one directory or package to another
110-
111-
**Whenever you invoke the "obvious fix" rule, please say so in your commit message:**
112-
113-
```
114-
------------------------------------------------------------------------
115-
commit 370adb3f82d55d912b0cf9c1d1e99b132a8ed3b5
116-
Author: Julia Child <[email protected]>
117-
Date: Wed Sep 18 11:44:40 2015 -0700
118-
119-
Fix typo in the README.
120-
121-
Obvious fix.
122-
123-
------------------------------------------------------------------------
124-
```
125-
126-
## Train Community
127-
128-
Train is made possible by a strong community of developers, system administrators, auditor and security experts. If you have any questions or if you would like to get involved in the Train community you can check out:
129-
130-
- [Chef Community Slack](https://community-slack.chef.io/)
131-
132-
Train discussion usually happens is the `#inspec` channel.
133-
134-
Also here are some additional pointers to some awesome Chef content:
135-
136-
- [Learn Chef](https://learn.chef.io/)
137-
- [Chef Website](https://www.chef.io/)
3+
Thanks you for your interest in contribuing to this project! It is part of the larger Progress Chef InSpec project. Contribution guidelines can be found at [Contributing to Progress Chef InSpec](https://chef.github.io/chef-oss-practices/projects/inspec/contributing/).

0 commit comments

Comments
 (0)