Resolve Linear web app URLs into entity references - #62
Open
jamiew wants to merge 7 commits into
Open
Conversation
- new pkg/api/reference.go parses linear.app URLs for issues, projects, documents, initiatives, teams and reviews, plus scheme-less pastes and linear:// deep links - wired into the API client, so URLs work for positional args and for flags like --team, --project and --parent - comment URLs carry only an 8-char prefix, so those resolve via the issue's comments - a GitHub pull request URL resolves to the issue it is attached to - review URLs cannot be resolved to an issue by Linear's API, so they now fail with an explanation and a suggested issue search
dorkitude
requested changes
Aug 23, 2026
dorkitude
left a comment
Owner
There was a problem hiding this comment.
I ran go test ./... successfully on b977f74. The feature direction and test coverage are useful, but this needs an update before merge:
- The branch now conflicts with
masterinCHANGELOG.mdandpkg/api/queries.go. When resolvingGetProjects, retain both this PR’sslugIdselection and the newly releasedstatus { id name type color position }selection; choosing either conflict side as-is regresses the other feature. Please add or adjust a query-level test so both fields remain selected. - Please remove the unrelated
.claude/ignore change. The repository asks for focused patches, and this does not support URL references. - Re-run
go test ./...after integrating currentmaster.
The live Linear schema still exposes non-deprecated attachmentsForURL(url:, first:), so that part of the implementation remains current.
keep both slugId and status in the GetProjects selection
- drop the unrelated .claude/ gitignore change - assert GetProjects still selects both slugId and status - say plainly that Linear review URLs are not references
Author
|
@dorkitude updated per feedback, lmk if OK. Tried a few variations on the copy as well to try but ymmv |
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.
accept linear.app URLs anywhere a reference is taken, including
--team,--projectand--parentplus:
issue searchexamples:
go tests passing. Hope this is good enough and useful for you too! I copy the Linear URLs all the time and expect it to just work, and now it does