Get Issue
One script reply has been approved by the moderators Verified
Created by rossrekrutkin 1309 days ago Picked 6 times
Submitted by hugo989 Typescript (fetch-only)
Verified 22 days ago
1
//native
2
export async function main(
3
  glab: RT.Gitlab,
4
  projectId: number,
5
  issueId: number
6
) {
7
  const url = `${glab.baseUrl}/api/v4/projects/${projectId}/issues/${issueId}`;
8
  const issue = await fetch(`${url}`, {
9
    headers: { Authorization: `Bearer ${glab.token}` },
10
  });
11
  return await issue.json();
12
}
13

Other submissions