Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: panda843/php-github-api
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v3.8.0
Choose a base ref
...
head repository: panda843/php-github-api
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 3.8.1
Choose a head ref
  • 5 commits
  • 6 files changed
  • 4 contributors

Commits on Aug 15, 2022

  1. feature KnpLabs#1075 Add the ability to download raw file, needed whe…

    …n size > 1MB (genintho)
    
    This PR was squashed before being merged into the 3.4.x-dev branch.
    
    Discussion
    ----------
    
    API DOC https://docs.github.com/en/rest/repos/contents
    
    The API call to return the content of a file return an empty content if a file is bigger than 1MB. 
    To be able to download that file, we need to provide the header `application/vnd.github.VERSION.raw`. 
    When doing so, the API return a the raw file, instead of a JSON object with some attributes + the file content. 
    
    Because the API has a different behavior, I preferred to create a dedicated method as opposed to provide accept more option in the download method and having a bunch of if/else.
    
    
    Note: a 3rd behavior exists for that API call when downloading markdown and passing the `application/vnd.github.VERSION.html` header, which is not supported by this code change.
    
    Commits
    -------
    
    520ffb9 Add the ability to download raw file, needed when size > 1MB
    ff458a2 Restore modification committed by mistake
    e7c393f Style fix
    genintho authored Aug 15, 2022
    Configuration menu
    Copy the full SHA
    0158c30 View commit details
    Browse the repository at this point in the history
  2. Update branch alias

    acrobat authored Aug 15, 2022
    Configuration menu
    Copy the full SHA
    6b3c7ea View commit details
    Browse the repository at this point in the history

Commits on Aug 26, 2022

  1. minor KnpLabs#1078 Fix return types in phpdoc for Assignees and `Re…

    …viewRequest` (rob006)
    
    This PR was squashed before being merged into the 3.9.x-dev branch.
    
    Discussion
    ----------
    
    
    
    Commits
    -------
    
    628a749 PHPDoc: fix return type in `Assignees::remove()`
    3d40ebb PHPDoc: fix return type in `Assignees::add()`
    a8747ac PHPDoc: fix return type in `ReviewRequest::remove()`
    rob006 authored Aug 26, 2022
    Configuration menu
    Copy the full SHA
    e1c8cb9 View commit details
    Browse the repository at this point in the history

Commits on Sep 7, 2022

  1. Update composer.json

    panda843 authored Sep 7, 2022
    Configuration menu
    Copy the full SHA
    9f45415 View commit details
    Browse the repository at this point in the history
  2. Update Search.php

    panda843 authored Sep 7, 2022
    Configuration menu
    Copy the full SHA
    b8a4d25 View commit details
    Browse the repository at this point in the history
Loading