Project: Monday Morning's Queue

In the last exercise, you rewrote a teammate’s vague comments so the author could act on every one, then gave the decision they called for. That was one change, chosen for you. Monday morning at The Second Draft brings five at once, and there isn’t time to read them all with the same care.

In this project, you’ll triage a real queue of pull requests by what a mistake in each would cost, gather evidence on every change, and give each one a verdict with comments its author can act on. Each verdict will be one you can put your name on.

Meet Monday’s Queue

Five pull requests are open against main, each on its own branch and none of them merged. Each branch carries its exported discussion in docs/pulls/, as the merged pull requests on main do. Here’s the queue, with the files each change touches besides its discussion:

Pull Author Title Branch Files changed
#40 Edsger Correct the return column heading edsger/admin-typo public/admin/index.html
#42 Quill Count book copies in the sales CSV quill/report-column src/reports/csv.js, src/reports/weekly.js, test/report-column.test.js
#43 Quill Reject stacked codes consistently quill/discount-stacking src/discounts/policy.js, test/discount-input.test.js
#44 Ada Add context to customer normalisation ada/customer-cleanup src/customers/cleanup.js
#46 Margaret Give retry attempts a separate reference margaret/payment-retry src/payments/retry.js

Ada opened #44 before she moved to another job, so the shop has to decide on her change without her. Write #44’s review for whoever on the team picks it up, and put any question to them. The authors are listed because every real queue shows them, but their identities don’t affect the triage or the verdicts. The same diff from anyone else would get the same review.

Get the branches and leave your clone on main. In your second-draft-books folder, run these commands. If git status lists a changed file, commit it on its branch or undo it with git restore first:

Language: Shell
$ git status
$ git fetch origin
$ git switch main
$ npm run seed

You can read every part of a pull request without switching to its branch. git diff --stat main origin/quill/report-column lists a branch’s changed files, and dropping --stat shows the hunks. git show origin/quill/report-column:docs/pulls/42.md prints one file as it is on that branch. The branch:path form works for any file.

Locked learning resources

Join us and get access to thousands of tutorials and a community of expert JavaScript developers.

Unlock This Lesson

Already a member? Sign-In

Locked learning resources

The full lesson is for members only. Join us and get access to thousands of tutorials and a community of expert JavaScript developers.

Unlock This Lesson

Already a member? Sign-In

Become a Member to join the conversation.