"state" => $state,
"client_id" => $this->config->client->id,
"scope" => $this->config->client->scope,
- "redirect_uri" => $callback_url,
+ "redirect_uri" => (string) $callback_url,
];
return new Url("https://github.com/login/oauth/authorize", [
"query" => new QueryString($param)
$repo->name,
$config ?: (array) $this->checkRepoHook($repo)->config
);
- $name = sprintf("%s-%s.ext.phar", $repo->name, $release->tag_name);
+ $name = $phar->build();
$url = uri_template($release->upload_url, compact("name"));
$promise = $this->createReleaseAsset($url, $phar, "application/phar");
if ($release->draft) {