type Gitlab = {
baseUrl: string;
token: string;
};
export async function main(
glab: Gitlab,
projectId: number,
releaseTag: string,
) {
const url = `${glab.baseUrl}/api/v4/projects/${projectId}/releases/${releaseTag}`;
const response = await fetch(`${url}`, {
headers: { "PRIVATE-TOKEN": `${glab.token}` },
});
return await response.json();
}
Submitted by admin 528 days ago
type Gitlab = {
baseUrl: string;
token: string;
};
export async function main(
glab: Gitlab,
projectId: number,
releaseTag: string
) {
const url = `${glab.baseUrl}/api/v4/projects/${projectId}/releases/${releaseTag}`;
const response = await fetch(`${url}`, {
headers: { "PRIVATE-TOKEN": `${glab.token}` },
});
return await response.json();
}
Submitted by admin 531 days ago
type gitlab = {
auth: string,
baseUrl: string
}
export async function main(
glab: gitlab,
projectId: number,
releaseTag: string
) {
const url = `${glab.baseUrl}/api/v4/projects/${projectId}/releases/${releaseTag}`;
const response = await fetch(`${url}`, {
headers: { "PRIVATE-TOKEN": `${glab.token}` },
});
return await response.json();
}
Submitted by rubenfiszel 548 days ago
import * as wmill from "https://deno.land/x/windmill@v1.85.0/mod.ts";
/*
@param: {wmill.Resource<"gitlab">} glab - Resource containing Gitlab Auth API Key
Example:
{
auth: gitlab_api_key,
baseUrl: "https://www.gitlab.com"
}
*/
export async function main(
glab: wmill.Resource<"gitlab">,
projectId: number,
releaseTag: string
) {
const url = `${glab.baseUrl}/api/v4/projects/${projectId}/releases/${releaseTag}`;
const response = await fetch(`${url}`, {
headers: { "PRIVATE-TOKEN": `${glab.token}` },
});
return await response.json();
}
Submitted by steven orvis919 548 days ago