-
Notifications
You must be signed in to change notification settings - Fork 0
Harden review workflows and deliver comments in FIFO order #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
DeyangChan
wants to merge
9
commits into
main
Choose a base branch
from
fix/code-scanning-findings
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
859846c
Quotes are escaped, and a save writes only to its own comment
DeyangChan dbdc15a
A draft is rebuilt from the payload, and a closing tag ends at its br…
DeyangChan c58dbb7
The Security and Scorecard badges are shown again
DeyangChan 14eee58
A local install's bookkeeping stays out of the repo
DeyangChan a7c0eec
A scroll the page was not ready for is tried again
DeyangChan 4873e70
A scroll waits for the layout it is scrolling
DeyangChan 83c839c
Review comments are handled one at a time
DeyangChan a700321
A bounded wait names the command that resumes it
DeyangChan bcbcc3d
The README says what Codex support does not yet do
DeyangChan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| /* | ||
| * Finding a release's section in CHANGELOG.md. | ||
| * | ||
| * Both the pull-request check and the release publisher need the same answer, | ||
| * so the heading is recognised in one place. Matching is done on plain strings | ||
| * rather than by building a pattern out of the version: a version is data, and | ||
| * a pattern built from data is only ever as correct as its escaping. | ||
| */ | ||
|
|
||
| /** True when this line is the heading for exactly this version. A heading runs | ||
| * `## 6.4.0 — 2026-08-09`, so anything may follow the number as long as the | ||
| * number itself ends there — `## 6.4.01` is a different release. */ | ||
| export const isHeadingFor = (line, version) => { | ||
| const heading = `## ${version}` | ||
| if (!line.startsWith(heading)) return false | ||
| const next = line.slice(heading.length)[0] | ||
| return next === undefined || !(next === "." || (next >= "0" && next <= "9")) | ||
| } | ||
|
|
||
| /** The line index of that heading, or -1. */ | ||
| export const headingIndex = (lines, version) => | ||
| lines.findIndex(line => isHeadingFor(line, version)) | ||
|
|
||
| /** | ||
| * Everything under this version's heading, up to the next release heading. | ||
| * Null when the changelog has no entry for it. | ||
| */ | ||
| export const sectionFor = (changelog, version) => { | ||
| const lines = changelog.split("\n") | ||
| const start = headingIndex(lines, version) | ||
| if (start === -1) return null | ||
| const rest = lines.slice(start + 1) | ||
| const next = rest.findIndex(line => line.startsWith("## ")) | ||
| return (next === -1 ? rest : rest.slice(0, next)).join("\n").trim() | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.