Pithub::Repos::Releases(3) Github v3 Repo Releases API

VERSION

version 0.01033

METHODS

assets

Provides access to Pithub::Repos::Releases::Assets.

list

  • List releases for a repository.

        GET /repos/:owner/:repo/releases
    

    Examples:

        my $r = Pithub::Repos::Releases->new;
        my $result = $r->get(
            repo => 'Pithub',
            user => 'plu',
        );
    

get

  • Get a single release.

        GET /repos/:owner/:repo/releases/:id
    

    Examples:

        my $r = Pithub::Repos::Releases->new;
        my $result = $r->get(
            repo       => 'Pithub',
            user       => 'plu',
            release_id => 1,
        );
    

create

  • Create a release.

        POST /repos/:user/:repo/releases
    

    Examples:

        my $r = Pithub::Repos::Releases->new;
        my $result = $r->create(
            user => 'plu',
            repo => 'Pithub',
            data => {
                tag_name         => 'v1.0.0',
                target_commitish => 'master',
                name             => 'v1.0.0',
                body             => 'Description of the release',
                draft            => 0,
                prerelease       => 0,
            }
        );
    

update

  • Edit a release.

        PATCH /repos/:user/:repo/releases/:id
    

    Examples:

        my $r = Pithub::Repos::Releases->new;
        my $result = $r->update(
            user       => 'plu',
            repo       => 'Pithub',
            release_id => 1,
            data       => {
                tag_name         => 'v1.0.0',
                target_commitish => 'master',
                name             => 'v1.0.0',
                body             => 'Description of the release',
                draft            => 0,
                prerelease       => 0,
            }
        );
    

delete

  • Delete a release.

        DELETE /repos/:user/:repo/releases:id
    

    Examples:

        my $r = Pithub::Repos::Releases->new;
        my $result = $r->delete(
            user       => 'plu',
            repo       => 'Pithub',
            release_id => 1,
        );
    

AUTHOR

Johannes Plunien <[email protected]>

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.