Since you started working with pull requests, every change to the store’s site has gone through one with a green check, and every merge has gone live on its own. The weekly ad for the week of December 9 is in, and you aren’t at your desk, so the quickest way to get the new deals in is GitHub’s web editor, right from a browser.
In this lesson, you’ll make that quick change, watch the deploy run that follows it fail, and find out what a failed run means for the live site. Then you’ll read the failed step’s log down to the file and the line and fix the problem in a pull request. Start with the change itself, made from the browser.
Put the Week’s Deals In From the Web Editor
The new week’s deals need to be on the site before shoppers start looking at them, and the web editor lets you commit a change without your laptop. Open the file in GitHub’s file editor:
-
Open your
generic-groceryrepository on GitHub, and click your way tosrc/data/deals.js. -
Click the pencil icon in the upper-right corner of the file view to open the editor.
The file starts with two comment lines. Select everything below them, from the dealWeek line to the end of the file, and replace it with the code for the week of December 9, exactly as it’s given here:
export const dealWeek = { start: "2026-12-09", end: "2026-12-15" };
export const deals = [
{ item: "Large brown eggs", unit: "dozen", regular: 549, sale: 499 },
{ item: "Clementines, 3 lb bag", unit: "each", regular: 599, sale: 449 },
{ item: "All-purpose flour, 5 lb", unit: "each", regular: 449, sale: 349 },
{ item: "Unsalted butter, 1 lb", unit: "each", regular: 549, sale: 429 }
{ item: "Chocolate chips, 12 oz", unit: "each", regular: 449, sale: 349 },
{ item: "Russet potatoes, 5 lb bag", unit: "each", regular: 499, sale: 349 },
{ item: "Fresh cranberries, 12 oz bag", unit: "each", regular: 349, sale: 249 },
{ item: "Eggnog, 1 quart", unit: "each", regular: 449, sale: 349 },
];
You’re doing this from your laptop’s browser here, and it works the same on a phone. Now commit the change on GitHub:
-
Click Commit changes… above the editor.
-
Replace Copilot’s suggested message with
Add the deals for the week of December 9, and delete its suggested description. -
Leave Commit directly to the
mainbranch selected, and click Commit changes.
GitHub accepts the commit straight onto main, the same way it accepted your web editor fixes before you worked with pull requests. Nobody has told GitHub that main should only change through a pull request, so it doesn’t stop you. A commit on main is a push to main, and that’s the event your deploy workflow waits for.
See What a Failed Run Does to the Live Site
A push to main starts a deploy run, so the Actions tab is where you find out whether the new deals made it. Open it, and you’ll see a new run at the top of the list, named after your commit’s message. After a minute or less, its in-progress icon turns into a red cross. Depending on your notification settings, GitHub may also send you an email about the failed run.