Skip to content

Fetching zipball from a tag gets master instead #225

Closed
@garak

Description

@garak

I'm trying to fetch zipball from jquery 2.1.3
If I do this:

<?php
$client = new Github\Client();
$file = $client->api('repo')->contents()->archive('jquery', 'jquery', 'zipball', '2.1.3');

I get zipball from master.
I debugged with Guzzle, and I see that file it's retrieved from https://api.github.com/repos/jquery/jquery/zipball?ref=2.1.3
According to docs, it should be retrieved from https://api.github.com/repos/jquery/jquery/zipball/2.1.3

See Bee-Lab/bowerphp#111

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions