Skip to content

Commit b7cef8a

Browse files
committed
Update some docs
1 parent e6d872b commit b7cef8a

File tree

4 files changed

+281
-0
lines changed

4 files changed

+281
-0
lines changed

CODE_OF_CONDUCT.md

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as
6+
contributors and maintainers pledge to making participation in our project and
7+
our community a harassment-free experience for everyone, regardless of age, body
8+
size, disability, ethnicity, gender identity and expression, level of experience,
9+
nationality, personal appearance, race, religion, or sexual identity and
10+
orientation.
11+
12+
## Our Standards
13+
14+
Examples of behavior that contributes to creating a positive environment
15+
include:
16+
17+
* Using welcoming and inclusive language
18+
* Being respectful of differing viewpoints and experiences
19+
* Gracefully accepting constructive criticism
20+
* Focusing on what is best for the community
21+
* Showing empathy towards other community members
22+
23+
Examples of unacceptable behavior by participants include:
24+
25+
* The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
* Trolling, insulting/derogatory comments, and personal or political attacks
28+
* Public or private harassment
29+
* Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
* Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
33+
34+
## Our Responsibilities
35+
36+
Project maintainers are responsible for clarifying the standards of acceptable
37+
behavior and are expected to take appropriate and fair corrective action in
38+
response to any instances of unacceptable behavior.
39+
40+
Project maintainers have the right and responsibility to remove, edit, or
41+
reject comments, commits, code, wiki edits, issues, and other contributions
42+
that are not aligned to this Code of Conduct, or to ban temporarily or
43+
permanently any contributor for other behaviors that they deem inappropriate,
44+
threatening, offensive, or harmful.
45+
46+
## Scope
47+
48+
This Code of Conduct applies both within project spaces and in public spaces
49+
when an individual is representing the project or its community. Examples of
50+
representing a project or community include using an official project e-mail
51+
address, posting via an official social media account, or acting as an appointed
52+
representative at an online or offline event. Representation of a project may be
53+
further defined and clarified by project maintainers.
54+
55+
## Enforcement
56+
57+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58+
reported by contacting the project team at [email protected]. All
59+
complaints will be reviewed and investigated and will result in a response that
60+
is deemed necessary and appropriate to the circumstances. The project team is
61+
obligated to maintain confidentiality with regard to the reporter of an incident.
62+
Further details of specific enforcement policies may be posted separately.
63+
64+
Project maintainers who do not follow or enforce the Code of Conduct in good
65+
faith may face temporary or permanent repercussions as determined by other
66+
members of the project's leadership.
67+
68+
## Attribution
69+
70+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71+
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
72+
73+
[homepage]: https://www.contributor-covenant.org

CONTRIBUTING.md

