Edits history of script submission #22246 for ' Get Issue (gitlab)'

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