Adds gitea to supported set of SCM integrations

Signed-off-by: Pedro Cardona
<1724279+atoko@users.noreply.github.com>

GiteaUrlReader readUrl implementation.
Currently relies on content being base64 encoded

Signed-off-by: Pedro Cardona
<1724279+atoko@users.noreply.github.com>

Prettify changed files

Signed-off-by: Pedro Cardona
<1724279+atoko@users.noreply.github.com>

Changeset for gitea integration

Signed-off-by: Pedro Cardona
<1724279+atoko@users.noreply.github.com>

Include gitea in Vale vocabulary, run Lint / Prettier

Signed-off-by: Pedro Cardona
<1724279+atoko@users.noreply.github.com>

Update api-reports

Signed-off-by: Pedro Cardona
<1724279+atoko@users.noreply.github.com>

Lint packages/integration/*
Signed-off-by: Pedro Cardona
<1724279+atoko@users.noreply.github.com>

Fix getGiteaFileContentsUrl, split changesets

The previous file contents url code was missing a segment, (/branch), and was causing the loader to 404. (The intended functionality is to use the same URL you would use to view the file in gitea)
Changesets for the integration and backend-common packages were split
This commit also adds documentation relevant to the gitea integration

Signed-off-by: Pedro Cardona
<1724279+atoko@users.noreply.github.com>
Signed-off-by: Pedro Cardona <1724279+atoko@users.noreply.github.com>
This commit is contained in:
Pedro Cardona
2022-10-09 19:42:27 -04:00
parent 4a6143a3be
commit d05e1841ce
22 changed files with 1086 additions and 1 deletions
+26
View File
@@ -281,5 +281,31 @@ export interface Config {
*/
externalId?: string;
}>;
/** Integration configuration for Gitea */
gitea?: Array<{
/**
* The hostname of the given Gitea instance
* @visibility frontend
*/
host: string;
/**
* The base url for the Gitea instance.
* @visibility frontend
*/
baseUrl?: string;
/**
* The username to use for authenticated requests.
* @visibility secret
*/
username?: string;
/**
* Gitea password used to authenticate requests. This can be either a password
* or a generated access token.
* @visibility secret
*/
password?: string;
}>;
};
}