Skip to content

Commit

Permalink
Merge pull request #260 from openai/next
Browse files Browse the repository at this point in the history
chore: unreleased changes
  • Loading branch information
schnerd authored Aug 29, 2023
2 parents 163f026 + 245a984 commit 649f3d2
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release
name: Create releases
on:
push:
branches:
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/open-release-prs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Open release PRs
on:
push:
branches:
- next

jobs:
release:
name: release
if: github.ref == 'refs/heads/next' && github.repository == 'openai/openai-node'
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- uses: stainless-api/trigger-release-please@v1
id: release
with:
repo: ${{ github.event.repository.full_name }}
stainless-api-key: ${{ secrets.STAINLESS_API_KEY }}
branch-with-changes: next
2 changes: 1 addition & 1 deletion src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ export abstract class AbstractPage<Item> implements AsyncIterable<Item> {
return this.nextPageInfo() != null;
}

async getNextPage(): Promise<AbstractPage<Item>> {
async getNextPage(): Promise<this> {
const nextInfo = this.nextPageInfo();
if (!nextInfo) {
throw new Error(
Expand Down

0 comments on commit 649f3d2

Please sign in to comment.