Lines changed: 150 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,150 @@
1+
# Contributing
2+
3+
By participating to this project, you agree to abide our [code of
4+
conduct](/CODE_OF_CONDUCT.md).
5+
6+
## Setup your environment
7+
8+
`devopsays-cli` is written in [Go](https://golang.org/).
9+
10+
Prerequisites:
11+
12+
* `make`
13+
* [Go 1.8+](https://golang.org/doc/install)
14+
15+
Clone `devopsdays-cli` from source into `$GOPATH`:
16+
17+
```sh
18+
$ mkdir -p $GOPATH/src/github.com/devopsdays/devopsdays-cli
19+
$ cd $_
20+
$ git clone [email protected]:devopsdays/devopsdays-cli.git .
21+
```
22+
23+
Install the build and lint dependencies:
24+
25+
```console
26+
$ make setup
27+
```
28+
29+
Before starting your own work, ensure the setup is good by running the test suite:
30+
31+
```console
32+
$ make test
33+
```
34+
35+
### Git remote setup
36+
37+
Change our remote to be named `upstream`:
38+
39+
```sh
40+
$ git remote rename origin upstream
41+
```
42+
43+
Add your fork as `origin`:
44+
45+
```sh
46+
$ git remote add fork [email protected]:you/devopsdays-cli.git
47+
```
48+
49+
## Making changes
50+
51+
### Testing changes
52+
53+
If you feel like you have things going well, please run the full tests:
54+
55+
```sh
56+
$ make ci
57+
```
58+
59+
##3 Create a commit
60+
61+
Commit messages should be well formatted.
62+
Start your commit message with a title in the imperative, i.e., "Updates function foo" vs "Updated function foo". Capitalize it.
63+
64+
The title must be followed with a newline, then a more detailed description.
65+
66+
Please reference any GitHub issues on the last line of the commit message (e.g. `See #123`, `Closes #123`, `Fixes #123`).
67+
68+
An example:
69+
70+
```
71+
Add example for --debug flag
72+
73+
I added an example to the docs of the `--debug` flag to make
74+
the usage more clear.
75+
76+
Fixes #284
77+
```
78+
79+
### Branching and Pull Requests
80+
81+
(inspired by [Katrina Owen](kytrinyx)'s [excellent blog post](https://splice.com/blog/contributing-open-source-git-repositories-go/))
82+
83+
Assuming that the `you/devopsdays-cli` repo is at `origin`, and `devopsdays/devopsdays-cli` is at `upstream`, here's how to create a pull request:
84+
85+
```sh
86+
87+
$ git checkout -b make-thing-awesome
88+
$ git commit -a myfile.go
89+
$ git commit -s -m "Make thing more awesome"
90+
$ git push origin make-thing-awesome
91+
92+
```
93+
94+
Don't forget to keep up to date with `upstream`:
95+
96+
```sh
97+
$ git fetch upstream
98+
$ git reset --hard upstream/master
99+
```
100+
101+
## Developer Certification of Origin (DCO)
102+
103+
Licensing is very important to open source projects. It helps ensure the software continues to be available under the terms that the author desired.
104+
105+
This project uses [the MIT license](https://github.com/devopsdays/devopsdays-cli/blob/master/LICENSE).
106+
107+
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.
108+
109+
To make a good faith effort to ensure these criteria are met, we requires the Developer Certificate of Origin (DCO) process to be followed.
110+
111+
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/>.
112+
113+
```
114+
Developer's Certificate of Origin 1.1
115+
116+
By making a contribution to this project, I certify that:
117+
118+
(a) The contribution was created in whole or in part by me and I
119+
have the right to submit it under the open source license
120+
indicated in the file; or
121+
122+
(b) The contribution is based upon previous work that, to the
123+
best of my knowledge, is covered under an appropriate open
124+
source license and I have the right under that license to
125+
submit that work with modifications, whether created in whole
126+
or in part by me, under the same open source license (unless
127+
I am permitted to submit under a different license), as
128+
Indicated in the file; or
129+
130+
(c) The contribution was provided directly to me by some other
131+
person who certified (a), (b) or (c) and I have not modified
132+
it.
133+
134+
(d) I understand and agree that this project and the contribution
135+
are public and that a record of the contribution (including
136+
all personal information I submit with it, including my
137+
sign-off) is maintained indefinitely and may be redistributed
138+
consistent with this project or the open source license(s)
139+
involved.
140+
```
141+
142+
#### DCO Sign-Off Methods
143+
144+
The DCO requires a sign-off message in the following format appear on each commit in the pull request:
145+
146+
```
147+
Signed-off-by: George Bluth <[email protected]>
148+
```
149+
150+
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**.

README.e.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ Command-line utilities for the [devopsdays](https://www.devopsdays.org) website
1313

1414
![devopsdays gopher](gopher.png)![devopsdays yak](yak.png)
1515

16+
This project adheres to the Contributor Covenant [code of conduct](CODE_OF_CONDUCT.md). By participating, you are expected to uphold this code. We appreciate your contribution. Please refer to the [contributing guidelines](CONTRIBUTING.md) for details on how to help.
17+
1618
# {{toc 5}}
1719

1820
# Demo
@@ -58,6 +60,11 @@ brew install devopsdays/tap/devopsdays-cli
5860
| remove | | | x | | x | x | x | |
5961
| show | x | x | x | x | x | x | x | x |
6062

63+
64+
## Contributing
65+
66+
See [CONTRIBUTING.md](contributing.md) for details on how to contribute to this project.
67+
6168
# History
6269

6370
[CHANGELOG](CHANGELOG.md)
@@ -74,3 +81,24 @@ $ gump <patch|minor|major>
7481
- [commit](https://github.com/mh-cbon/commit)
7582
- [changelog](https://github.com/mh-cbon/changelog)
7683
- [emd](https://github.com/mh-cbon/emd)
84+
85+
# License
86+
87+
devopsdays-cli - Command-line utilities for the devopsdays.org website
88+
89+
| | |
90+
|:---------------------|:-----------------------------------------|
91+
| **Author:** | Matt Stratton (<[email protected]>)
92+
| **Copyright:** | Copyright 2017, Matt Stratton
93+
| **License:** | The MIT License
94+
95+
```
96+
The MIT License (MIT)
97+
98+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
99+
100+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
101+
102+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
103+
104+
```

README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ Command-line utilities for the [devopsdays](https://www.devopsdays.org) website
88

99
![devopsdays gopher](gopher.png)![devopsdays yak](yak.png)
1010

11+
This project adheres to the Contributor Covenant [code of conduct](CODE_OF_CONDUCT.md). By participating, you are expected to uphold this code. We appreciate your contribution. Please refer to the [contributing guidelines](CONTRIBUTING.md) for details on how to help.
12+
1113
# TOC
1214
- [Demo](#demo)
1315
- [Install](#install)
@@ -20,9 +22,11 @@ Command-line utilities for the [devopsdays](https://www.devopsdays.org) website
2022
- [$ devopsdays-cli create event --help](#-devopsdays-cli-create-event---help)
2123
- [Reference](#reference)
2224
- [Matrix of commands](#matrix-of-commands)
25+
- [Contributing](#contributing)
2326
- [History](#history)
2427
- [How to release](#how-to-release)
2528
- [Tools needed for release](#tools-needed-for-release)
29+
- [License](#license)
2630

2731
# Demo
2832

@@ -145,6 +149,11 @@ Global Flags:
145149
| remove | | | x | | x | x | x | |
146150
| show | x | x | x | x | x | x | x | x |
147151

152+
153+
## Contributing
154+
155+
See [CONTRIBUTING.md](contributing.md) for details on how to contribute to this project.
156+
148157
# History
149158

150159
[CHANGELOG](CHANGELOG.md)
@@ -161,3 +170,24 @@ $ gump <patch|minor|major>
161170
- [commit](https://github.com/mh-cbon/commit)
162171
- [changelog](https://github.com/mh-cbon/changelog)
163172
- [emd](https://github.com/mh-cbon/emd)
173+
174+
# License
175+
176+
devopsdays-cli - Command-line utilities for the devopsdays.org website
177+
178+
| | |
179+
|:---------------------|:-----------------------------------------|
180+
| **Author:** | Matt Stratton (<[email protected]>)
181+
| **Copyright:** | Copyright 2017, Matt Stratton
182+
| **License:** | The MIT License
183+
184+
```
185+
The MIT License (MIT)
186+
187+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
188+
189+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
190+
191+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
192+
193+
```

0 commit comments

Comments
 (0)