-
Notifications
You must be signed in to change notification settings - Fork 8k
Description
Describe the feature or problem you’d like to solve
Some operations like issue edit might have a number of relatively expensive look ups for milestones, labels, etc. When scripting multiple operations, that penalty is paid with each operation.
Proposed solution
What if, instead, some operations supported batching operations together? For example, what if issue edit took 1 or more issue numbers except when changing the title or even body (that one is debatable) - things that are obviously singular? Alternatively, may operations where this makes sense could have a new verb like issue edit-multiple if breaking a previous failure case is a concern.
Additional context
I was updating 16 issues in a loop like so in PowerShell:
$issues = 1..16 # just an example
$issues | foreach { gh issue edit $_ --add-assignee @me --add-label Label --milestone Milestone }This took just over 2 minutes and most likely due to the milestone lookup - possibly even the user lookup. If that tax was paid once I'm sure this would've been much faster e.g.,
$OFS=","; gh issue edit "$issues" --add-assignee @me --add-label Label --milestone Milestone