-
Notifications
You must be signed in to change notification settings - Fork 13
Add support for attaching GitHub PRs to issues #9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
jamiew
wants to merge
12
commits into
dorkitude:master
Choose a base branch
from
jamiew:github-pr-attachments
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
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
Implement ability to attach issues to projects at creation time: - Add --project flag to accept project UUID - Include projectId in GraphQL mutation input - Display project name in creation success message - Update CreateIssue query to return project information Usage: linctl issue create --title "Task" --team ENG --project <PROJECT-ID> 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Implement ability to set labels on issues: - Add --labels flag to issue create command (comma-separated label IDs) - Add --labels flag to issue update command (replaces existing labels) - Display attached labels in creation success message - Parse and pass labelIds array to GraphQL mutations Usage: linctl issue create --title "Bug" --team ENG --labels <ID1>,<ID2> linctl issue update ENG-123 --labels <ID1>,<ID2> linctl issue update ENG-123 --labels "" # Clear all labels 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
- Display cycle in issue list table and plaintext output - Add --cycle flag to filter by current or specific cycle number - Fix cycle field showing NULL by including it in GraphQL queries 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
- Fix cycle display logic to show cycle number when name is empty - Show "Cycle N" format when Linear returns empty cycle name - Update all import paths from dorkitude/linctl to charlietran/linctl - Ensures compatibility with forked module path 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
- Add cycle filter examples to main issue command help - Add dedicated examples section to issue list command - Add cycle filter examples to issue search command - Show both 'current' and specific cycle number usage - Include combined filter examples (e.g., priority + cycle) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Resolve conflicts in cmd/issue.go by keeping both label flags from upstream and PR attachment flags from feature branch
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.
Add support for linking GitHub PRs and external URLs to Linear issues via a new
linctl issue attachcommand.Forgive me if this is overly verbose or incorrect, I am new to golang
The Linear API supports quite a few special 'resource' parameters for GitHub PRs specifically so I implemented them for completeness, but I'm not using them personally. Just trying to do a simple "oops forgot to use the magic git branch-naming trick; please attach this PR to new or existing Linear ticket"
changes:
linctl issue attachcommand with--prand--urlflagsCreateAttachment()API function using Linear'sattachmentCreatemutationexample usage:
checklist: