DOKK / manpages / debian 12 / libpithub-perl / Pithub::Issues::Milestones.3pm.en
Pithub::Issues::Milestones(3pm) User Contributed Perl Documentation Pithub::Issues::Milestones(3pm)

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

version 0.01040

Create a milestone

    POST /repos/:user/:repo/milestones
    

Examples:

    my $m = Pithub::Issues::Milestones->new;
    my $result = $m->create(
        repo => 'Pithub',
        user => 'plu',
        data => {
            description => 'String',
            due_on      => 'Time',
            state       => 'open or closed',
            title       => 'String'
        }
    );
    

Delete a milestone

    DELETE /repos/:user/:repo/milestones/:id
    

Examples:

    my $m = Pithub::Issues::Milestones->new;
    my $result = $m->delete(
        repo => 'Pithub',
        user => 'plu',
        milestone_id => 1,
    );
    

Get a single milestone

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

Examples:

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

List milestones for an issue

    GET /repos/:user/:repo/milestones
    

Examples:

    my $m = Pithub::Issues::Milestones->new;
    my $result = $m->list(
        repo => 'Pithub',
        user => 'plu',
    );
    

Update a milestone

    PATCH /repos/:user/:repo/milestones/:id
    

Examples:

    my $m = Pithub::Issues::Milestones->new;
    my $result = $m->update(
        repo => 'Pithub',
        user => 'plu',
        data => {
            description => 'String',
            due_on      => 'Time',
            state       => 'open or closed',
            title       => 'String'
        }
    );
    

Johannes Plunien <plu@cpan.org>

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.

2022-10-04 perl v5.34.0