Skip to content
This repository was archived by the owner on Dec 7, 2021. It is now read-only.

Commit 5a2b024

Browse files
committed
Initial commit
0 parents  commit 5a2b024

23 files changed

+508
-0
lines changed

.drone.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
workspace:
2+
path: src
3+
4+
pipeline:
5+
downstream:
6+
image: plugins/downstream
7+
repositories:
8+
- go-gitea/website
9+
- go-gitea/blog
10+
- go-gitea/docs
11+
- go-gitea/redirects
12+
when:
13+
event: push
14+
branch: master
15+
16+
gitter:
17+
image: plugins/gitter

.drone.yml.sig

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
eyJhbGciOiJIUzI1NiJ9.d29ya3NwYWNlOgogIHBhdGg6IHNyYwoKcGlwZWxpbmU6CiAgZG93bnN0cmVhbToKICAgIGltYWdlOiBwbHVnaW5zL2Rvd25zdHJlYW0KICAgIHJlcG9zaXRvcmllczoKICAgICAgLSBnby1naXRlYS93ZWJzaXRlCiAgICAgIC0gZ28tZ2l0ZWEvYmxvZwogICAgICAtIGdvLWdpdGVhL2RvY3MKICAgICAgLSBnby1naXRlYS9yZWRpcmVjdHMKICAgIHdoZW46CiAgICAgIGV2ZW50OiBwdXNoCiAgICAgIGJyYW5jaDogbWFzdGVyCgogIGdpdHRlcjoKICAgIGltYWdlOiBwbHVnaW5zL2dpdHRlcgo.pVtGpQuYROLy80MLE2VsPEt-26dYix3movsVcBBG2Us

.editorconfig

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# http://editorconfig.org
2+
3+
root = true
4+
5+
[*]
6+
charset = utf-8
7+
end_of_line = lf
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.go]
12+
indent_style = tab
13+
indent_size = 4
14+
15+
[*.tmpl]
16+
indent_style = tab
17+
indent_size = 2
18+
19+
[Makefile]
20+
indent_style = tab
21+
22+
[*.{less,yml}]
23+
indent_style = space
24+
indent_size = 2
25+
26+
[*.js]
27+
indent_style = space
28+
indent_size = 4

.github/issue_template.md

Whitespace-only changes.

.github/pull_request_template.md

Whitespace-only changes.

.lgtm

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
self_approval_off = false
2+
ignore_maintainers_file = true

CONTRIBUTING.md

