feat: add intake queue commands - #7
Open
ericmaster wants to merge 1 commit into
Open
Conversation
…e, enabled) The Plane SDK does not expose intake endpoints, so these commands use direct HTTP calls (same pattern as the existing documents workaround). - intake ls: list items in a project's intake queue - intake create: create a new intake item (wraps description in <p> for HTML) - intake accept: accept/triage an intake item (status=1) - intake decline: decline an intake item (status=-1) - intake delete: delete an intake item by issue_detail UUID - intake enabled: check if a project has intake_view enabled All commands require -p/--project (fuzzy name/identifier/UUID resolved via resolve_project_async). The list and create commands auto-check intake_view and warn if intake is disabled. JSON output (--json) goes to stdout for scripting; tables go to stderr.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Disclaimer
This was created by my AI Agent, it was supposed to be an
intakeitlsef for later PR but it got carried away 😅. Anyway, the PR is created, if rejected no hard feelings.Summary
Adds
intakesub-command toplaneclifor managing project intake queues.The Plane SDK does not expose intake endpoints, so these commands use direct HTTP calls.
Commands
intake ls -p PROJECTintake create "title" -p PROJECT [-d desc] [-P priority]intake accept ID -p PROJECTintake decline ID -p PROJECTintake delete ID -p PROJECTintake enabled PROJECTAll commands require
-p/--project(fuzzy name/identifier/UUID resolved viaresolve_project_async). Thelsandcreatecommands auto-checkintake_viewand warn if intake is disabled.JSON output (
--json) goes to stdout for scripting; tables go to stderr (consistent with existing commands).Testing
Verified end-to-end against a self-hosted Plane instance:
intake enabled PROJ1_INTAKE_ENABLED→ correctly reportstrueintake enabled PROJ2_NO_INTAKE→ correctly reportsfalseintake create→ creates item with correctname,description_html,priorityintake ls→ lists items with flattenedissue_detailfieldsintake delete→ deletes by issue_detail UUID (204 response)intake accept/intake decline→ PATCH status 1 / -1Notes
issue_detail.id(the actual issue UUID), not the intake wrapperid— this is a known gotcha with the Plane intake API.<p>…</p>for the requireddescription_htmlfield.none; valid values:none,low,medium,high,urgent.