Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gitea support #8131

Draft
wants to merge 23 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
improve context parser
  • Loading branch information
anbraten committed Mar 13, 2022
commit f1bb3ca7d87445e1407b86c149fbe965e679ded0
7 changes: 7 additions & 0 deletions components/server/src/dev/dev-data.ts
Original file line number Diff line number Diff line change
@@ -83,6 +83,13 @@ export namespace DevData {
return result;
}

export function createGiteaTestToken(): Token {
return {
...getTokenFromEnv("GITPOD_TEST_TOKEN_GITEA"),
scopes: []
};
}

function getTokenFromEnv(varname: string): Token {
const secret = process.env[varname];
if (!secret) {
2 changes: 1 addition & 1 deletion components/server/src/gitea/api.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2020 Gitpod GmbH. All rights reserved.
* Copyright (c) 2022 Gitpod GmbH. All rights reserved.
* Licensed under the GNU Affero General Public License (AGPL).
* See License-AGPL.txt in the project root for license information.
*/
Loading
Oops, something went wrong.