Skip to content

Commit ffa8463

Browse files
authored
Merge pull request gogs#20 from go-gitea/maintain-contribute
Project unification, updates for contributors guide and github files
2 parents 00c2780 + 1592763 commit ffa8463

File tree

7 files changed

+62
-123
lines changed

7 files changed

+62
-123
lines changed

.editorconfig

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@ trim_trailing_whitespace = true
1111
indent_style = tab
1212
indent_size = 8
1313

14-
[*.tmpl]
15-
indent_style = tab
16-
indent_size = 2
17-
18-
[Makefile]
14+
[*.{tmpl,html}]
1915
indent_style = tab
16+
indent_size = 4
2017

2118
[*.{less,yml}]
2219
indent_style = space
23-
indent_size = 2
20+
indent_size = 4
2421

2522
[*.js]
2623
indent_style = space
2724
indent_size = 4
25+
26+
[Makefile]
27+
indent_style = tab

.github/issue_template.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
1. Please speak English, this is the language everybody of us can speak and write.
2+
2. Please ask questions or config/deploy problems on our Gitter channel: https://gitter.im/go-gitea/gitea
3+
3. Please take a moment to search that an issue doesn't already exist.
4+
4. Please give all relevant information below for bug reports, incomplete details will be handled as an invalid report.
5+
6+
**You MUST delete the content above including this line before posting, otherwise your pull request will be invalid.**

.github/pull_request_template.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Please check the following:
2+
3+
1. Make sure you are targeting the `master` branch, pull requests on release branches are only allowed for bug fixes.
4+
2. Read contributing guidelines: https://github.com/go-gitea/go-sdk/blob/master/CONTRIBUTING.md
5+
3. Describe what your pull request does and which issue you're targeting (if any)
6+
7+
**You MUST delete the content above including this line before posting, otherwise your pull request will be invalid.**

CONTRIBUTING.md

Lines changed: 30 additions & 106 deletions
Original file line numberDiff line numberDiff line change
@@ -2,161 +2,85 @@
22

33
## Introduction
44

