Skip to content

Commit 67c6360

Browse files
santoshhiremaniallgood
authored andcommitted
Guidelines for issue and contributing to the project fix #128
1 parent bfefbd8 commit 67c6360

File tree

5 files changed

+119
-0
lines changed

5 files changed

+119
-0
lines changed

.github/issue_template.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Describe your issue here.
2+
3+
### Steps to reproduce
4+
Tell us how to reproduce this issue.
5+
6+
### Expected behaviour
7+
Tell us what should happen
8+
9+
### Actual behaviour
10+
Tell us what happens instead
11+
12+
### Would you like to work on the issue?
13+
Tell us if you would like to work on this issue

.github/pull_request_template.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
## Description
2+
3+
Please include a summary of the change and which issue is fixed. List any dependencies that are required for this change.
4+
If there are any UI change, please include the screenshots also.
5+
6+
Fixes #(issue)
7+
8+
## Type of change
9+
Just put an x in the [] which are valid.
10+
- [ ] Bug fix (non-breaking change which fixes an issue)
11+
- [ ] New feature (non-breaking change which adds functionality)
12+
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
13+
14+
# How Has This Been Tested?
15+
16+
Please describe the tests that you ran to verify your changes.
17+
- [ ] `./gradlew assembleDebug assembleRelease`
18+
- [ ] `./gradlew checkstyle`
19+
20+
# Checklist:
21+
- [ ] My code follows the style guidelines of this project
22+
- [ ] I have performed a self-review of my own code
23+
- [ ] I have commented my code, particularly in hard-to-understand areas
24+
- [ ] I have made corresponding changes to the documentation
25+
- [ ] My changes generate no new warnings

CONTRIBUTING.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# Join the development
2+
* Before you join development, please set up the project on your local machine, run it and go through the application completely. Press on any button you can find and see where it leads to. Explore.You'll be more familiar with what is where and might even get some cool ideas on how to improve various aspects of the app.
3+
* If you would like to work on an issue, drop in a comment at the issue. If it is already assigned to someone, but there is no sign of any work being done, please free to drop in a comment so that the issue can be assigned to you if the previous assignee has dropped it entirely.
4+
5+
# Contributing
6+
7+
When contributing to this repository, please first discuss the change you wish to make via issue.
8+
9+
## Pull Request Process
10+
11+
1. Ensure any install or build dependencies are removed before the end of the layer when doing a
12+
build.
13+
2. Check that there are no conflicts and your request passes [Travis](Travis-ci.org) build. Check the log of the pass test if it fails the build.
14+
3. Give the description of the issue that you want to resolve in the pull request message. The format of the commit message to be fixed - **Fixes #[issue number] [Description of the issue]** Example: **Fixes #529: Add toast warning in `MainActivity.java`**
15+
4. Wait for the maintainers to review your pull request and do the changes if requested.
16+
17+
## Contributions Best Practices
18+
19+
### Commits
20+
21+
* Write clear meaningful git commit messages (Do read [here](http://chris.beams.io/posts/git-commit/))
22+
* Make sure your PR's description contains GitHub's special keyword references that automatically close the related issue when the PR is merged. (For more info click [here]( https://github.com/blog/1506-closing-issues-via-pull-requests))
23+
* When you make very very minor changes to a PR of yours (like for example fixing a failing Travis build or some small style corrections or minor changes requested by reviewers) make sure you squash your commits afterwards so that you don't have an absurd number of commits for a very small fix. (Learn how to squash at [here](https://davidwalsh.name/squash-commits-git ))
24+
* When you're submitting a PR for a UI-related issue, it would be really awesome if you add a screenshot of your change or a link to a deployment where it can be tested out along with your PR. It makes it very easy for the reviewers and you'll also get reviews quicker.
25+
26+
### Feature Requests and Bug Reports
27+
* When you file a feature request or when you are submitting a bug report to the [issue tracker](https://github.com/ctodobom/OpenNoteScanner/issues), make sure you add steps to reproduce it. Especially if that bug is some weird/rare one.
28+
29+
## Code of Conduct
30+
31+
### Our Standards
32+
33+
Examples of behavior that contributes to creating a positive environment
34+
include:
35+
36+
* Using welcoming and inclusive language
37+
* Being respectful of differing viewpoints and experiences
38+
* Gracefully accepting constructive criticism
39+
* Focusing on what is best for the community
40+
* Showing empathy towards other community members
41+
42+
### Our Responsibilities
43+
44+
Project maintainers are responsible for clarifying the standards of acceptable
45+
behavior and are expected to take appropriate and fair corrective action in
46+
response to any instances of unacceptable behavior.
47+
48+
Project maintainers have the right and responsibility to remove, edit, or
49+
reject comments, commits, code, issues, and other contributions
50+
that are not aligned to this Code of Conduct, or to ban temporarily or
51+
permanently any contributor for other behavior that they deem inappropriate,
52+
threatening, offensive, or harmful.
53+

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ $ export ANDROID_HOME=~/android-sdk-linux
7272
$ ./gradlew assembleRelease
7373
```
7474

75+
Instructions for Contributing
76+
-------------------------
77+
If you're new to open-source, we recommend you to checkout our [_Contributing Guidelines_](https://github.com/ctodobom/OpenNoteScanner/blob/master/CONTRIBUTING.md) and [Setup Guidelines](https://github.com/ctodobom/OpenNoteScanner/blob/master/SETUP_GUIDELINES.md). Feel free to fork the project and send us a pull request.
7578

7679
History
7780
-------

SETUP_GUIDELINES.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
## Remote Configuration
2+
After you clone the repository the default remote is `origin` and it refers to your fork on Github. You must keep track of the changes made to the original repository by setting up another remote named `upstream`.
3+
4+
1. Open terminal in your repository and type <br>`git remote add origin https://github.com/YOUR_USERNAME/OpenNoteScanner.git`
5+
2. Type <br>` git remote add upstream https://github.com/ctodobom/OpenNoteScanner.git `<br>to add upstream.
6+
3. Type ` git remote -v ` and you should see <br>
7+
```
8+
origin https://github.com/YOUR_USERNAME/OpenNoteScanner.git (fetch)
9+
origin https://github.com/YOUR_USERNAME/OpenNoteScanner.git (push)
10+
upstream https://github.com/ctodobom/OpenNoteScanner.git (fetch)
11+
upstream https://github.com/ctodobom/OpenNoteScanner.git (push)
12+
```
13+
14+
To now update your local copy type <br> `git fetch upstream` <br> `git merge upstream/master` <br> `git push`
15+
16+
## Steps for creating a Pull Request
17+
18+
1. Checkout to the master branch `git checkout master`
19+
2. Sync `git pull`
20+
3. Start a new branch with a suitable name `git checkout -b branch_name`
21+
4. Develop a new feature or solve an existing issue
22+
5. Add the changed files `git add file_name`
23+
6. Commit with a suitable message `git commit -m " Changes made "`
24+
7. Push `git push origin branch_name`
25+
8. Go to the Github Repository and create a pull request according to the [PULL_REQUEST_TEMPLATE](https://github.com/ctodobom/OpenNoteScanner/blob/master/.github/pull_request_template.md).

0 commit comments

Comments
 (0)