Skip to content

Commit

Permalink
拔掉 github issue controller 裡面的 Dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
CQD committed Mar 13, 2024
1 parent 0e001c0 commit d2863c4
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/Controller/IssueCommentController.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,14 @@ public function logic(array $params): array
urlencode($repo)
);

$credential = $this->readCredential('github');
$options = [
'auth' => [
$credential['user'],
$credential['token'],
],
];

$data = $this->get($url, [
'direction' => 'desc',
'sort' => 'created_at',
], $options);
]);

$issueReqs = array_map(function($comment){
return $comment['issue_url'];
}, $data);
$this->getMulti($issueReqs, $options);

return [
'title' => "Github 上 {$user}/{$repo} 的最新 issue 回應",
Expand Down

0 comments on commit d2863c4

Please sign in to comment.