Skip to content

Commit

Permalink
Use issue_url in note link
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed May 28, 2020
1 parent 84a7aaf commit 751b3ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Route/Note.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@ public function unfurl(string $url, array $parts): ?array
$note = $this->client->getNoteDetails($noteId);
$this->debug(' note', ['note' => $note]);
$issueId = $note['not_iss_id'];
$issueUrl = $note['issue_url'];

return [
'title' => "Note in <$url|Issue #{$issueId}>: {$note['not_title']}",
'title' => "Note in <$issueUrl|Issue #{$issueId}>: {$note['not_title']}",
'text' => $note['not_note'],
'color' => '#006486',
'ts' => $note['not_created_date_ts'],
Expand Down

0 comments on commit 751b3ee

Please sign in to comment.