Skip to content

Commit

Permalink
Fixes #4 - Add event link to the event description as a backup for if…
Browse files Browse the repository at this point in the history
… the calendar client doesn't support the 'URL' field, in this case Google Calendar.
  • Loading branch information
othyn committed Jan 5, 2023
1 parent 817efea commit c29d7d5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Commands/GenerateCalendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,9 @@ protected function execute(InputInterface $input, OutputInterface $output): int
->name(
name: $eventName
)
->description(
description: $event['link']
)
->url(
url: $event['link']
)
Expand All @@ -155,7 +158,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
$calendarEvent
->fullDay()
->description(
description: 'Starts at ' . $startDate->format('H:i') . ', ends at ' . $endDate->format('H:i') . '.'
description: 'Starts at ' . $startDate->format('H:i') . ', ends at ' . $endDate->format('H:i') . ".\n\n{$event['link']}"
);
}

Expand Down

0 comments on commit c29d7d5

Please sign in to comment.