Skip to content

Commit e51a1d6

Browse files
author
Pasquale Pizzuti
committed
added Gitea support
1 parent 88bdd22 commit e51a1d6

File tree

5 files changed

+471
-0
lines changed

5 files changed

+471
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ or the relevant branch in the Plugin's GitHub repository, as per the table below
129129
* [SourceViewVC](docs/CONFIGURING.SourceViewVC.md)
130130
* [SourceSVN](docs/CONFIGURING.SourceSVN.md)
131131
* [SourceVisualSVNServer](docs/CONFIGURING.SourceVisualSVNServer.md)
132+
* [SourceGitea](SourceGitea/README.md)
132133

133134
9. Once configured, click the "Return to Repository" link and click either
134135
the "Import Everything" or "Import Newest Data" button to perform initial

SourceGitea/LICENSE

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
Copyright (c) 2024 Pasquale Pizzuti
2+
3+
Permission is hereby granted, free of charge, to any person
4+
obtaining a copy of this software and associated documentation
5+
files (the "Software"), to deal in the Software without
6+
restriction, including without limitation the rights to use,
7+
copy, modify, merge, publish, distribute, sublicense, and/or sell
8+
copies of the Software, and to permit persons to whom the
9+
Software is furnished to do so, subject to the following
10+
conditions:
11+
12+
The above copyright notice and this permission notice shall be
13+
included in all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
17+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
19+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
20+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22+
OTHER DEALINGS IN THE SOFTWARE.
23+

SourceGitea/README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
## One time Mantis source integration setup
2+
3+
- Copy the source integration plugins into mantis "plugins/" subdirectory
4+
- Install required plugins with Mantis plugin admin page
5+
- Get the "API Key" (like 'abcdeb8129a4451a35f47881') from the Source Integration plugin "manage_config_page"
6+
http://mantis.server.intra/plugin.php?page=Source/manage_config_page
7+
8+
## Gitea setup
9+
10+
- Login with an Owner (or Administrator) of a Project, go to *Settings -> Webhooks* and
11+
add a Gitea hook with Mantis URL and Mantis Source Integration plugin "API Key":
12+
`http://mantis.server.intra/plugin.php?page=Source/checkin&api_key=abcdeb8129a4451a35f47881`
13+
- Go to your user *Settings -> Applications -> Manage Access Tokens* and create a token. You will need it as "hub_app_secret" in Mantis configuration.
14+
15+
## Mantis repository setup
16+
17+
- In Mantis administration, create a repository with a unique name and of type "Gitea".
18+
- URL field is not used by the plugin.
19+
- Gitea config fields are:
20+
- hub_root: root url of the Gitea webserver, required to access Web API
21+
- hub_ownerid: name of the Gitea repository owner, can be an organization or an user.
22+
- hub_repoid: name of the Gitea repository.
23+
- hub_app_secret: the "Private token" of a user.
24+
- master_branch: use '*' or a list of branches to track
25+

0 commit comments

Comments
 (0)