Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,6 @@ for (const commit of commits) {
backportOf: null,
backportedBy: backportIssueId,
};
} else if (releaseNote.type === 'Backport' && releaseNote.backportOf) {
// For backport issues, use the master bug ID and link so that the release
// notes refer to the canonical bug with a description rather than the
// backport ticket which is usually empty.
releaseNote = {
...releaseNote,
id: releaseNote.backportOf,
link: `https://bugs.openjdk.org/browse/${releaseNote.backportOf}`,
};
}

output.push(releaseNote);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
const delay = (ms) => new Promise((resolve) => setTimeout(resolve, ms));

async function fetchJiraJson(url, maxRetries = 5) {
// bugs.openjdk.org sits behind Akamai, which returns HTTP 403 (HTML) to browser-style
// and default fetch User-Agents but accepts curl-style ones
const headers = {
Accept: 'application/json',
'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36',
'User-Agent': 'curl/8.0 adoptium-release-notes/1.0',
};

for (let attempt = 1; attempt <= maxRetries; attempt += 1) {
Expand Down
Loading