Skip to content

Commit ca128f6

Browse files
authored
cs
1 parent bf3eb1f commit ca128f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Github/Api/Deployment.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,15 +89,15 @@ public function updateStatus($username, $repository, $id, array $params)
8989
if (!isset($params['state'])) {
9090
throw new MissingArgumentException(['state']);
9191
}
92-
92+
9393
// adjust media-type per github docs
9494
// https://docs.github.com/en/rest/reference/repos#create-a-deployment-status
9595
if ($params['state'] === 'inactive') {
9696
$this->acceptHeaderValue = 'application/vnd.github.ant-man-preview+json';
9797
}
9898
if ($params['state'] === 'in_progress' || $params['state'] === 'queued') {
9999
$this->acceptHeaderValue = 'application/vnd.github.flash-preview+json';
100-
}
100+
}
101101

102102
return $this->post('/repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/deployments/'.$id.'/statuses', $params);
103103
}

0 commit comments

Comments
 (0)