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

  • nativets
    One script reply has been approved by the moderators
    Ap­pro­ved
    //native
    export async function main(glab: RT.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 hugo989 164 days ago