Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/scripts/draft-release-notes/fetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@
SRC_MAIN_JAVA_PATHSPEC = "*/src/main/**/*.java"
PR_SUFFIX_RE = re.compile(r"\s*\(#(\d+)\)$")
VERSION_RE = re.compile(r'val stableVersion = "(\d+\.\d+\.\d+)')
ISSUE_REF_RE = re.compile(r"(?:issues|pull)/(\d+)|(?<![A-Za-z0-9/])#(\d+)\b")
ISSUE_REF_RE = re.compile(
rf"https?://github\.com/{re.escape(REPO)}/(?:issues|pull)/([1-9]\d*)\b"
r"|(?<![A-Za-z0-9/])#([1-9]\d*)\b"
)
GH_FETCH_WORKERS = 8
GH_FETCH_RETRIES = 3
GH_FETCH_RETRY_DELAY = 5.0
Expand Down
5 changes: 5 additions & 0 deletions .github/scripts/draft-release-notes/rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ by the parser but discouraged — prefer a bare JSON object:
}
```

The response must be parseable by `json.loads`. JSON-escape every special
character in string values, including `"` as `\"`, `\` as `\\`, and newlines
as `\n`. Pay particular attention to Java string literals copied into
`evidence`, and verify the complete object is valid JSON before responding.

## Core rule

Classify every PR from its diff only. PR titles, manifest `subject`,
Expand Down
Loading