Skip to content
#

GitHub API

github-api logo

The GitHub API provides endpoints for users to consume GitHub data as well as make changes on a user’s behalf. The latest version is v4, the GraphQL API. The GitHub GraphQL API v4 represents an architectural and conceptual shift from the GitHub REST API v3 and allows for users to craft queries of the exact data they need.

Here are 3,727 public repositories matching this topic...

awendt
awendt commented Nov 30, 2020

Is your feature request related to a problem? Please describe.

I just ran into a problem where a call to the Github API unexpectedly returned a 404 error. This failed our workflow. The error was intermittent and wasn't reproducible when I re-ran the job.

Describe the solution you'd like

I'd like any API calls made by the github client to be retried, preferably using the [retry p

ondrejmirtes
ondrejmirtes commented Mar 2, 2021

Something like this would come in handy:

<?php declare(strict_types = 1);

use Github\Api\RateLimit\RateLimitResource;
use Github\Client;
use Http\Client\Common\Plugin;
use Http\Promise\Promise;
use Psr\Http\Message\RequestInterface;

class RateLimitPlugin implements Plugin
{

	private Client $client;

	public function setClient(Client $client): void
	{
		$this->client =