Skip to content

Deprecation warning: https://docs.github.com/en/rest/about-the-rest-api/api-versions #113

@hallm4

Description

@hallm4

https://github.blog/changelog/2026-03-12-rest-api-version-2026-03-10-is-now-available/
https://docs.github.com/en/rest/about-the-rest-api/breaking-changes?apiVersion=2026-03-10

My script isn't too complex, I'm doing a basic auth, and then many get_content calls as I build up a file to then grep through.

use Net::GitHub::V3;
...
my $gh = Net::GitHub::V3->new( access_token => $ENV{GH_CREDENTIAL} );
my $ghrepos = $gh->repos;
...
$response = $ghrepos->get_content('<ORG>', $reponame, $dir);

Now I seem to be getting some "Deprecation warning: https://docs.github.com/en/rest/about-the-rest-api/api-versions" in my script output which I assume is being returned somewhere.

I'm not sure what the fix is, other than to check if X-GitHub-Api-Version is being sent on requests and defaulting to the previous supported version 2022-11-28 ... ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions