Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
c87c8e0
refactor: cleanup and move to esm
ComfortablyCoding May 20, 2024
fbcded4
chore: update deps, configs and tests
ComfortablyCoding May 20, 2024
a58df6f
fix(workflows): actions are not under `.github`
ComfortablyCoding May 22, 2024
71118ee
fix(setup action): pnpm version is not specified
ComfortablyCoding May 22, 2024
ceefbca
chore: update ignore files
ComfortablyCoding May 27, 2024
74ea6c5
chore(jsdoc): add a link corresponding API doc for functions
ComfortablyCoding May 27, 2024
6f3a5f6
chore(route): update typing for client
ComfortablyCoding May 27, 2024
53c0d5b
fix(comment): add missing threaded endpoints
ComfortablyCoding May 27, 2024
36dbc25
chore(setToken): add additional space to jsdoc for consistency
ComfortablyCoding May 27, 2024
29034a3
Merge branch 'v-next' of https://github.com/ComfortablyCoding/clickup…
ComfortablyCoding May 27, 2024
b0d1d9d
docs: remove manual docs
ComfortablyCoding May 27, 2024
a23d989
doc: add auto generated API
ComfortablyCoding May 29, 2024
39ca28e
unify naming and add missing routes
ComfortablyCoding Nov 2, 2025
a1dd72c
add version support
ComfortablyCoding Nov 2, 2025
939ec00
remove index route import
ComfortablyCoding Nov 2, 2025
1c30b9e
remove version fro prefixUrl
ComfortablyCoding Nov 2, 2025
6986475
fix token not being set with setToken
ComfortablyCoding Nov 2, 2025
b24ac67
auto snakeCase body keys
ComfortablyCoding Nov 2, 2025
763e2f6
Rename params to options and utilize query over params
ComfortablyCoding Nov 2, 2025
7cd44f9
export routes under default
ComfortablyCoding Nov 2, 2025
4bc2bec
remove leading route slash
ComfortablyCoding Nov 2, 2025
8a68622
move to ofetch, add rate limiting and snake_case keys
ComfortablyCoding Nov 2, 2025
028a926
add tests
ComfortablyCoding Nov 2, 2025
4b7d286
move route top level
ComfortablyCoding Nov 2, 2025
c80c4be
add docs
ComfortablyCoding Nov 2, 2025
3043724
remove pnpm-workspace
ComfortablyCoding Nov 3, 2025
3cf9586
update prettier rule
ComfortablyCoding Nov 3, 2025
7416e69
add required version prefix to auth routes
ComfortablyCoding Nov 4, 2025
1fccb26
fix version not being passed to routes
ComfortablyCoding Nov 4, 2025
59210bf
fix token not acknowledged
ComfortablyCoding Nov 4, 2025
a7485fe
improve error format
ComfortablyCoding Nov 4, 2025
d6a3915
add jsdoc for createClickup
ComfortablyCoding Nov 4, 2025
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
45 changes: 0 additions & 45 deletions .eslintignore

This file was deleted.

20 changes: 0 additions & 20 deletions .eslintrc.json

This file was deleted.

22 changes: 22 additions & 0 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Setup
description: Install dependencies and build package

runs:
using: composite
steps:
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: "lts/*"
check-latest: true
registry-url: https://registry.npmjs.org/

- uses: pnpm/action-setup@v3
name: Install pnpm
with:
run_install: false
version: 9

- name: Install dependencies
shell: bash
run: pnpm install
33 changes: 0 additions & 33 deletions .github/workflows/npm-publish.yml

This file was deleted.

24 changes: 11 additions & 13 deletions .github/workflows/pr-test.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
name: PR Test
name: Test PR

on: [pull_request]

jobs:
test-pr:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout branch
uses: actions/checkout@v2

- name: Install Node v16
uses: actions/setup-node@v2
- name: checkout
uses: actions/checkout@v4
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
fetch-depth: 0

- name: Clean install deps
run: npm ci
- name: setup
uses: ./.github/actions/setup

- name: Run tests
run: npm test
- name: test
run: pnpm test -- -- --changed origin/${{ github.base_ref }} --passWithNoTests
23 changes: 23 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Publish

on:
release:
types: [published]

jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4

- name: setup
uses: ./.github/actions/setup

- name: publish to npm
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_PROVENANCE: true
run: |
pnpm publish \
--access=public \
Comment on lines +9 to +23

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}

Copilot Autofix

AI 10 days ago

To resolve the issue, add a permissions block to the workflow configuration to restrict the GITHUB_TOKEN to the least necessary privileges. The best location is at the root of the workflow (under the workflow name or triggers) if you want to define permissions for all jobs, or within each job's config if you need more granularity.

For this workflow, a minimal permissions block such as contents: read will almost always suffice for publishing to npm (actual publishing is authenticated via the NODE_AUTH_TOKEN), though if you use npm provenance you may also want id-token: write. To strictly follow the principle of least privilege for the visible steps, add the following at the top level just after the workflow name and before the on: trigger:

permissions:
  contents: read

Edit .github/workflows/publish.yml to insert this block after name: Publish. No new packages or external imports are required.


Suggested changeset 1
.github/workflows/publish.yml

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -1,4 +1,6 @@
 name: Publish
+permissions:
+  contents: read
 
 on:
   release:
EOF
@@ -1,4 +1,6 @@
name: Publish
permissions:
contents: read

on:
release:
Copilot is powered by AI and may make mistakes. Always verify output.
76 changes: 5 additions & 71 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
Expand All @@ -15,90 +12,27 @@ pids
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env
.env.test

# parcel-bundler cache (https://parceljs.org/)
.cache
# cache
cache

# Next.js build output
.next

# Nuxt.js build / generate output
.nuxt
# build
dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and *not* Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port
# autogen docs
docs/api.md
34 changes: 18 additions & 16 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,39 +7,41 @@
# vscode
.vscode

# docs
docs/

# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Dependency directories
node_modules/

# Optional npm cache directory
.npm
# pnpm
pnpm-lock.yaml

# Optional eslint cache
.eslintcache

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env
.env.test
.env.test

# cache
cache

# build
dist
8 changes: 8 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export default {
$schema: "https://json.schemastore.org/prettierrc",
tabWidth: 2,
semi: true,
singleQuote: false,
useTabs: true,
printWidth: 120,
};
8 changes: 0 additions & 8 deletions .prettierrc.json

This file was deleted.

Loading