-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change changelog interval from daily to weekly
- Loading branch information
1 parent
169f367
commit 6306a0e
Showing
3 changed files
with
54 additions
and
37 deletions.
There are no files selected for viewing
This file contains 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 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 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 |
---|---|---|
@@ -1,76 +1,81 @@ | ||
--- | ||
<%- yaml.stringify({ | ||
title: (hasBreakingChanges ? "Breaking (!) " : "") + `API changes for ${apiVersion} API, ${today.toLocaleDateString("en-US", { | ||
year: "numeric", | ||
title: (hasBreakingChanges ? "Breaking (!) " : "") + `API changes for ${apiVersion} API, ${since.toLocaleDateString({ | ||
month: "long", | ||
day: "numeric", | ||
day: "numeric" | ||
})} to ${today.toLocaleDateString("en-US", { | ||
month: "long", | ||
day: "numeric" | ||
})}`, | ||
authors: ["machine"], | ||
tags: [ | ||
"api" + apiVersion, | ||
hasBreakingChanges ? "breaking" : undefined, | ||
...(new Set(changelog.map(l => getOperationById(spec, l.operationId)?.operation.tags[0]).filter(t => t !== undefined))) | ||
"api" + apiVersion, | ||
hasBreakingChanges ? "breaking" : undefined, | ||
...(new Set(changelog.map(l => getOperationById(spec, l.operationId)?.operation.tags[0]).filter(t => t !== undefined))) | ||
].filter(s => s !== undefined) | ||
}) %> | ||
}); %> | ||
--- | ||
import OperationHint from "@site/src/components/OperationHint"; | ||
import OperationLink from "@site/src/components/OperationLink"; | ||
<%- introduction %> | ||
<%- introduction; %> | ||
{/* truncate */} | ||
<% if (hasBreakingChanges) { %> | ||
:::caution Breaking changes | ||
:::caution Breaking changes | ||
This document contains changes that can under certain circumstances be considered breaking. Please review the changes carefully. | ||
This document contains changes that can under certain circumstances be considered breaking. Please review the changes carefully. | ||
While we generally strive to avoid breaking changes in accordance with our [API stability guarantees](../../../../../docs/v2/api/stability), we occasionally might perform changes that would be considered breaking in the strictest sense of the term, but we do not consider as breaking in a practical sense. We will always provide ample notice and documentation for such changes. | ||
While we generally strive to avoid breaking changes in accordance with our [API stability guarantees](../../../../../docs/v2/api/stability), we occasionally might perform changes that would be considered breaking in the strictest sense of the term, but we do not consider as breaking in a practical sense. We will always provide ample notice and documentation for such changes. | ||
::: | ||
::: | ||
<% } %> | ||
## Summary | ||
<% if (summary) { %> | ||
<%- summary %> | ||
<%- summary; %> | ||
_Disclaimer: This summary is AI-generated. If you find any discrepancies, please refer to the detailed changes below._ | ||
_Disclaimer: This summary is AI-generated. If you find any discrepancies, please refer to the detailed changes below._ | ||
<% } else { %> | ||
The following API endpoints have changed: | ||
The following API endpoints have changed: | ||
<% for ([operationId, changes] of groupedChangelog.entries()) { %> | ||
<% if (changes.find(c => c.level === 3)) { %> | ||
- ⚠️ **Breaking changes** to the <OperationLink operation="<%= operationId %>" apiVersion="<%= apiVersion %>" /> endpoint. | ||
<% } else { %> | ||
- Changes to the <OperationLink operation="<%= operationId %>" apiVersion="<%= apiVersion %>" /> endpoint. | ||
<% } %> | ||
<% } %> | ||
<% for ([operationId, changes] of groupedChangelog.entries()) { %> | ||
<% if (changes.find(c => c.level === 3)) { %> | ||
- ⚠️ **Breaking changes** to the | ||
<OperationLink operation="<%= operationId ;%>" apiVersion="<%= apiVersion ;%>" /> endpoint. | ||
<% } else { %> | ||
- Changes to the | ||
<OperationLink operation="<%= operationId ;%>" apiVersion="<%= apiVersion ;%>" /> endpoint. | ||
<% } %> | ||
<% } %> | ||
<% } %> | ||
## Detailed changes | ||
<% for ([operationId, changes] of groupedChangelog.entries()) { %> | ||
### Changes in "<%- canonicalizeTitle(getOperationById(spec, operationId)?.operation.summary) ?? operationId %>" | ||
### Changes in "<%- canonicalizeTitle(getOperationById(spec, operationId)?.operation.summary) ?? operationId; %>" | ||
<% for (change of changes) { %> | ||
- <% if (change.level === 3) { %>⚠️ **Breaking:** <% } %><%- change.text %> | ||
<% } %> | ||
<% for (change of changes) { %> | ||
- <% if (change.level === 3) { %>⚠️ **Breaking:** <% } %><%- change.text; %> | ||
<% } %> | ||
For details, refer to the <OperationLink operation="<%= operationId %>" apiVersion="<%= apiVersion %>" /> endpoint. | ||
For details, refer to the | ||
<OperationLink operation="<%= operationId ;%>" apiVersion="<%= apiVersion ;%>" /> endpoint. | ||
<% } %> | ||
<% if (clientChangelogs && clientChangelogs.length > 0) { %> | ||
## Client package releases | ||
## Client package releases | ||
<% for (const release of clientChangelogs) { %> | ||
<%- release %> | ||
<% } %> | ||
<% for (const release of clientChangelogs) { %> | ||
<%- release; %> | ||
<% } %> | ||
<% } %> |