Skip to content

Commit 649f3d2

Browse files
authored
Merge pull request #260 from openai/next
chore: unreleased changes
2 parents 163f026 + 245a984 commit 649f3d2

File tree

3 files changed

+23
-2
lines changed

3 files changed

+23
-2
lines changed

.github/workflows/release.yml renamed to .github/workflows/create-releases.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Release
1+
name: Create releases
22
on:
33
push:
44
branches:
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Open release PRs
2+
on:
3+
push:
4+
branches:
5+
- next
6+
7+
jobs:
8+
release:
9+
name: release
10+
if: github.ref == 'refs/heads/next' && github.repository == 'openai/openai-node'
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v3
15+
16+
- uses: stainless-api/trigger-release-please@v1
17+
id: release
18+
with:
19+
repo: ${{ github.event.repository.full_name }}
20+
stainless-api-key: ${{ secrets.STAINLESS_API_KEY }}
21+
branch-with-changes: next

src/core.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ export abstract class AbstractPage<Item> implements AsyncIterable<Item> {
575575
return this.nextPageInfo() != null;
576576
}
577577

578-
async getNextPage(): Promise<AbstractPage<Item>> {
578+
async getNextPage(): Promise<this> {
579579
const nextInfo = this.nextPageInfo();
580580
if (!nextInfo) {
581581
throw new Error(

0 commit comments

Comments
 (0)