Edits history of script submission #165 for ' List Commits (gitlab)'

  • deno
    /*
    @param: {Gitlab} glab - Resource containing Gitlab Auth API Key
    Example:
    {
      baseUrl: "https://gitlab.com"
      token: gitlab_api_key
    }
    */
    type Gitlab = {
      baseUrl: string;
      token: string;
    };
    export async function main(glab: Gitlab, projectId: string) {
      const url = `${glab.baseUrl}/api/v4/projects/${projectId}/repository/commits`;
      const issue = await fetch(`${url}`, {
        headers: {
          Authorization: `Bearer: ${glab.token}`,
          "Content-Type": "application/json",
        },
      });
      return await issue.json();
    }
    

    Submitted by hugo697 386 days ago

  • deno
    /*
    @param: {Gitlab} glab - Resource containing Gitlab Auth API Key
    Example:
    {
      baseUrl: "https://gitlab.com"
      token: gitlab_api_key
    }
    */
    type Gitlab = {
      baseUrl: string;
      token: string;
    };
    export async function main(glab: Gitlab, projectId: string) {
      const url = `${glab.baseUrl}/api/v4/projects/${projectId}/repository/commits`;
      const issue = await fetch(`${url}`, {
        headers: {
          Authorization: `Bearer: ${glab.token}`,
          "Content-Type": "application/json",
        },
      });
      return await issue.json();
    }
    

    Submitted by admin 1019 days ago

  • deno
    /*
    @param: {Gitlab} glab - Resource containing Gitlab Auth API Key
    Example:
    {
      baseUrl: "https://gitlab.com"
      token: gitlab_api_key
    }
    */
    type Gitlab = {
      baseUrl: string;
      token: string;
    };
    export async function main(
      glab: Gitlab,
      projectId: string,
    ) {
      const url = `${glab.baseUrl}/api/v4/projects/${projectId}/repository/commits`;
      const issue = await fetch(`${url}`, {
        headers: {
          "Authorization": `Bearer: ${glab.token}`,
          "Content-Type": "application/json",
        },
      });
      return await issue.json();
    }

    Submitted by admin 1022 days ago

  • deno
    import * as wmill from "https://deno.land/x/[email protected]/mod.ts";
    /*
    @param: {wmill.Resource<"gitlab">} glab - Resource containing Gitlab Auth API Key
    Example:
    {
      baseUrl: "https://gitlab.com"
      token: gitlab_api_key
    }
    */
    export async function main(
      glab: wmill.Resource<"gitlab">,
      projectId: string,
    ) {
      const url = `${glab.baseUrl}/api/v4/projects/${projectId}/repository/commits`;
      const issue = await fetch(`${url}`, {
        headers: {
          "Authorization": `Bearer: ${glab.token}`,
          "Content-Type": "application/json",
        },
      });
      return await issue.json();
    }

    Submitted by adam186 1150 days ago

  • deno
    import * as wmill from "https://deno.land/x/[email protected]/mod.ts";
    /*
    @param: {wmill.Resource<"gitlab">} glab - Resource containing Gitlab Auth API Key
    Example:
    {
      baseUrl: "https://gitlab.com"
      token: gitlab_api_key
    }
    */
    export async function main(
      glab: wmill.Resource<"gitlab">,
      projectId: string,
    ) {
      const url = `${glab.baseUrl}/api/v4/projects/${projectId}/repository/commits`;
      const issue = await fetch(`${url}`, {
        headers: {
          "Authorization": `Bearer: ${glab.token}`,
          "Content-Type": "application/json",
        },
      });
      return await issue.json();
    }

    Submitted by adam186 1185 days ago

  • deno
    import * as wmill from "https://deno.land/x/[email protected]/mod.ts";
    /*
    @param: {wmill.Resource<"gitlab">} glab - Resource containing Gitlab Auth API Key
    Example:
    {
      baseUrl: "https://gitlab.com"
      token: gitlab_api_key
    }
    */
    export async function main(
      glab: wmill.Resource<"gitlab">,
      projectId: string,
    ) {
      const url = `${glab.baseUrl}/api/v4/projects/${projectId}/repository/commits`;
      const issue = await fetch(`${url}`, {
        headers: {
          "Authorization": `Bearer: ${glab.token}`,
          "Content-Type": "application/json",
        },
      });
      return await issue.json();
    }

    Submitted by lplit 1333 days ago

  • deno
    import * as wmill from "https://deno.land/x/[email protected]/mod.ts";
    /*
    @param: {wmill.Resource<"gitlab">} glab - Resource containing Gitlab Auth API Key
    Example:
    {
      baseUrl: "https://gitlab.com"
      token: gitlab_api_key
    }
    */
    export async function main(
      glab: wmill.Resource<"gitlab">,
      projectId: string,
    ) {
      const url = `${baseUrl}/api/v4/projects/${projectId}/repository/commits`;
      const issue = await fetch(`${url}`, {
        headers: {
          "Authorization": `Bearer: ${glab.token}`,
          "Content-Type": "application/json",
        },
      });
      return await issue.json();
    }

    Submitted by jaller94 1335 days ago