Skip to content

Commit 7f77034

Browse files
authored
Merge pull request #458 from platanus/contributing-changes
Contributing changes
2 parents 91e2c2a + b907679 commit 7f77034

File tree

5 files changed

+81
-17
lines changed

5 files changed

+81
-17
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
name: Bug report
3+
about: Report a bug that could be fixed
4+
title: "[BUG]"
5+
labels: bug
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
Include either code to reproduce, or a link to a repo with the problem.
21+
22+
**Expected behavior**
23+
A clear and concise description of what you expected to happen.
24+
25+
**Screenshots**
26+
If applicable, add screenshots to help explain your problem.
27+
28+
**Additional context**
29+
Add any other context about the problem here.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: "[FR]"
5+
labels: enhancement
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Additional context**
17+
Add any other context or screenshots about the feature request here.

.github/pull_request_template.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
### Motivation / Background
2+
3+
<!--
4+
Describe why this Pull Request needs to be merged. What bug have you fixed? What feature have you added? Why is it important?
5+
If you are addressing a specific issue (a bug or a feature request), include "Closes #ISSUE" (replace with the issue number, remove the quotes) and the issue will be linked to this PR.
6+
-->
7+
8+
This Pull Request has been created because [REPLACE ME]
9+
10+
### Detail
11+
12+
This Pull Request changes [REPLACE ME]
13+
14+
### Additional information
15+
16+
<!-- Provide additional information such as benchmarks, reference to other repositories, screenshots or alternative solutions. -->
17+
18+
### Checklist
19+
20+
Before submitting the PR make sure the following are checked:
21+
22+
* [ ] This Pull Request is related to one change. Changes that are unrelated should be opened in separate PRs.
23+
* [ ] Commit message has a concise description of what changed and why.
24+
* [ ] Tests are added or updated if you fix a bug or add a feature.
25+
* [ ] Documentation has been added or updated if you add a feature or modify an existing one.
26+
* [ ] CHANGELOG files are updated for the changed libraries if there is a behavior change or additional feature (under the "Unreleased" heading if this is not a version change).
27+
* [ ] My changes don't introduce any linter rule violations.

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -250,10 +250,9 @@ On master/main branch...
250250

251251
1. Fork it
252252
2. Create your feature branch (`git checkout -b my-new-feature`)
253-
3. If you changed the javascript/scss files, run `yarn build`.
254-
4. Commit your changes (`git commit -am 'Add some feature'`)
255-
5. Push to the branch (`git push origin my-new-feature`)
256-
6. Create new Pull Request
253+
3. Commit your changes (`git commit -am 'Add some feature'`)
254+
4. Push to the branch (`git push origin my-new-feature`)
255+
5. Create new Pull Request
257256

258257
If you want to collaborate, please check [the rules](docs/CONTRIBUTING.md) first.
259258

docs/CONTRIBUTING.md

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@
33
## Rules
44

55
1. **Test everything you add or fix**. Functionality that is not tested is a headache to the future.
6-
1. **Document everything you add**, even an small option. If the functionality is hidden in the code, it is not useful.
6+
1. **Document everything you add**, even a small option. If the functionality is hidden in the code, it is not useful.
77
In general, we add a brief in the `README.md` and we extend the information in a file inside `/docs`.
88
1. **Avoid making Pull Requests with multiple changes**. If you intend to add/fix several things, please make a PR for each one.
99
1. **Ask before attempting to add new features**. In Platanus, we open the code of this gem to spread the happiness but we don't want to maintain things that are not useful for the company. Remember that you can always fork this gem and modify it according to your needs.
10-
1. **Respect the style rules**. We use [rubocop](https://github.com/bbatsov/rubocop), [stylelint](https://github.com/stylelint/stylelint) and [eslint](https://eslint.org/). Te rules are in the root of this gem.
10+
1. **Respect the style rules**. We use [rubocop](https://github.com/bbatsov/rubocop) and [eslint](https://eslint.org/). The rules are in the root of this gem. Any changes added to the PR because of a style rule violation should be added to the original commit in your branch with a [`git rebase`](https://help.github.com/articles/about-git-rebase/), don't add "style fix" as separate commits.
11+
1. **Use the template when submitting a PR**
1112

1213
## Dummy App
1314

@@ -44,17 +45,8 @@ If you're using homebrew on OS X you can do: `brew install chromedriver`.
4445
To run the tests you can do, in the root of the gem:
4546

4647
```
47-
# For running helper specs (/lib directory)
4848
bundle exec rake tests
49-
50-
# For running with all tests
51-
bundle exec rake tests
52-
5349
```
5450

55-
- The addons specs we put them inside `/spec/features`.
56-
- The helper classes specs we put them inside `/spec/lib`.
57-
58-
## Style rules
59-
60-
We use [Hound](https://houndci.com/) to check the style rules against pull requests. So, you don't need to install the code analyzers or linters if you don't want. But, don't make commits named "style fix" when the hound attacks you, or do it but use [`git rebase`](https://help.github.com/articles/about-git-rebase/).
51+
- We put the addons specs inside `/spec/features`.
52+
- We put the helper classes specs inside `/spec/lib`.

0 commit comments

Comments
 (0)