Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added created_at attribute #3605

Merged
merged 1 commit into from
Jun 28, 2024

Conversation

nhollander-alert
Copy link
Contributor

@nhollander-alert nhollander-alert commented Jun 28, 2024

Since GitLab 16.11 the Tags API has supported the created_at field for annotated tags1. 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}`);
    });
});

Footnotes

  1. https://gitlab.com/gitlab-org/gitlab/-/issues/451011

@jdalrymple jdalrymple merged commit 1d1e2e3 into jdalrymple:main Jun 28, 2024
2 checks passed
@jdalrymple
Copy link
Owner

🚀 PR was released in 40.1.0 🚀

@jdalrymple jdalrymple added the released This issue/pull request has been released. label Jul 8, 2024
@nhollander-alert nhollander-alert deleted the tag_creation_time branch July 8, 2024 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released This issue/pull request has been released. type:enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants