-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fix-15865-spaces-in-webhook-filepath
- Loading branch information
Showing
83 changed files
with
1,253 additions
and
168 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
--- | ||
date: "2016-12-01T16:00:00+02:00" | ||
title: "Install on Cloud Provider" | ||
slug: "install-on-cloud-provider" | ||
weight: 20 | ||
toc: false | ||
draft: false | ||
menu: | ||
sidebar: | ||
parent: "installation" | ||
name: "On cloud provider" | ||
weight: 20 | ||
identifier: "install-on-cloud-provider" | ||
--- | ||
|
||
# Installation on Cloud Provider | ||
|
||
**Table of Contents** | ||
|
||
{{< toc >}} | ||
|
||
## Cloudron | ||
|
||
Gitea is available as a 1-click install on [Cloudron](https://cloudron.io). | ||
Cloudron makes it easy to run apps like Gitea on your server and keep them up-to-date and secure. | ||
|
||
[![Install](/cloudron.svg)](https://cloudron.io/button.html?app=io.gitea.cloudronapp) | ||
|
||
The Gitea package is maintained [here](https://git.cloudron.io/cloudron/gitea-app). | ||
|
||
There is a [demo instance](https://my.demo.cloudron.io) (username: cloudron password: cloudron) where | ||
you can experiment with running Gitea. | ||
|
||
## Vultr | ||
|
||
Gitea can found in [Vultr](https://www.vultr.com)'s marketplace. | ||
|
||
To deploy it have a look at https://www.vultr.com/marketplace/apps/gitea. | ||
|
||
## DigitalOcean | ||
|
||
[DigitalOcean](https://www.digitalocean.com) has gitea as droplet in his marketplace. | ||
|
||
Just create a new [Gitea Droplet](https://marketplace.digitalocean.com/apps/gitea). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
// Copyright 2021 The Gitea Authors. All rights reserved. | ||
// Use of this source code is governed by a MIT-style | ||
// license that can be found in the LICENSE file. | ||
|
||
package integrations | ||
|
||
import ( | ||
"net/http" | ||
"testing" | ||
|
||
"code.gitea.io/gitea/models" | ||
api "code.gitea.io/gitea/modules/structs" | ||
"github.com/stretchr/testify/assert" | ||
) | ||
|
||
func TestAPIPullCommits(t *testing.T) { | ||
defer prepareTestEnv(t)() | ||
pullIssue := models.AssertExistsAndLoadBean(t, &models.PullRequest{ID: 2}).(*models.PullRequest) | ||
assert.NoError(t, pullIssue.LoadIssue()) | ||
repo := models.AssertExistsAndLoadBean(t, &models.Repository{ID: pullIssue.HeadRepoID}).(*models.Repository) | ||
|
||
session := loginUser(t, "user2") | ||
req := NewRequestf(t, http.MethodGet, "/api/v1/repos/%s/%s/pulls/%d/commits", repo.OwnerName, repo.Name, pullIssue.Index) | ||
resp := session.MakeRequest(t, req, http.StatusOK) | ||
|
||
var commits []*api.Commit | ||
DecodeJSON(t, resp, &commits) | ||
|
||
if !assert.Len(t, commits, 2) { | ||
return | ||
} | ||
|
||
assert.Equal(t, "5f22f7d0d95d614d25a5b68592adb345a4b5c7fd", commits[0].SHA) | ||
assert.Equal(t, "4a357436d925b5c974181ff12a994538ddc5a269", commits[1].SHA) | ||
} | ||
|
||
// TODO add tests for already merged PR and closed PR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
...gitea-repositories-meta/user2/repo2.git/objects/10/32bbf17fbc0d9c95bb5418dabe8f8c99278700
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+75 Bytes
...gitea-repositories-meta/user2/repo2.git/objects/26/f842bcad37fa40a1bb34cbb5ee219ee35d863d
Binary file not shown.
Binary file added
BIN
+117 Bytes
...gitea-repositories-meta/user2/repo2.git/objects/ba/1aed4e2ea2443d76cec241b96be4ec990852ec
Binary file not shown.
2 changes: 1 addition & 1 deletion
2
integrations/gitea-repositories-meta/user2/repo2.git/refs/heads/master
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
205ac761f3326a7ebe416e8673760016450b5cec | ||
1032bbf17fbc0d9c95bb5418dabe8f8c99278700 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.