GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  PITHUB::ISSUES::LABELS (3)

.ds Aq ’

NAME

Pithub::Issues::Labels - Github v3 Issue Labels API

CONTENTS

VERSION

version 0.01033

METHODS

    add

o Add labels to an issue



    POST /repos/:user/:repo/issues/:id/labels



Examples:



    my $l = Pithub::Issues::Labels->new;
    my $result = $l->add(
        repo     => Pithub,
        user     => plu,
        issue_id => 1,
        data     => [Label1, Label2],
    );



    create

o Create a label



    POST /repos/:user/:repo/labels



Examples:



    my $l = Pithub::Issues::Labels->new;
    my $result = $l->create(
        repo => Pithub,
        user => plu,
        data => {
            color => FFFFFF,
            name  => some label,
        }
    );



    delete

o Delete a label



    DELETE /repos/:user/:repo/labels/:id



Examples:



    my $l = Pithub::Issues::Labels->new;
    my $result = $l->delete(
        repo     => Pithub,
        user     => plu,
        label => 1,
    );



    get

o Get a single label



    GET /repos/:user/:repo/labels/:id



Examples:



    my $l = Pithub::Issues::Labels->new;
    my $result = $l->get(
        repo => Pithub,
        user => plu,
        label => 1,
    );



    list

o List all labels for this repository



    GET /repos/:user/:repo/labels



Examples:



    my $l = Pithub::Issues::Labels->new;
    my $result = $l->list(
        repo => Pithub,
        user => plu
    );



o List labels on an issue



    GET /repos/:user/:repo/issues/:id/labels



Examples:



    my $l = Pithub::Issues::Labels->new;
    my $result = $l->list(
        repo     => Pithub,
        user     => plu,
        issue_id => 1,
    );



o Get labels for every issue in a milestone



    GET /repos/:user/:repo/milestones/:id/labels



Examples:



    my $l = Pithub::Issues::Labels->new;
    my $result = $l->get(
        repo         => Pithub,
        user         => plu,
        milestone_id => 1
    );



    remove

o Remove a label from an issue



    DELETE /repos/:user/:repo/issues/:id/labels/:id



Examples:



    my $l = Pithub::Issues::Labels->new;
    my $result = $l->delete(
        repo     => Pithub,
        user     => plu,
        issue_id => 1,
        label => 1,
    );



o Remove all labels from an issue



    DELETE /repos/:user/:repo/issues/:id/labels



Examples:



    my $l = Pithub::Issues::Labels->new;
    my $result = $l->delete(
        repo     => Pithub,
        user     => plu,
        issue_id => 1,
    );



    replace

o Replace all labels for an issue



    PUT /repos/:user/:repo/issues/:id/labels



Examples:



    my $l = Pithub::Issues::Labels->new;
    my $result = $l->replace(
        repo     => Pithub,
        user     => plu,
        issue_id => 1,
        data     => [qw(label3 label4)],
    );



    update

o Update a label



    PATCH /repos/:user/:repo/labels/:id



Examples:



    my $l = Pithub::Issues::Labels->new;
    my $result = $l->update(
        repo     => Pithub,
        user     => plu,
        label => 1,
        data     => {
            color => FFFFFF,
            name  => API,
        }
    );



AUTHOR

Johannes Plunien <plu@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2011 by Johannes Plunien.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 PITHUB::ISSUES::LABELS (3) 2016-01-22

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.