5-
This document explains how to contribute changes to the Gitea
6-
project. It assumes you have followed the [installation
7-
instructions](https://github.com/go-gitea/docs/tree/master/en-US/installation)
8-
9-
Sensitive security-related issues should be reported to
10-
5+
This document explains how to contribute changes to the Gitea project. It assumes you have followed the [installation instructions](https://github.com/go-gitea/docs/tree/master/en-US/installation). Sensitive security-related issues should be reported to [[email protected]](mailto:[email protected]).
116

127
## Bug reports
138

14-
Please search the issues on the issue tracker with a variety of keywords
15-
to ensure your bug is not already reported.
9+
Please search the issues on the issue tracker with a variety of keywords to ensure your bug is not already reported.
1610

17-
If unique, [open an issue](https://github.com/go-gitea/gitea/issues/new)
18-
and answer the questions so we can understand and reproduce the
19-
problematic behavior.
11+
If unique, [open an issue](https://github.com/go-gitea/gitea/issues/new) and answer the questions so we can understand and reproduce the problematic behavior.
2012

21-
The burden is on you to convince us that it is actually a bug
22-
in Gitea. This is easiest to do when you write clear, concise
23-
instructions so we can reproduce the behavior (even if it seems
24-
obvious). The more detailed and specific you are, the faster
25-
we will be able to help you. Check out [How to Report Bugs
26-
Effectively](http://www.chiark.greenend.org.uk/~sgtatham/bugs.html).
13+
The burden is on you to convince us that it is actually a bug in Gitea. This is easiest to do when you write clear, concise instructions so we can reproduce the behavior (even if it seems obvious). The more detailed and specific you are, the faster we will be able to help you. Check out [How to Report Bugs Effectively](http://www.chiark.greenend.org.uk/~sgtatham/bugs.html).
2714

28-
Please be kind, remember that Gitea comes at no cost to you, and you're
29-
getting free help.
15+
Please be kind, remember that Gitea comes at no cost to you, and you're getting free help.
3016

3117
## Discuss your design
3218

33-
The project welcomes submissions but please let everyone know what
34-
you're working on if you want to change or add something to the Gitea
35-
repositories.
19+
The project welcomes submissions but please let everyone know what you're working on if you want to change or add something to the Gitea repositories.
3620

37-
Before starting to write something new for the Gitea project, please
38-
[file an issue](https://github.com/go-gitea/gitea/issues/new).
39-
Significant changes must go through the [change proposal
40-
process](https://github.com/go-gitea/proposals) before they can be
41-
accepted.
21+
Before starting to write something new for the Gitea project, please [file an issue](https://github.com/go-gitea/gitea/issues/new). Significant changes must go through the [change proposal process](https://github.com/go-gitea/proposals) before they can be accepted.
4222

43-
This process gives everyone a chance to validate the design, helps
44-
prevent duplication of effort, and ensures that the idea fits inside
45-
the goals for the project and tools. It also checks that the design is
46-
sound before code is written; the code review tool is not the place for
47-
high-level discussions.
23+
This process gives everyone a chance to validate the design, helps prevent duplication of effort, and ensures that the idea fits inside the goals for the project and tools. It also checks that the design is sound before code is written; the code review tool is not the place for high-level discussions.
4824

4925
## Testing redux
5026

51-
Before sending code out for review, run all the tests for the whole
52-
tree to make sure the changes don't break other usage and keep the
53-
compatibility on upgrade:
27+
Before sending code out for review, run all the tests for the whole tree to make sure the changes don't break other usage and keep the compatibility on upgrade. To make sure you are running the test suite exactly like we do you should install the CLI for [Drone CI](https://github.com/drone/drone) as we are using the server for continous testing, follow [these instructions](http://readme.drone.io/0.5/install/cli/). After that you can simply call `drone exec` within you working directory and it will try to run the test suite locally.
5428

55-
After running for a while, the command should print
29+
## Code review
5630

57-
```
58-
ALL TESTS PASSED
59-
```
31+
Changes to Gitea must be reviewed before they are accepted, no matter who makes the change even if an owner or a maintainer. We use GitHub's pull request workflow to do that and we also use [LGTM](http://lgtm.co) to ensure every PR is reviewed by at least 2 maintainers.
6032

61-
## Code review
33+
Please try to make your pull request easy to review for us. Please read the "[How to get faster PR reviews](https://github.com/kubernetes/kubernetes/blob/master/docs/devel/faster_reviews.md)" guide, it got useful tips for any project you may want to contribute. See some of the points:
6234

63-
Changes to Gitea must be reviewed before they are accepted, no matter
64-
who makes the change even if an owners or a maintainer. We use github's
65-
pull request workflow to do that and use [lgtm](http://lgtm.co) to ensure
66-
every PR is reviewed by at least 2 maintainers.
35+
* Make small pull requests. The smaller, the faster to review and the more likely it will be merged soon.
36+
* Don't make changes unrelated to your PR. Maybe there are typos on some comments, maybe refactoring would welcome on a function... but if that is not related to you PR, please make *another* PR for that.
37+
* Split big pull requests in multiple. An incremental change will be faster to review than a huge PR.
6738

6839
## Sign your work
6940

70-
The sign-off is a simple line at the end of the explanation for the
71-
patch. Your signature certifies that you wrote the patch or otherwise
72-
have the right to pass it on as an open-source patch. The rules are
73-
pretty simple: If you can certify [DCO](DCO), then you just add a line
74-
to every git commit message:
41+
The sign-off is a simple line at the end of the explanation for the patch. Your signature certifies that you wrote the patch or otherwise have the right to pass it on as an open-source patch. The rules are pretty simple: If you can certify [DCO](DCO), then you just add a line to every git commit message:
7542

7643
```
7744
Signed-off-by: Joe Smith <[email protected]>
7845
```
7946

80-
Please use your real name, we really dislike pseudonyms or anonymous
81-
contributions. We are in the opensource world without secrets. If you
82-
set your `user.name` and `user.email` git configs, you can sign your
83-
commit automatically with `git commit -s`.
84-
85-
## Contributors
86-
87-
Everyone who sent a PR to Gitea that gets accepted will
88-
be as a contributor. Please send a PR to add your name to
89-
[CONTRIBUTORS](CONTRIBUTORS). For the format, see the
90-
[CONTRIBUTORS](CONTRIBUTORS).
47+
Please use your real name, we really dislike pseudonyms or anonymous contributions. We are in the opensource world without secrets. If you set your `user.name` and `user.email` git configs, you can sign your commit automatically with `git commit -s`.
9148

9249
## Maintainers
9350

94-
To make sure every PR have been checked, we make a team maintainers. Any
95-
PR MUST be reviewed and by at least two maintainers before it can
96-
get merged. Maintainers should be a contributor of gitea(or gogs) and
97-
contributed at least 4 accepted PRs. And a contributor should apply as a
98-
maintainer in [gitter Gitea develop](https://gitter.im/go-gitea/develop).
99-
And the owners or the team maintainer could invite the contributor. A
100-
maintainer should spend some time on code reviews. If some maintainer
101-
have no time to do that, he should apply to leave maintainers team and
102-
we will give him an honor to be as a member of advisor team. Of course,
103-
if an advisor have time to code view, welcome it back to maintainers team.
104-
If some one have no time to code view and forget to leave the maintainers,
105-
the owners have the power to move him from maintainers team to advisors
106-
team.
51+
To make sure every PR have been checked, we got team maintainers. Any PR MUST be reviewed and by at least two maintainers before it can get merged. Maintainers should be a contributor of Gitea (or Gogs) and contributed at least 4 accepted PRs. A contributor should apply as a maintainer in [Gitter development channel](https://gitter.im/go-gitea/develop). The owners or the team maintainers could invite the contributor. A maintainer should spend some time on code reviews. If some maintainer have no time to do that, he should apply to leave the 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. If someone have no time to code review and forget to leave the maintainers team, the owners have the power to move him from maintainers team to advisors team.
10752

10853
## Owners
10954

110-
Since Gitea is a pure community organization without any company
111-
support, to keep the development healthly We will elect the owners every
112-
year. Every time we will elect three owners. All the contributers could
113-
vote for three owners, one is the main owner, the other two are assistant
114-
owners. When the new owners have been elected, the old owners MUST move
115-
the power to the new owners. If some owner don't obey these rules,
116-
the other owners are allowed to revoke his owner status.
55+
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. 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. If some owner don't obey these rules, the other owners are allowed to revoke his owner status.
11756

118-
After the election, the new owners should say he agrees with these
119-
rules on the [CONTRIBUTING](CONTRIBUTING.md) on the [Gitter Gitea
120-
Channel](https://gitter.im/go-gitea/gitea). Below is the word to speak
57+
After the election, the new owners should say he agrees with these rules on the [CONTRIBUTING](CONTRIBUTING.md) on the [Gitter main channel](https://gitter.im/go-gitea/gitea). Below are the words to speak:
12158

12259
```
123-
I'm glad to be an owner of Gitea,
124-
I agree with [CONTRIBUTING](CONTRIBUTING.md).
125-
I will spend part of my time on gitea
126-
and lead the development of gitea.
60+
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.
12761
```
12862

129-
For a honor to the owners, this document will add the history owners
130-
below:
131-
132-
2016-11-04 ~ 2017-12-31
63+
For a honor to the owners, this document will add the history owners below:
13364

134-
135-
- tboerger <[email protected]>
136-
- bkcsoft <[email protected]>
65+
* 2016-11-04 ~ 2017-12-31
66+
* [Lunny Xiao](https://github.com/lunny) <[email protected]>
67+
* [Thomas Boerger](https://github.com/tboerger) <[email protected]>
68+
* [Kim Carlbäcker](https://github.com/bkcsoft) <[email protected]>
13769

13870
## Versions
13971

140-
Gitea has one master as a tip branch and have many version branch
141-
such as v0.9. v0.9 is a release branch and we will tag v0.9.0 both for
142-
binary download. If v0.9.0 have some bugs, we will accept PR on v0.9
143-
and publish v0.9.1 and merge bug PR to master.
72+
Gitea has one master as a tip branch and have version branches such as `v0.9`. `v0.9` is a release branch and we will tag `v0.9.0` for binary download. If `v0.9.0` got some bug, we will accept pull requests on the `v0.9` branch and publish a `v0.9.1` tag, afterwards we will port the bug fix also to the master branch.
14473

145-
Branch master is a tip version, so if you wish a production usage,
146-
please download the latest release tag version. All the branch will be
147-
protected via github, All the PRs to all the branches should be review
148-
by two maintainers and pass the automatic tests.
74+
The `master` branch is a tip version, so if you wish a production usage, please download the latest release tag version. All the branches will be protected via github, all the PRs to all the branches should be review by two maintainers and pass the automatic tests.
14975

15076
## Copyright
15177

15278
Code that you contribute should use the standard copyright header:
15379

15480
```
155-
// Copyright 2016 - 2017 The Gitea Authors. All rights reserved.
81+
// Copyright 2016 The Gitea Authors. All rights reserved.
15682
// Use of this source code is governed by a MIT-style
15783
// license that can be found in the LICENSE file.
15884
```
15985

160-
Files in the repository are copyright the year they are added and the
161-
year they are last changed. If the copyright author is changed, just
162-
copy the head below the old one.
86+
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 below the old one.

CONTRIBUTORS

Lines changed: 0 additions & 9 deletions
This file was deleted.

MAINTAINERS

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
Andrey Nering <[email protected]> (@andreynering)
1+
Alexey Makhov <[email protected]> (@makhov)
2+
Andrey Nering <[email protected]> (@andreynering)
3+
Bwko <[email protected]> (@Bwko)
24
Kim Carlbäcker <[email protected]> (@bkcsoft)
35
LefsFlare <[email protected]> (@LefsFlarey)
46
Lunny Xiao <[email protected]> (@lunny)
57
Matthias Loibl <[email protected]> (@metalmatze)
68
Rachid Zarouali <[email protected]> (@xinity)
79
Rémy Boulanouar <[email protected]> (@DblK)
810
Sandro Santilli <[email protected]> (@strk)
9-
Thibault Meyer <[email protected]> (@0xbaadf00d)
11+
Thibault Meyer <[email protected]> (@0xbaadf00d)
1012
Thomas Boerger <[email protected]> (@tboerger)

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,15 @@ This project acts as a client SDK implementation written in Go to interact with
1111
the Gitea API implementation. For further informations take a look at the
1212
current [documentation](https://godoc.org/code.gitea.io/sdk/gitea).
1313

14+
## Contributing
15+
16+
Fork -> Patch -> Push -> Pull Request
17+
18+
## Authors
19+
20+
* [Maintainers](https://github.com/orgs/go-gitea/people)
21+
* [Contributors](https://github.com/go-gitea/go-sdk/graphs/contributors)
22+
1423
## License
1524

1625
This project is under the MIT License. See the [LICENSE](LICENSE) file for the

0 commit comments

Comments
 (0)