List Commits
One script reply has been approved by the moderators Verified
Created by sebastienfa6ll 1295 days ago Picked 5 times
Submitted by hugo989 Typescript (fetch-only)
Verified 8 days ago
1
//native
2
export async function main(glab: RT.Gitlab, projectId: string) {
3
  const url = `${glab.baseUrl}/api/v4/projects/${projectId}/repository/commits`;
4
  const issue = await fetch(`${url}`, {
5
    headers: {
6
      Authorization: `Bearer ${glab.token}`,
7
      "Content-Type": "application/json",
8
    },
9
  });
10
  return await issue.json();
11
}
12

Other submissions