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
Pithub::Repos::Releases(3) User Contributed Perl Documentation Pithub::Repos::Releases(3)

Pithub::Repos::Releases - Github v3 Repo Releases API

version 0.01043

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

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 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 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            => JSON::MaybeXS::false(),           # or alternative below
            prerelease       => JSON::MaybeXS::false(),           # or alternative below
            generate_release_notes => JSON::MaybeXS::false(),     # or alternative below
        }
    );
    

Booleans:

Several of the attributes require boolean values in the request that is sent to GitHub. Zero (0) and one (1) are integers and will not be encoded correctly in the JSON encoded request.

There are numerous options for your call to Pithub::Repos::Releases->create.

Add the following to your code before the call to Pithub::Repos::Releases->create.

    require JSON::MaybeXS;
    

Then use the following values for the booleans:

    JSON::MaybeXS::true()
    JSON::MaybeXS::false()
    
Add the following to your code before the call to Pithub::Repos::Releases->create.

    require Cpanel::JSON::XS;
    

Then use the following values for the booleans:

    Cpanel::JSON::XS::true
    Cpanel::JSON::XS::false
    
Add the following to your code before the call to Pithub::Repos::Releases->create.

    require JSON::PP;
    

Then use the following values for the booleans:

    $JSON::PP::true
    $JSON::PP::false
    

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 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,
    );
    

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.

2025-05-31 perl v5.40.2

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

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