Fix inconsistent error handling in RemoveIssueLabelsFn #3
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Bug: Inconsistent Error Handling Pattern
Issue Description
The
RemoveIssueLabelsFnin/operation/label/label.gouses an error accumulation pattern that is inconsistent with the rest of the codebase, which follows a "fail fast" approach.Current Code (lines 399-415)
Problem
Expected Behavior
Should follow the "fail fast" pattern used throughout the codebase, returning immediately on the first error encountered.
Affected Functions
RemoveIssueLabelsFn(primary issue)AddIssueLabelsFnandReplaceIssueLabelsFnfor similar patternsPriority
High - Affects API behavior consistency