Skip to content

Rename unify.pm.issues to unify.ticketing.tickets#1

Merged
sonnyt merged 1 commit into
mainfrom
claude/api-endpoint-migration-5vvdx7
Jul 15, 2026
Merged

Rename unify.pm.issues to unify.ticketing.tickets#1
sonnyt merged 1 commit into
mainfrom
claude/api-endpoint-migration-5vvdx7

Conversation

@sonnyt

@sonnyt sonnyt commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Mirrors the Unify API migration from the /pm/issues endpoint to /ticketing/tickets.

Changes

  • Renamed src/unify/pm.tssrc/unify/ticketing.ts: PM class → Ticketing, namespace 'pm''ticketing', issues()tickets() (now requesting ticketing/tickets)
  • Updated the top-level accessor in src/unify.ts: get pm()get ticketing()
  • Updated tests (src/__tests__/unify.test.ts), README, and examples

Verification

  • npm run build succeeds
  • npm test — all 58 tests pass
  • scripts/check-sdk-parity.js in the API repo reports no missing ticketing.tickets method for this SDK

Note

This SDK was already missing the crm and drive namespaces and the chat.users / chat.message / git.branches methods relative to the canonical API surface. That drift is pre-existing and out of scope for this change.

🤖 Generated with Claude Code

https://claude.ai/code/session_014zVgT6VdGxc5a96oMxJU87


Generated by Claude Code

Mirror the Unify API migration from the /pm/issues endpoint to
/ticketing/tickets:

- Rename src/unify/pm.ts -> ticketing.ts (PM class -> Ticketing,
  namespace "pm" -> "ticketing", issues() -> tickets())
- Update the unify.ticketing accessor in src/unify.ts
- Update tests, README, and examples

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014zVgT6VdGxc5a96oMxJU87

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4e2b4c2146

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/unify/ticketing.ts
async issues({ limit = 100, after, include_raw = false }: Params = {}) {
const url = this.buildUrl('issues', { limit, after, include_raw });
async tickets({ limit = 100, after, include_raw = false }: Params = {}) {
const url = this.buildUrl('tickets', { limit, after, include_raw });

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Keep ticket listing on the live API route

The published Unify Swagger page (https://unify.bundleup.io/) still advertises GET /v1/pm/issues and does not expose /v1/ticketing/tickets; with this change tickets() now builds /v1/ticketing/tickets, so ticket listing calls from the SDK will hit an unavailable route for current deployments. Please retain the live pm/issues route or add a compatibility fallback until the server migration is deployed.

Useful? React with 👍 / 👎.

@sonnyt sonnyt merged commit 2acb99c into main Jul 15, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants