NAME
WWW::Gitea::Label - Gitea label entity
VERSION
version 0.001
SYNOPSIS
my $label = $gitea->labels->get('getty', 'p5-www-gitea', 3);
print $label->name, " #", $label->color, "\n";
$label->edit(color => '00ff00');
DESCRIPTION
Lightweight wrapper around the JSON returned for a Gitea label. Lifecycle methods delegate back to the client's WWW::Gitea::API::Labels controller and therefore need the owning "owner"/"repo" (set automatically when the label comes from a repository-scoped call). The raw decoded data is always available via "data".
data
Raw decoded JSON for the label.
owner
Owner of the repository this label belongs to.
repo
Name of the repository this label belongs to.
id
Numeric label ID.
name
Label name.
color
6-hex-digit RGB color string.
description
Label description.
url
API URL of the label.
refresh
$label->refresh;
Re-fetches the label and updates "data" in place.
edit
$label->edit(color => '00ff00');
Edits the label and updates "data" in place.
delete
$label->delete;
Deletes the label.
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.