+127
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
# Contribution Guidelines
2+
3+
## Introduction
4+
5+
This document explains how to contribute changes to the Gitea project.
6+
It assumes you have followed the
7+
[installation instructions](https://github.com/go-gitea/docs/tree/master/en-US/installation)
8+
9+
Sensitive security-related issues should be reported to [[email protected]](mailto:[email protected]).
10+
11+
## Bug reports
12+
13+
Please search the issues on the issue tracker with a variety of keywords to
14+
ensure your bug is not already reported.
15+
16+
If unique, [open an issue](https://github.com/go-gitea/gitea/issues/new)
17+
and answer the questions so we can understand and reproduce the problematic
18+
behavior.
19+
20+
The burden is on you to convince us that it is actually a bug in Gitea. This
21+
is easiest to do when you write clear, concise instructions so we can reproduce
22+
the behavior (even if it seems obvious). The more detailed and specific you are,
23+
the faster we will be able to help you. Check out
24+
[How to Report Bugs Effectively](http://www.chiark.greenend.org.uk/~sgtatham/bugs.html).
25+
26+
Please be kind, remember that Gitea comes at no cost to you, and you're
27+
getting free help.
28+
29+
## Discuss your design
30+
31+
The project welcomes submissions but please let everyone know what
32+
you're working on if you want to change or add something to the Gitea repositories.
33+
34+
Before starting to write something new for the Gitea project,
35+
please [file an issue](https://github.com/go-gitea/gitea/issues/new).
36+
Significant changes must go through the
37+
[change proposal process](https://github.com/go-gitea/proposals)
38+
before they can be accepted.
39+
40+
This process gives everyone a chance to validate the design,
41+
helps prevent duplication of effort,
42+
and ensures that the idea fits inside the goals for the project and tools.
43+
It also checks that the design is sound before code is written;
44+
the code review tool is not the place for high-level discussions.
45+
46+
## Testing redux
47+
48+
Before sending code out for review, run all the tests for the whole
49+
tree to make sure the changes don't break other usage and keep the compatibility on upgrade:
50+
51+
After running for a while, the command should print
52+
53+
```
54+
ALL TESTS PASSED
55+
```
56+
57+
## Code review
58+
59+
Changes to Gitea must be reviewed before they are accepted,
60+
no matter who makes the change even if an owners or a maintainer.
61+
We use github's pull request workflow to do that and use [lgtm](http://lgtm.co) to ensure every PR is reviewed by at least 2 maintainers.
62+
63+
## Sign your work
64+
65+
The sign-off is a simple line at the end of the explanation for the patch. Your
66+
signature certifies that you wrote the patch or otherwise have the right to pass
67+
it on as an open-source patch. The rules are pretty simple: If you can certify
68+
[DCO](DCO), then you just add a line to every git commit message:
69+
70+
```
71+
Signed-off-by: Joe Smith <[email protected]>
72+
```
73+
74+
Please use your real name, we really dislike pseudonyms or anonymous
75+
contributions. We are in the opensource world without secrets. If you set your
76+
`user.name` and `user.email` git configs, you can sign your commit automatically
77+
with `git commit -s`.
78+
79+
## Contributors
80+
81+
Everyone who sent a PR to Gitea that gets accepted will be as a contributor. Please send a PR to add your name to
82+
[CONTRIBUTORS](CONTRIBUTORS). For the format, see the [CONTRIBUTORS](CONTRIBUTORS).
83+
84+
## Maintainers
85+
86+
To make sure every PR have been checked, we make a team maintainers. Any PR MUST be reviewed and by at least two maintainers before it can get merged.
87+
Maintainers should be a contributor of gitea(or gogs) and contributed at least 4 accepted PRs. And a contributor should apply as a maintainer in [gitter Gitea develop](https://gitter.im/go-gitea/develop).
88+
And the owners or the team maintainer could invite the contributor. A maintainer should spend some time on code reviews. If some maintainer have no time
89+
to do that, he should apply to leave maintainers team and we will give him an honor to be as a member of advisor team. Of course, if an advisor have time to code view, welcome it back to maintainers team.
90+
If some one have no time to code view and forget to leave the maintainers, the owners have the power to move him from maintainers team to advisors team.
91+
92+
## Owners
93+
94+
Since Gitea is a pure community organization without any company support, to keep the development healthly We will elect the owners every year. Every time we will elect three owners.
95+
All the contributers could vote for three owners, one is the main owner, the other two are assistant owners. When the new owners have been elected, the old owners MUST move the power to the new owners.
96+
If some owner don't obey these rules, the other owners are allowed to revoke his owner status.
97+
98+
After the election, the new owners should say he agrees with these rules on the [CONTRIBUTING](CONTRIBUTING.md) on the [Gitter Gitea Channel](https://gitter.im/go-gitea/gitea). Below is the word to speak
99+
100+
```
101+
I'm glad to be an owner of Gitea, I agree with [CONTRIBUTING](CONTRIBUTING.md). I will spend part of my time on gitea and lead the development of gitea.
102+
```
103+
104+
For a honor to the owners, this document will add the history owners below:
105+
106+
2016-11-04 ~ 2017-12-31 lunny <[email protected]> tboerger <[email protected]> bkcsoft <[email protected]>
107+
108+
## Versions
109+
110+
Gitea has one master as a tip branch and have many version branch such as v0.9. v0.9 is a release branch and we will tag v0.9.0 both for binary download.
111+
If v0.9.0 have some bugs, we will accept PR on v0.9 and publish v0.9.1 and merge bug PR to master.
112+
113+
Branch master is a tip version, so if you wish a production usage, please download the latest release tag version. All the branch will be protected via github,
114+
All the PRs to all the branches should be review by two maintainers and pass the automatic tests.
115+
116+
## Copyright
117+
118+
Code that you contribute should use the standard copyright header:
119+
120+
```
121+
// Copyright 2016 - 2017 The Gitea Authors. All rights reserved.
122+
// Use of this source code is governed by a MIT-style
123+
// license that can be found in the LICENSE file.
124+
```
125+
126+
Files in the repository are copyright the year they are added and the year they are last changed. If the copyright author is changed, just copy the head
127+
below the old one.

CONTRIBUTORS

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Andrey Nering <[email protected]> (@andreynering)
2+
Kim Carlbäcker <[email protected]> (@bkcsoft)
3+
LefsFlare <[email protected]> (@LefsFlarey)
4+
Lunny Xiao <[email protected]> (@lunny)
5+
Rachid Zarouali <[email protected]> (@xinity)
6+
Rémy Boulanouar <[email protected]> (@DblK)
7+
Sandro Santilli <[email protected]> (@strk)
8+
Thibault Meyer <[email protected]> (@0xbaadf00d)
9+
Thomas Boerger <[email protected]> (@tboerger)

DCO

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
Developer Certificate of Origin
2+
Version 1.1
3+
4+
Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
5+
660 York Street, Suite 102,
6+
San Francisco, CA 94110 USA
7+
8+
Everyone is permitted to copy and distribute verbatim copies of this
9+
license document, but changing it is not allowed.
10+
11+
12+
Developer's Certificate of Origin 1.1
13+
14+
By making a contribution to this project, I certify that:
15+
16+
(a) The contribution was created in whole or in part by me and I
17+
have the right to submit it under the open source license
18+
indicated in the file; or
19+
20+
(b) The contribution is based upon previous work that, to the best
21+
of my knowledge, is covered under an appropriate open source
22+
license and I have the right under that license to submit that
23+
work with modifications, whether created in whole or in part
24+
by me, under the same open source license (unless I am
25+
permitted to submit under a different license), as indicated
26+
in the file; or
27+
28+
(c) The contribution was provided directly to me by some other
29+
person who certified (a), (b) or (c) and I have not modified
30+
it.
31+
32+
(d) I understand and agree that this project and the contribution
33+
are public and that a record of the contribution (including all
34+
personal information I submit with it, including my sign-off) is
35+
maintained indefinitely and may be redistributed consistent with
36+
this project or the open source license(s) involved.

0 commit comments

Comments
 (0)