NAME
WWW::Gitea::Milestone - Gitea milestone entity
VERSION
version 0.001
SYNOPSIS
my $ms = $gitea->milestones->get('getty', 'p5-www-gitea', 1);
print $ms->title, " [", $ms->state, "]\n";
$ms->close;
DESCRIPTION
Lightweight wrapper around the JSON returned for a Gitea milestone. Lifecycle methods delegate back to the client's WWW::Gitea::API::Milestones controller and need the owning "owner"/"repo" (set automatically when the milestone comes from a repository-scoped call). The raw decoded data is always available via "data".
data
Raw decoded JSON for the milestone.
owner
Owner of the repository this milestone belongs to.
repo
Name of the repository this milestone belongs to.
id
Numeric milestone ID.
title
Milestone title.
description
Milestone description.
state
open or closed.
due_on
ISO-8601 due date (or undef).
open_issues
Number of open issues in the milestone.
closed_issues
Number of closed issues in the milestone.
refresh
$ms->refresh;
Re-fetches the milestone and updates "data" in place.
edit
$ms->edit(description => '...');
Edits the milestone and updates "data" in place.
close
$ms->close;
Closes the milestone (shortcut for $ms->edit(state => 'closed')).
reopen
$ms->reopen;
Reopens the milestone (shortcut for $ms->edit(state => 'open')).
delete
$ms->delete;
Deletes the milestone.
SEE ALSO
SUPPORT
Issues
Please report bugs and feature requests on GitHub at https://codeberg.org/getty/p5-www-gitea/issues.
CONTRIBUTING
Contributions are welcome! Please fork the repository and submit a pull request.
AUTHOR
Torsten Raudssus <torsten@raudssus.de> https://raudssus.de/
COPYRIGHT AND LICENSE
This software is copyright (c) 2026 by Torsten Raudssus.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.