Skip to content
This repository was archived by the owner on Mar 11, 2022. It is now read-only.

Commit b509c42

Browse files
authored
Template updates (#581)
* Updated issue and PR templates * Updated CONTRIBUTING information
1 parent 75cc7ad commit b509c42

File tree

3 files changed

+152
-38
lines changed

3 files changed

+152
-38
lines changed

.github/ISSUE_TEMPLATE.md

+24-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,28 @@
1-
Please include the following information in your ticket.
1+
Please [read these guidelines](http://ibm.biz/cdt-issue-guide) before opening an issue.
22

3-
- sync-android version(s) that are affected by this issue.
4-
- sync-android artifact you are using
3+
<!-- Issues will be CLOSED IMMEDIATELY if the following template is not completed. -->
4+
5+
## Bug Description
6+
7+
### 1. Steps to reproduce and the simplest code sample possible to demonstrate the issue
8+
<!--
9+
Outline the steps you take to make the problem happen.
10+
Provide the simplest code sample you can, in context, that reproduces the issue.
11+
-->
12+
13+
### 2. What you expected to happen
14+
15+
### 3. What actually happened
16+
17+
## Environment details
18+
<!--
19+
- Version(s) that are affected by this issue.
20+
> 2.0.2
21+
- Android or Java version (including vendor and platform)
22+
> Android 5.1, API level 22, Linux/armv7l
23+
> Java 1.8.0_151 OpenJDK macOS
24+
- sync-android artifact you are using:
525
- [ ] cloudant-sync-datastore-android
626
- [ ] cloudant-sync-datastore-android-encryption
727
- [ ] cloudant-sync-datastore-javase
8-
- Android or Java version (including vendor and platform).
9-
- A small code sample that demonstrates the issue.
28+
-->

.github/PULL_REQUEST_TEMPLATE.md

+91-13
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,102 @@
1+
<!--
12
Thanks for your hard work, please ensure all items are complete before opening.
3+
-->
4+
## Checklist
25

3-
- [ ] Tick to sign-off your agreement to the [Developer Certificate of Origin (DCO) 1.1](https://github.com/cloudant/sync-android/blob/master/DCO1.1.txt)
4-
- [ ] You have added tests for any code changes
5-
- [ ] You have updated the [CHANGES.md](https://github.com/cloudant/sync-android/blob/master/CHANGES.md)
6-
- [ ] You have completed the PR template below:
6+
- [ ] Tick to sign-off your agreement to the [Developer Certificate of Origin (DCO) 1.1](../blob/master/DCO1.1.txt)
7+
- [ ] Added tests for code changes _or_ test/build only changes
8+
- [ ] Updated the change log file (`CHANGES.md`|`CHANGELOG.md`) _or_ test/build only changes
9+
- [ ] Completed the PR template below:
710

8-
## What
11+
## Description
12+
<!--
13+
Provide a short description; saving the detail for the `Approach` section
914
10-
What was changed e.g.
11-
>Corrected NPE when trying to read settings from a migrated index.
15+
Also EITHER:
16+
Link to issue this PR is resolving, use the Fixes #nnn form so that the
17+
issue closes automatically when the PR merges e.g.:
1218
13-
## How
19+
Fixes #23
1420
15-
How the change was implemented and reasoning behind it, e.g.
16-
>Added a null check before attempting to call getBytes for deserialization.
21+
OR
22+
23+
For PRs without an associated issue and/or test/build issues
24+
25+
### 1. Steps to reproduce and the simplest code sample possible to demonstrate the issue
26+
### 2. What you expected to happen
27+
### 3. What actually happened
28+
-->
29+
30+
## Approach
31+
32+
<!--
33+
Be brief: which component(s) of the code base does the fix focus on.
34+
35+
A place to note whether the part of the code base that is being worked is
36+
particularly sensitive.
37+
-->
38+
39+
## Schema & API Changes
40+
41+
<!--
42+
EITHER:
43+
44+
- "No change"
45+
46+
OR
47+
48+
For public API (as opposed to internal) changes
49+
50+
- "Fixing bug in API, will change x in such-and-such way"
51+
-->
52+
53+
## Security and Privacy
54+
55+
<!--
56+
EITHER:
57+
58+
- "No change"
59+
60+
OR
61+
62+
"Making changes in e.g. auth|https|encryption|io
63+
need to be careful about..."
64+
65+
-->
1766

1867
## Testing
1968

20-
How to test your changes work, not required for documentation changes.
69+
<!--
70+
EITHER:
71+
72+
- Added new tests:
73+
- test x
74+
- test y
75+
- test z
76+
77+
OR
78+
79+
- Modified existing tests because ...
80+
81+
OR
82+
83+
- N/A build or packaging only changes
84+
85+
OR
86+
87+
In exceptional circumstances there may be a good reason we can't add automated
88+
tests, for example if a specific device is required to reproduce a problem.
89+
90+
- No new tests because...
91+
-->
92+
93+
## Monitoring and Logging
94+
<!--
95+
EITHER:
96+
97+
- "No change"
2198
22-
## Issues
99+
OR
23100
24-
Links to the github issue(s) (if present) that this pull request is resolving.
101+
- "Added new log line X..."
102+
-->

CONTRIBUTING.md

+37-20
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,19 @@
1-
# Developing this library
1+
# Contributing
22

3-
Cloudant Sync - Android is written in Java and uses
4-
[gradle](http://www.gradle.org) as its build tool.
3+
## Issues
4+
5+
Please [read these guidelines](http://ibm.biz/cdt-issue-guide) before opening an issue.
6+
If you still need to open an issue then we ask that you complete the template as
7+
fully as possible.
8+
9+
## Pull requests
510

6-
## Developer Certificate of Origin
11+
We welcome pull requests, but ask contributors to keep in mind the following:
12+
13+
* Only PRs with the template completed will be accepted
14+
* We will not accept PRs for user specific functionality
15+
16+
### Developer Certificate of Origin
717

818
In order for us to accept pull-requests, the contributor must sign-off a
919
[Developer Certificate of Origin (DCO)](DCO1.1.txt). This clarifies the
@@ -16,18 +26,12 @@ Please read the agreement and acknowledge it by ticking the appropriate box in t
1626

1727
- [x] Tick to sign-off your agreement to the Developer Certificate of Origin (DCO) 1.1
1828

19-
## Requirements
29+
## General information
2030

21-
The main requirements are:
22-
23-
* Java 1.6
24-
* Android SDK
25-
26-
Optionally, and recommended:
27-
28-
* CouchDB
31+
Cloudant Sync - Android is written in Java and uses
32+
[gradle](http://www.gradle.org) as its build tool.
2933

30-
## Coding guidelines
34+
### Coding guidelines
3135

3236
Adopting the [Google Java Style](https://google-styleguide.googlecode.com/svn/trunk/javaguide.html)
3337
with the following changes:
@@ -42,28 +46,39 @@ with the following changes:
4246
4.5.2
4347
Indent continuation of +4 characters fine, but I think
4448
IDEA defaults to 8, which is okay too.
45-
```
49+
```
50+
51+
## Requirements
4652
47-
## Installing requirements
53+
The main requirements are:
4854
49-
### Java
55+
* Java 1.6
56+
* Android SDK
57+
58+
Optionally, and recommended:
59+
60+
* CouchDB
61+
62+
### Installing requirements
63+
64+
#### Java
5065
5166
Follow the instructions for your platform.
5267
5368
54-
### CouchDB
69+
#### CouchDB
5570
5671
Again, using brew:
5772
5873
```bash
5974
$ brew install couchdb
6075
```
6176

62-
### Android SDK
77+
#### Android SDK
6378

6479
Follow the instructions provided on the android developer site.
6580

66-
## Building the library
81+
## Building
6782

6883
The project should build out of the box with:
6984

@@ -83,6 +98,8 @@ maven repository:
8398
$ gradlew install
8499
```
85100

101+
## Testing
102+
86103
### Running integration tests
87104

88105
These require a running couchdb:

0 commit comments

Comments
 (0)