Closed djdefi closed 4 months ago
test-pr.yml
for automated testing of PRs, including setup of Ruby, dependency installation, script execution, and ERB template validation.README.md
with instructions for running tests locally, aiding contributors in ensuring their changes are error-free before submission.For more details, open the Copilot Workspace session.
Related to #43
This pull request introduces enhancements to the "Today's Games" section by implementing redirect handling for the NHL schedule API request and adding a new page to display today's games.
fetch_schedule_info
inscript-new.rb
to handle HTTP redirects when requesting the NHL schedule API, ensuring the method follows redirects until the final destination URL is reached and parses the final response to extract games data.today.html.erb
to display today's games in a clean table format, including game ID, start time, teams, and venue.standings.html.erb
to include a link to the new "Today's Games" page if there are games scheduled for today, enhancing the user experience by providing easy access to daily game schedules.For more details, open the Copilot Workspace session.