Skip to content

Conversation

@ArthurHeymans
Copy link

The code-review-send-labels method was failing with "Wrong type argument: consp, nil" error when setting labels. The issue was caused by improper alist construction using a-alist function, which could return nil in certain cases.

Changes:

  • Extract label processing into explicit variables for clarity
  • Use vconcat to ensure label-names is always a vector
  • Replace a-alist with explicit backquote alist syntax to guarantee proper payload structure
  • Change let to let* for sequential variable binding

The payload now consistently creates ((labels . [vector])) structure that ghub expects, whether labels are present or being cleared.

The code-review-send-labels method was failing with "Wrong type argument: consp, nil" error when setting labels. The issue was caused by improper alist construction using a-alist function, which could return nil in certain cases.

Changes:
- Extract label processing into explicit variables for clarity
- Use vconcat to ensure label-names is always a vector
- Replace a-alist with explicit backquote alist syntax to guarantee proper payload structure
- Change let to let* for sequential variable binding

The payload now consistently creates ((labels . [vector])) structure that ghub expects, whether labels are present or being cleared.

Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
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.

1 participant