Skip to content

Support new check runs #749

Closed
Closed
@dereuromark

Description

@dereuromark

I currently implemented this for us, since the former statuses kind of don't work anymore since 1st of October (deprecated).

    /**
     * @param string $organization
     * @param string $repository
     * @param string $sha
     * @param array $params
     * @return mixed
     */
    public function checkRuns(string $organization, string $repository, string $sha, array $params = []): array
    {
        $url = 'repos/' . rawurlencode($organization) . '/' . rawurlencode($repository) . '/commits/' . $sha . '/check-runs';

        $headers = [
            'Accept' => 'application/vnd.github.antiope-preview+json',
        ];

        return $this->get($url, $params, $headers);
    }

Would be nice if this repo ships with native support for the new API.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions