Skip to content
This repository was archived by the owner on May 30, 2024. It is now read-only.

Commit 1c404a0

Browse files
author
Noah Hanjun Lee
authored
Add 'contributing.md' (#227)
* Add contributing.md * Fix the bug report * Fix the contributing section
1 parent f72d289 commit 1c404a0

File tree

4 files changed

+85
-11
lines changed

4 files changed

+85
-11
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,11 @@ assignees: ''
1010
**Describe the bug**
1111
A clear and concise description of what the bug is.
1212

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
13+
**Logs**
1914

20-
**Expected behavior**
21-
A clear and concise description of what you expected to happen.
15+
```
16+
Input your error logs
17+
```
2218

2319
**Screenshots**
2420
If applicable, add screenshots to help explain your problem.

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
# Gitploy
22

3-
![test](https://github.com/gitploy-io/gitploy/actions/workflows/test.yaml/badge.svg) ![build](https://github.com/gitploy-io/gitploy/actions/workflows/publish.yaml/badge.svg)
4-
53
<p align="center">
64
<img src="./docs/images/logo_400.png"><br/>
5+
<img src="https://img.shields.io/github/v/release/gitploy-io/gitploy?display_name=release">
6+
<img src="https://img.shields.io/github/v/release/gitploy-io/gitploy?include_prereleases&label=pre-release">
7+
<img src="https://github.com/gitploy-io/gitploy/actions/workflows/test.yaml/badge.svg">
8+
<img src="https://github.com/gitploy-io/gitploy/actions/workflows/publish.yaml/badge.svg"><br/>
79
<b>Gitploy helps your team build the deployment system around GitHub in minutes.</b><br/>
810
<a href="https://docs.gitploy.io/">Documentation</a> | <a href="https://github.com/gitploy-io/gitploy/discussions">Community</a> | <a href="https://docs.gitploy.io/tasks/installation/">Installation Guide</a>
911
</p>
@@ -54,4 +56,6 @@ Documentation | Community | Installation Guide | Docker Image
5456

5557
## Contributors
5658

57-
TBD
59+
Don't be afraid to contribute! We have many things you can do to help out. If you're trying to contribute but stuck, please tag @hanjunlee.
60+
61+
You can check the [contributing](./docs/contributing.md) for exact details on how to contribute.

docs/contributing.md

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# Contributing
2+
3+
Please take a moment to review this document in order to make the contribution process easy and effective
4+
5+
## Support Requests
6+
7+
The [discussions](https://github.com/gitploy-io/gitploy/discussions) page is the preferred channel for support requests. Please do not use the issues for personal support requests.
8+
9+
## Feature Requests
10+
11+
Feature requests are always welcome. It is up to you to make a case to convince the developers of the merits of this feature. Please provide as much detail and context as possible.
12+
13+
## Pull Requests
14+
15+
Please discuss the feature on the issue before working on any significant pull requests. And pull requests should avoid containing unrelated commits.
16+
17+
Please check the checklist to increase the likelihood of your pull request being accepted on time:
18+
19+
* Run the unit tests.
20+
* Include unit tests when you contribute a new feature.
21+
* Include unit tests when you contribute a bug fix to prevent regressions.
22+
23+
## Development
24+
25+
### Server
26+
27+
1\. Install prerequsites:
28+
29+
* [golang](https://golang.org/dl/)+1.15
30+
* [mockgen](https://github.com/golang/mock)@v1.6.0
31+
32+
2\. Set up the `.env` file at the root directory:
33+
34+
```
35+
GITPLOY_SERVER_HOST=localhost
36+
GITPLOY_GITHUB_CLIENT_ID=XXXXXXXXXXXXXXX
37+
GITPLOY_GITHUB_CLIENT_SECRET=XXXXXXXXXXXXX
38+
GITPLOY_STORE_SOURCE=file:./sqlite3.db?cache=shared&_fk=1
39+
```
40+
41+
Note that if you want to interact with GitHub in the local environment, you should install tunneling tools such as [ngork](https://ngrok.com/) and expose your local server.
42+
43+
3\. Run the server:
44+
45+
```
46+
go run ./cmd/server
47+
```
48+
49+
### UI
50+
51+
1\. Install prerequisites:
52+
53+
* [node](https://nodejs.org/ko/download/)+14.17.0
54+
55+
2\. Install dependencies
56+
57+
```
58+
cd ./ui
59+
npm install
60+
```
61+
62+
3\. Set up the `.env` file at the `ui` directory:
63+
64+
```
65+
REACT_APP_GITPLOY_TOKEN=YOUR_TOKEN
66+
REACT_APP_GITPLOY_SERVER=http://localhost
67+
```
68+
69+
4\. Run:
70+
71+
```
72+
npm start
73+
```

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ nav:
3030
- References:
3131
- Configurations: references/configurations.md
3232
- "deploy.yml": references/deploy.yml.md
33+
- Contributing: contributing.md
3334
extra:
3435
social:
3536
- icon: fontawesome/brands/github

0 commit comments

Comments
 (0)