Skip to content

fix: correct success message order for 'blocked-by' relation#155

Merged
schpet merged 1 commit intomainfrom
schpetbot-pr-3d50a652
Feb 27, 2026
Merged

fix: correct success message order for 'blocked-by' relation#155
schpet merged 1 commit intomainfrom
schpetbot-pr-3d50a652

Conversation

@schpetbot
Copy link
Collaborator

fix: correct success message order for 'blocked-by' relation

When using 'relation add X blocked-by Y', the API is called with swapped
IDs (Y blocks X), but the success message was showing the API's returned
identifiers (in the swapped order) instead of the user-specified order.

Fixes: the message now uses the original issueIdentifier and
relatedIssueIdentifier variables, so 'relation add ENG-123 blocked-by ENG-456'
correctly shows '✓ Created relation: ENG-123 blocked-by ENG-456'.

Closes #152

When using 'relation add X blocked-by Y', the API is called with swapped
IDs (Y blocks X), but the success message was showing the API's returned
identifiers (in the swapped order) instead of the user-specified order.

Fixes: the message now uses the original issueIdentifier and
relatedIssueIdentifier variables, so 'relation add ENG-123 blocked-by ENG-456'
correctly shows '✓ Created relation: ENG-123 blocked-by ENG-456'.

Closes #152
@schpet schpet merged commit 12be1d1 into main Feb 27, 2026
8 checks passed
@schpet schpet deleted the schpetbot-pr-3d50a652 branch February 27, 2026 06:23
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.

output from relation add X blocked-by Y is switched

2 participants