Skip to content

Commit c0c926b

Browse files
committed
upgrade to 1.24.0
1 parent a80cf99 commit c0c926b

File tree

4 files changed

+27
-3
lines changed

4 files changed

+27
-3
lines changed

changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
1.24.0
2+
------
3+
- Add API v2 user email retrieval support #593 (@evrimfeyyaz)
4+
15
1.23.2
26
------
37
- Add 'article' to tweet.fields #590 (@silvercondor)

gemini.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
## Release Process Prompt
2+
3+
Perform a new release.
4+
5+
Instructions:
6+
1. Get the latest git tag using `git describe --tags --abbrev=0`.
7+
2. Get all commit messages since the latest tag using `git log <latest_tag>..HEAD --pretty=format:"%s"`.
8+
3. Determine the next version number based on the changes since the last tag. Use semantic versioning principles: increment the patch version for bug fixes and the minor version for new features.
9+
4. For each commit message:
10+
a. Extract the commit description and the pull request number. The format is typically `<description> (#<pr_number>)`.
11+
b. Fetch the pull request details from the GitHub API using the command: `curl -s https://api.github.com/repos/plhery/node-twitter-api-v2/pulls/<pr_number>`.
12+
c. From the JSON response, extract the author's GitHub username from the `user.login` field.
13+
d. Format the changelog entry as: `- <commit description> #<pr_number> (@<github_username>)`
14+
5. Update the `version` in `package.json` to the new version number provided.
15+
6. Prepend the new version and the formatted changelog entries to `changelog.md`, following the existing structure:
16+
<version>
17+
------
18+
<formatted_changelog_entries>
19+
7. Run `npm install` to update `package-lock.json` to reflect the new version.
20+
8. Finally, commit with the name `upgrade to <version-number>`

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "twitter-api-v2",
3-
"version": "1.23.2",
3+
"version": "1.24.0",
44
"description": "Strongly typed, full-featured, light, versatile yet powerful Twitter API v1.1 and v2 client for Node.js.",
55
"main": "dist/cjs/index.js",
66
"module": "dist/esm/index.js",

0 commit comments

Comments
 (0)