Skip to content

Commit 91417b2

Browse files
committed
customized
1 parent f520782 commit 91417b2

File tree

1 file changed

+32
-58
lines changed

1 file changed

+32
-58
lines changed

changelog_prompt.md

Lines changed: 32 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -6,93 +6,67 @@ TARGET AUDIENCE:
66

77
The audience for the release notes consists of experienced developers who integrate the API into their applications. They rely on detailed documentation, advance notice of upcoming features, and clear information about potential breaking changes.
88

9-
SOURCE CONTENT IS A FILE DIFF:
9+
SOURCE CONTENT IS A CHANGELOG:
1010

11-
You’ll be provided with the diff output of all changed files in the release. The diff describes the changes in the reference documentation, which directly reflects how the code has changed. Your task is to analyze the diff and clearly describe the changes. I’ll pull from your descriptions to populate the release notes.
11+
You’ll be provided with a changelog that is automatially generated from the update. The problem with the generated changelog is that it's very verbose and includes a lot of extraneous and duplicated information. Your task is to analyze the diff and clearly describe the changes. Group similar changes together and make the descriptions compact and meaningful. I’ll pull from your descriptions to populate the release notes.
1212

1313
IGNORE GRAMMAR/STYLE CHANGES
1414

1515
The diff is comprehensive and includes many grammar and style changes to existing definitions. Ignore these, as they’re minor cosmetic updates for readability that don’t need to be included in the release notes.
1616

17-
INTERPRETING THE DIFF SYNTAX:
18-
19-
The diff output uses the following syntax to indicate changes:
20-
21-
+ : This symbol indicates a line that was added in the new version.
22-
- : This symbol indicates a line that was removed in the new version.
23-
@@ ... @@ : These lines show the line numbers where changes occur in each file.
24-
The first line number refers to the original file (before changes).
25-
The second line number refers to the new file (after changes).
26-
<del>: This tag is used to indicate deprecated code. It is often used around method or class names in the documentation.
27-
Example:
28-
29-
--- a/file.java
30-
+++ b/file.java
31-
@@ -1,5 +1,6 @@
32-
33-
public class MyClass {
34-
- private int value = 10;
35-
+ private int value = 20; // This line was changed
36-
+ public void newValue() { ... }
37-
}
38-
Explanation:
39-
40-
The line private int value = 10; was removed.
41-
The line private int value = 20; was added (and is also marked with a comment).
42-
A new method public void newValue() { ... } was added.
43-
Note:
44-
45-
You should focus on changes that affect functionality or integrations. Ignore internal implementation details, minor comment updates, or stylistic changes.
46-
Pay close attention to the <del> tag to identify deprecated elements.
17+
INTERPRETING THE GENERATED CHANGELOG:
18+
19+
The changelog lists each endpoint that has changed and a nested list underneath that indicates the context for the change. There can be common changes that affect multiple endpoints.
20+
4721
YOUR TASK:
4822

4923
Analyze the diff and describe the changes that have been made using plain, readable language. Your analysis will mostly be matter of fact, describing the changes. The file diff won’t tell you why the changes have been made or what the larger purpose is behind the changes – that’s all right, as I’ll supplement the matter-of-fact changes with this larger context from other sources. Your task is mainly to describe the differences in the file diff. Especially not the following:
5024

5125
New features: Describe any added classes, methods, or capabilities. Extrapolate the descriptions and purposes for the elements from the code.
5226
Deprecations: Identify any deprecated classes, methods, or fields.
5327
Other changes: Report significant changes that could affect functionality or integrations. Ignore internal implementation details, minor comment updates, or stylistic changes that don’t affect functionality.
28+
5429
STYLE RULES:
5530

5631
Use sentence-case capitalization for headings and descriptions. In other words, only capitalize the first word in headings and subheadings.
32+
Wherever
5733
Avoid adjectives. Be plain and clear. This is technical documentation, not marketing material.
58-
Be precise with field and class names, using correct capitalization and the full name (for example, DataProcessor.Builder, calculateValue()).
34+
Be precise with endpoint and class names, using correct capitalization and the full name (for example, DataProcessor.Builder, calculateValue()).
5935
Keep the language concise and technical, targeting experienced developers.
36+
6037
MARKDOWN SYNTAX:
6138

6239
Provide the output in markdown formatting.
63-
For the title, use the header # Release.
40+
For the title, use the header # Today's date.
6441
Use markdown headers (##, ###, ####) to structure the subheadings.
65-
Surround classes, methods, and fields in backticks.
42+
Link endpoints to the developer documentation with this syntax: [`accounts.create`](/accounts/create)
43+
Surround endpoints and fields in backticks.
6644
Speak in second-person voice (“you”) directly to developers.
67-
EXAMPLE RELEASE NOTE SNIPPETS:
68-
69-
New feature:
7045

71-
### Improved data processing speed
72-
73-
The `processData()` method now includes a `report_fields` parameter, which lets you specify a report for the list of data you want to process.
74-
Deprecation:
75-
76-
### Data processing deprecations
77-
78-
**`DataProcessor.Builder` class:**
79-
80-
* **`setOldAlgorithm()`**: This method, used to configure the old processing algorithm, has been deprecated. Use the `setNewAlgorithm()` method instead. The old algorithm will be removed in a future release.
81-
Removal:
46+
EXAMPLE RELEASE NOTE SNIPPETS:
8247

83-
### Report processing deprecations
48+
New endpoints:
8449

85-
**`ReportProcessor.Builder` class:**
50+
### Directories
8651

87-
* **`setOldReport()`**: This deprecated method, used to configure the old processing algorithm, has been removed from the API. Use the `setNewReport()` method instead.
88-
Documentation update:
52+
GET/POST /directories.count
53+
POST /directories.create
54+
POST /directories.delete
55+
GET/POST /directories.get
56+
GET/POST /directories.list
57+
POST /directories.list
58+
POST /directories.update
8959

60+
Change to an object that affects multiple endpoints:
9061

91-
### Documentation updates
62+
- New enum values: `[is_follow_up_of]`
9263

93-
* The documentation for the `DataProcessor` class has been updated to include a new section on performance optimization.
94-
You can note any other significant changes too.
64+
Affects endpoints:
9565

96-
Here’s the diff output for changes in this release:
66+
- POST `/links.create`
67+
- GET/POST `/links.get`
68+
- GET/POST `/links.list`
69+
- GET/POST `/search.core`
70+
- GET/POST `/search.hybrid`
9771

98-
[PASTE FILE DIFF command for each file]
72+
The generated changelog is attached to this request.

0 commit comments

Comments
 (0)