jdalrymple / gitbeaker

🦊🧪 A comprehensive and typed Gitlab SDK for Node.js, Browsers, Deno and CLI
Other
1.5k stars 283 forks source link

Added created_at attribute #3605

Closed nhollander-alert closed 1 week ago

nhollander-alert commented 1 week ago

Since GitLab 16.11 the Tags API has supported the created_at field for annotated tags^1. For lightweight tags, this field is null.

Tested with the following script:

import { Gitlab } from "@gitbeaker/rest"
const gl = new Gitlab({token: "glpat-..."});
gl.Tags.all(1234).then((v) => {
    v.forEach((tag) => {
        console.log(`Tag ${tag.name} created ${tag.created_at}`);
    });
});