NAME

WWW::Gitea::API::Labels - Gitea repository labels API

VERSION

version 0.001

SYNOPSIS

my $labels = $gitea->labels->list('getty', 'p5-www-gitea');

my $label = $gitea->labels->create('getty', 'p5-www-gitea',
    name => 'bug', color => 'ee0701', description => 'Something broke',
);

DESCRIPTION

Controller for the Gitea repository labels API. Reached via $gitea->labels. Labels are addressed by their numeric id.

client

The parent WWW::Gitea client providing HTTP transport.

openapi_operations

Pre-computed operation table (operationId{method, path}).

list

my $labels = $gitea->labels->list('getty', 'p5-www-gitea');

Lists the labels of a repository. Returns an ArrayRef of WWW::Gitea::Label.

create

my $label = $gitea->labels->create('getty', 'p5-www-gitea',
    name => 'bug', color => 'ee0701', description => '...');

Creates a label. name and color (a 6-hex-digit RGB string) are required. Returns a WWW::Gitea::Label.

get

my $label = $gitea->labels->get('getty', 'p5-www-gitea', 3);

Fetches a label by id. Returns a WWW::Gitea::Label.

edit

$gitea->labels->edit('getty', 'p5-www-gitea', 3, color => '00ff00');

Edits a label (name, color, description). Returns the updated WWW::Gitea::Label.

delete

$gitea->labels->delete('getty', 'p5-www-gitea', 3);

Deletes a label. Returns a true value on success.

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.