Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/slow-timers-raise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@team-plain/typescript-sdk': minor
---

Add ability to get issues (`client.getIssues()`) and resolve issues (`client.resolveIssue()`)
15 changes: 10 additions & 5 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,19 @@ jobs:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
node-version: '16'
version: 8
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'pnpm'
- name: Install dependencies
run: npm ci
run: pnpm install
- name: Lint
run: npm run lint
run: pnpm run lint
- name: GraphQL Mutation Filenames
uses: batista/lint-filenames@v1.0.1
with:
Expand Down
17 changes: 11 additions & 6 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,27 @@ jobs:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v2
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
node-version: '16'
- uses: actions/checkout@v2
version: 8
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- uses: tibdex/github-app-token@v1
id: generate-token
with:
app_id: ${{ secrets.GH_WORKFLOW_APP_ID }}
private_key: ${{ secrets.GH_WORKFLOW_APP_PRIVATE_KEY }}
- name: Install dependencies
run: npm ci
- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
publish: npm run release
publish: pnpm run release
env:
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
17 changes: 11 additions & 6 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,19 @@ jobs:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
node-version: '16'
version: 8
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'pnpm'
- name: Install dependencies
run: npm ci
run: pnpm install
- name: Test
run: npm run test
run: pnpm run test
- name: Build
# This checks that the package can be built
run: npm run build
run: pnpm run build
15 changes: 10 additions & 5 deletions .github/workflows/typecheck.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,16 @@ jobs:
name: Typecheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
node-version: '16'
version: 8
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'pnpm'
- name: Install dependencies
run: npm i
run: pnpm install
- name: Typecheck
run: npm run typecheck
run: pnpm run typecheck
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ dist
# dependencies
node_modules
yarn.lock
pnpm-lock.yaml
package-lock.json

# logs
*.log
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,8 @@ Equivalent to a 401 or 403 response. Normally means your API key doesn't exist o

[(view source)](./src/error.ts)
Equivalent to a 500 response. If this happens something unexpected within Plain happened.

### UnknownError

[(view source)](./src/error.ts)
Fallback error type when something unexpected happens.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Realised this was missing from the readme so I documented this as well!

Loading