/*
@param: {Gitlab} glab - Resource containing Gitlab Auth API Key
Example:
{
auth: gitlab_api_key,
baseUrl: "https://www.gitlab.com"
}
*/
type Gitlab = {
baseUrl: string;
token: string;
};
export async function main(glab: Gitlab, projectId: number, issueId: number) {
const url = `${glab.baseUrl}/api/v4/projects/${projectId}/issues/${issueId}`;
const issue = await fetch(`${url}`, {
headers: { Authorization: `Bearer: ${glab.token}` },
});
return await issue.json();
}
Submitted by admin 528 days ago
/*
@param: {Gitlab} glab - Resource containing Gitlab Auth API Key
Example:
{
auth: gitlab_api_key,
baseUrl: "https://www.gitlab.com"
}
*/
type Gitlab = {
baseUrl: string;
token: string;
};
export async function main(
glab: Gitlab,
projectId: number,
issueId: number
) {
const url = `${glab.baseUrl}/api/v4/projects/${projectId}/issues/${issueId}`;
const issue = await fetch(`${url}`, {
headers: { "Authorization": `Bearer: ${glab.token}` },
});
return await issue.json();
}
Submitted by admin 531 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,
issueId: number
) {
const url = `${glab.baseUrl}/api/v4/projects/${projectId}/issues/${issueId}`;
const issue = await fetch(`${url}`, {
headers: { "Authorization": `Bearer: ${glab.token}` },
});
return await issue.json();
}
Submitted by adam186 659 days ago
import * as wmill from "https://deno.land/x/windmill@v1.70.1/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,
issueId: number
) {
const url = `${glab.baseUrl}/api/v4/projects/${projectId}/issues/${issueId}`;
const issue = await fetch(`${url}`, {
headers: { "Authorization": `Bearer: ${glab.token}` },
});
return await issue.json();
}
Submitted by adam186 694 days ago
import * as wmill from "https://deno.land/x/windmill@v1.34.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,
issueId: number
) {
const url = `${glab.baseUrl}/api/v4/projects/${projectId}/issues/${issueId}`;
const issue = await fetch(`${url}`, {
headers: { "Authorization": `Bearer: ${glab.token}` },
});
return await issue.json();
}
Submitted by lplit 842 days ago
import * as wmill from "https://deno.land/x/windmill@v1.34.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,
issueId: number
) {
const url = `https://${glab.baseUrl}/api/v4/projects/${projectId}/issues/${issueId}`;
const issue = await fetch(`${url}`, {
headers: { "Authorization": `Bearer: ${glab.token}` },
});
return await issue.json();
}
Submitted by lplit 842 days ago
import * as wmill from "https://deno.land/x/windmill@v1.34.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,
issueId: number
) {
const url = `https://${glab.baseUrl}/api/v4/projects/${projectId}/issues/${issueId}`;
const issue = await fetch(`${url}`, {
headers: { "Authorization": `Bearer: ${glab.token}` },
});
return await issue.json();
}
Submitted by lplit 842 days ago
import * as wmill from "https://deno.land/x/windmill@v1.34.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,
issueId: number
) {
const url = `https://${glab.baseUrl}/api/v4/projects/${projectId}/issues/${issueId}`;
const issue = await fetch(`${url}`, {
headers: { "Authorization": `Bearer: ${glab.token}` },
});
return await issue.json();
}
Submitted by lplit 842 days ago
import * as wmill from "https://deno.land/x/windmill@v1.34.0/mod.ts";
/*
@param: {wmill.Resource<"gitlab">} glab - Resource containing Gitlab Auth API Key
Example:
{
auth: gitlab_api_key
}
*/
export async function main(
glab: wmill.Resource<"gitlab">,
projectId: number,
issueId: number
) {
const url = `https://gitlab.com/api/v4/projects/${projectId}/issues/${issueId}`;
const issue = await fetch(`${url}`, {
headers: { "Authorization": `Bearer: ${glab.token}` },
});
return await issue.json();
}
Submitted by lplit 880 days ago