Skip to content

Commit d138d09

Browse files
author
Ben Lavender
authored
Merge pull request #21 from github/add-code-of-conduct-1
Add license and CoC
2 parents 58be75a + 3a5882e commit d138d09

5 files changed

Lines changed: 123 additions & 3 deletions

File tree

CODE_OF_CONDUCT.md

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

CONTRIBUTING.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
## Contributing
2+
3+
[fork]: https://github.com/github/chatops-controller/fork
4+
[pr]: https://github.com/github/chatops-controller/compare
5+
[style]: https://github.com/styleguide/ruby
6+
[code-of-conduct]: CODE_OF_CONDUCT.md
7+
8+
Hi there! We're thrilled that you'd like to contribute to this project. Your help is essential for keeping it great.
9+
10+
Please note that this project is released with a [Contributor Code of Conduct][code-of-conduct]. By participating in this project you agree to abide by its terms.
11+
12+
## Submitting a pull request
13+
14+
0. [Fork][fork] and clone the repository
15+
0. Configure and install the dependencies: `script/bootstrap`
16+
0. Make sure the tests pass on your machine: `rake`
17+
0. Create a new branch: `git checkout -b my-branch-name`
18+
0. Make your change, add tests, and make sure the tests still pass
19+
0. Push to your fork and [submit a pull request][pr]
20+
0. Pat your self on the back and wait for your pull request to be reviewed and merged.
21+
22+
Here are a few things you can do that will increase the likelihood of your pull request being accepted:
23+
24+
- Follow the [style guide][style].
25+
- Write tests.
26+
- Keep your change as focused as possible. If there are multiple changes you would like to make that are not dependent upon each other, consider submitting them as separate pull requests.
27+
- Write a [good commit message](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html).
28+
29+
## Resources
30+
31+
- [How to Contribute to Open Source](https://opensource.guide/how-to-contribute/)
32+
- [Using Pull Requests](https://help.github.com/articles/about-pull-requests/)
33+
- [GitHub Help](https://help.github.com)
34+
35+
## Releasing
36+
37+
If you are the current maintainer of this gem:
38+
39+
* Create a branch for the release: `git checkout -b cut-release-vxx.xx.xx`
40+
* Ensure that tests are green: `script/test`
41+
* Bump gem version in `lib/chatops/controller/version.rb`
42+
* Make a PR to github/chatops-controller and merge it
43+
* Build a local gem: `gem build chatops-controller.gemspec`
44+
* Tag and push: `git tag vx.xx.xx; git push --tags`
45+
* Push to rubygems.org -- `gem push chatops-controller-x.x.x.gem`

LICENSE.txt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2017 miguelff
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,15 @@ with a problem, please report it in an issue.
126126

127127
## Development
128128

129+
Changes are welcome. Getting started:
130+
129131
```
130132
script/bootstrap
131133
script/test
132134
```
133135

136+
See [CONTRIBUTING.md](CONTRIBUTING.md) for contribution instructions.
137+
134138
## Upgrading from early versions
135139

136140
Early versions of RPC chatops had two major changes:
@@ -193,3 +197,7 @@ Becomes:
193197
Previous versions used a `CHATOPS_ALT_AUTH_TOKEN` as a shared secret. This form
194198
of authentication was deprecated and the public key form used above is now
195199
used instead.
200+
201+
### License
202+
203+
MIT. See the accompanying LICENSE file.

chatops-controller.gemspec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ require "chatops/controller/version"
77
Gem::Specification.new do |s|
88
s.name = "chatops-controller"
99
s.version = ChatopsController::VERSION
10-
s.authors = ["Ben Lavender"]
10+
s.authors = ["Ben Lavender", "GitHub"]
1111
s.homepage = "https://github.com/github/chatops-controller"
12-
s.email = ["bhuga@github.com"]
13-
s.license = "unknown - maybe we'll open source this?"
12+
s.email = ["opensource+chatops-controller@github.com"]
13+
s.license = "MIT"
1414
s.summary = %q{Rails helpers to create JSON-RPC chatops}
1515
s.description = %q{See the README for documentation"}
1616

0 commit comments

Comments
 (0)